/* Голый каркас. Цвета/шрифты — токены, поменяем, когда выберем стиль. */
:root {
  --bg: #ffffff;
  --fg: #111111;
  --muted: #8a8a8a;
  --tile: #ececec;
  --gap: 10px;
  --font: "Manrope", -apple-system, "Helvetica Neue", Arial, sans-serif;     /* текст и меню */
  --font-head: "Unbounded", "Manrope", -apple-system, Arial, sans-serif;  /* имя и заголовки */
  --head-weight: 600;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg); color: var(--fg); font-family: var(--font); }
a { color: inherit; text-decoration: none; }

/* Шапка: имя слева, разделы по центру */
.header { position: sticky; top: 0; z-index: 10; background: var(--bg);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 34px 40px 30px; }
.logo { font-family: var(--font-head); font-size: 22px; font-weight: var(--head-weight); letter-spacing: .03em; }
.nav { display: flex; gap: 44px; font-size: 13px; text-transform: uppercase; letter-spacing: .14em; }
.nav a { color: var(--muted); transition: color .2s; }
.nav a.active, .nav a:hover { color: var(--fg); }
.tools { justify-self: end; display: flex; align-items: center; gap: 18px; }
.lang { display: flex; align-items: center; gap: 6px; font-size: 13px; letter-spacing: .1em; color: var(--muted); }
.lang button { background: none; border: 0; padding: 4px 2px; font: inherit; letter-spacing: inherit; color: var(--muted); cursor: pointer; transition: color .2s; }
.lang button.active, .lang button:hover { color: var(--fg); }
.burger { display: none; background: none; border: 0; color: var(--fg); font-size: 22px; cursor: pointer; }
/* меню-«бургер» — на телефоне и планшете (до 1024px): в одну строку разделы там не помещаются */
@media (max-width: 1024px) {
  .header { grid-template-columns: 1fr auto; padding: 20px 16px; }
  .header .nav { grid-column: 1 / -1; }
  .logo { font-size: 19px; white-space: nowrap; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 18px; padding: 16px; background: var(--bg); border-bottom: 1px solid #eee; }
  .nav.open { display: flex; }
  .burger { display: block; }
}
@media (min-width: 761px) and (max-width: 1024px) {   /* планшет: те же поля, что у контента (40px) */
  .header { padding: 30px 40px 26px; }
  .logo { font-size: 21px; }
  .nav { padding: 20px 40px 24px; }
}
main { padding: 0 var(--gap) var(--gap); }
@media (min-width: 761px) { main { padding: 0 40px var(--gap); } }

/* Главная: masonry-лента (как alexmazurov.ru), 4 колонки, отступ 10px, раскладка в JS */
.masonry { display: flex; gap: var(--gap); align-items: flex-start; }
.masonry .col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: var(--gap); }
.masonry .item { background: var(--tile); cursor: zoom-in; overflow: hidden;
  opacity: 0; transition: opacity 1.1s ease; }          /* dissolve при появлении на экране */
.masonry .item.in { opacity: 1; }
.masonry img { display: block; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .6s; }
.masonry img.loaded { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .masonry .item, .masonry img { transition: none; } }
.sentinel { height: 1px; }

/* Видео: плитка 16:9 без зазоров (как видеооператор.москва) */
/* Шоурил на всю ширину, как плитки ниже; чуть ниже 16:9 (сам ролик откроется в окне) */
.showreel { aspect-ratio: 2/1; width: 100%;
  margin: 0; background: #000; color: #fff; display: grid; place-items: center;
  cursor: pointer; font-size: 20px; letter-spacing: .08em; text-transform: uppercase; }
.vgrid { display: grid; grid-template-columns: repeat(4, 1fr); }
.rgrid { display: grid; grid-template-columns: repeat(6, 1fr); }
.vtile { position: relative; aspect-ratio: 16/9; background: #222 center/cover; color: #fff; cursor: pointer; overflow: hidden; }
.rgrid .vtile { aspect-ratio: 9/16; }
.rgrid .vtile::after { display: none; }
.vtile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 50%, rgba(0,0,0,.75)); opacity: 0; transition: opacity .25s; }
.vtile span, .vtile em { position: absolute; z-index: 1; opacity: 0; transition: opacity .25s; }
.vtile span { left: 14px; right: 14px; bottom: 12px; }
.vtile b { display: block; font-weight: 500; font-size: 15px; }
.vtile i { display: block; font-style: normal; font-size: 12px; opacity: .75; margin-top: 3px; }
.vtile em { top: 10px; right: 12px; font-style: normal; font-size: 12px; }
.vtile:hover::after, .vtile:hover span, .vtile:hover em { opacity: 1; }
/* Значок Play по центру плитки при наведении */
.vtile .play { position: absolute; z-index: 1; left: 50%; top: 50%; width: 64px; height: 64px;
  transform: translate(-50%, -50%) scale(.85); opacity: 0; transition: opacity .25s, transform .25s; pointer-events: none; }
.vtile .play circle { fill: rgba(0,0,0,.35); stroke: #fff; stroke-width: 2; }
.vtile .play path { fill: #fff; }
.vtile:hover .play { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.rgrid .vtile .play { width: 52px; height: 52px; }
/* Плитка-заглушка: ролик ещё не загружен */
.vtile.pending { outline: 3px solid #e02020; outline-offset: -3px; }
/* Заголовки разделов: «Мои проекты», «Вертикальный контент» — крупно, по центру, широкой разрядкой */
.section-title { font-family: var(--font-head); font-weight: var(--head-weight); text-align: center; text-transform: uppercase;
  font-size: clamp(30px, 4.4vw, 64px); line-height: 1; letter-spacing: .06em; padding: 64px 0; }  /* отступ сверху = снизу */
@media (max-width: 760px) { .section-title { font-size: 26px; letter-spacing: .04em; padding: 36px 0; } }

/* Появление при прокрутке (как у фото): всё, что ниже шоурила */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 1s ease, transform 1s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
.subhead { font-weight: 400; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 40px 4px 14px; }
@media (max-width: 1000px) { .vgrid { grid-template-columns: repeat(2, 1fr); } .rgrid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px)  { .vgrid { grid-template-columns: 1fr; } .rgrid { grid-template-columns: repeat(2, 1fr); }
  .vtile::after, .vtile span, .vtile em, .vtile .play { opacity: 1; } }

/* Проекты: крупные обложки-карточки */
.projects { display: grid; gap: var(--gap); }
/* широкая «киношная» карточка: кадр почти целиком, затемнение для читаемости названия */
.pcard { position: relative; aspect-ratio: 21/9; min-height: 300px; background: var(--tile) center/cover; overflow: hidden;
  display: grid; place-items: center; text-align: center; color: #fff; }
.pcard::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.28); transition: background .3s; }
.pcard:hover::before { background: rgba(0,0,0,.12); }
.pcard > div { position: relative; }
.pcard h2 { font-family: var(--font-head); font-weight: 600; font-size: clamp(36px, 6vw, 96px); line-height: 1; letter-spacing: .05em; text-transform: uppercase; }
.pcard h2 span { display: block; font-size: .36em; letter-spacing: .14em; margin-top: .55em; font-weight: 500; }
.pcard p { font-size: 13px; letter-spacing: .22em; text-transform: uppercase; opacity: .9; }
.pcard p { margin-top: 22px; }
.project-head { padding: 60px 14px 40px; max-width: 760px; }
.project-head h1 { font-family: var(--font-head); font-weight: 400; font-size: 40px; }

/* Об авторе */
.about { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(32px, 6vw, 96px); padding: 48px 0 72px; align-items: center; }
.about-photo { aspect-ratio: 4/5; background: var(--tile) 50% 40%/cover; }
.about-text h1 { font-family: var(--font-head); font-weight: 600; font-size: clamp(32px, 4vw, 60px); line-height: 1.05; letter-spacing: .03em; text-transform: uppercase; }
.about-text h1 span { display: block; margin-top: 14px; font-family: var(--font); font-weight: 500; font-size: 13px; letter-spacing: .18em; color: var(--muted); }
.about-text p { font-size: 16px; line-height: 1.65; margin-top: 18px; max-width: 620px; }
.about-text .about-lead { font-size: 20px; line-height: 1.5; margin-top: 32px; }
.about-facts { display: flex; flex-wrap: wrap; gap: 24px clamp(28px, 4vw, 64px); margin-top: 44px; }
.about-facts b { display: block; font-family: var(--font-head); font-weight: 600; font-size: clamp(28px, 3vw, 44px); line-height: 1; }
.about-facts span { display: block; margin-top: 8px; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.about-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; padding: 48px 0; border-top: 1px solid #e6e6e6; border-bottom: 1px solid #e6e6e6; }
.about-cols h2 { font-size: 11px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.about-cols h2:not(:first-child) { margin-top: 32px; }
.about-cols li, .about-cols p, .about-cols dd { font-size: 15px; line-height: 1.8; list-style: none; }
.about-cols dd a { border-bottom: 1px solid #ccc; } .about-cols dd a:hover { border-color: var(--fg); }
.about-cols dl div { display: flex; gap: 16px; } .about-cols dt { width: 80px; flex: none; color: var(--muted); font-size: 15px; line-height: 1.8; }
.about-clients ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 28px clamp(28px, 5vw, 72px); max-width: 1100px; margin: 0 auto 24px; }
.about-clients li { height: 64px; display: flex; align-items: center; filter: grayscale(1); opacity: .75; transition: filter .3s, opacity .3s; }
.about-clients li:hover { filter: none; opacity: 1; }
.about-clients img { max-height: 64px; max-width: 170px; width: auto; height: auto; object-fit: contain; }
.about-clients span { font-family: var(--font-head); font-weight: 600; font-size: 20px; letter-spacing: .02em; white-space: nowrap; }
.rmap { position: relative; max-width: 1100px; margin: 0 auto; }
.rmap svg { display: block; width: 100%; height: auto; }
.rmap .land { fill: #eeeeec; stroke: #d6d6d2; stroke-width: 1; stroke-linejoin: round; }
.rmap .pt { cursor: pointer; }
.rmap .dot { fill: var(--fg); }
.rmap .halo { fill: var(--fg); opacity: .12; transition: opacity .2s, r .2s; }
.rmap .pt.home .dot { fill: #d2321e; } .rmap .pt.home .halo { fill: #d2321e; }
.rmap .pt.on .halo { opacity: .3; r: 16; }
.rmap-tip { position: absolute; transform: translate(-50%, calc(-100% - 14px)); background: var(--fg); color: #fff; font-size: 13px; padding: 6px 10px; border-radius: 6px; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .15s; }
.rmap-tip.show { opacity: 1; }
.rmap-list { columns: 3; column-gap: 40px; max-width: 1000px; margin: 28px auto 72px; padding-left: 24px; font-size: 14px; line-height: 2; color: #444; }
.rmap-list li { cursor: default; } .rmap-list li.on { color: var(--fg); font-weight: 600; } .rmap-list li.home::marker { color: #d2321e; }
@media (max-width: 760px) { .about, .about-cols { grid-template-columns: 1fr; } .rmap-list { columns: 1; } .about-clients li { height: 44px; } .about { padding-top: 16px; } .about-text .about-lead { font-size: 18px; } }

/* Модалка просмотра фото/видео */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.92); display: none; place-items: center; z-index: 50; }
.modal.open { display: grid; }
.modal .box { width: min(92vw, 150vh); aspect-ratio: 16/9; background: #000; color: #fff; display: grid; place-items: center; }
.modal .box.vertical { width: auto; height: 90vh; aspect-ratio: 9/16; }
.modal .box.photo { width: auto; height: auto; aspect-ratio: auto; background: none; display: flex; }
/* фото целиком: не больше экрана, пропорции сохраняются */
.modal .box.photo img { width: auto; height: auto; max-width: 94vw; max-height: 92vh; object-fit: contain; }
.modal .box iframe, .modal .box video, .modal .box img { width: 100%; height: 100%; border: 0; object-fit: contain; }
.modal .close { position: absolute; top: 16px; right: 20px; color: #fff; font-size: 32px; background: none; border: 0; cursor: pointer; }

.footer { padding: 40px 24px; color: var(--muted); font-size: 13px; }

/* ===== Страница проекта (подробная) ===== */
.pj-hero { position: relative; margin: 0 -40px; height: 72svh; min-height: 460px;
  background: #111 center/cover; display: grid; place-items: center; text-align: center; color: #fff; }
.pj-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(0,0,0,.15), rgba(0,0,0,.45)); }
.pj-hero-in { position: relative; padding: 0 20px; }
.pj-hero h1 { font-family: var(--font-head); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; line-height: 1;
  font-size: clamp(44px, 8vw, 128px); }
.pj-hero h1 span { display: block; font-size: .36em; letter-spacing: .14em; margin-top: .55em; font-weight: 500; }
.pj-hero .pj-lead { margin-top: 26px; font-size: 13px; letter-spacing: .22em; text-transform: uppercase; opacity: .9; }
.pj-hero .pj-hero-text { margin: 22px auto 0; max-width: 560px; font-size: 17px; line-height: 1.55; opacity: .92; }
.pj-scroll { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); font-size: 22px; opacity: .8; animation: pj-bob 2s infinite; }
@keyframes pj-bob { 50% { transform: translate(-50%, 6px); } }
.pj-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 48px 0; border-bottom: 1px solid #e6e6e6; }
.pj-meta dt { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.pj-meta dd { font-size: 15px; line-height: 1.45; }
.pj-text { max-width: 760px; margin: 0 auto; text-align: center; padding-bottom: 24px; }
.pj-text p { font-size: 18px; line-height: 1.7; margin-bottom: 1.1em; color: #222; }
.pj-facts { display: flex; justify-content: center; gap: clamp(32px, 8vw, 120px); padding: 40px 0 88px; text-align: center; }
.pj-facts b { display: block; font-family: var(--font-head); font-weight: 600; font-size: clamp(40px, 5vw, 72px); line-height: 1; }
.pj-facts span { display: block; margin-top: 10px; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.pj-break { margin: 0 -40px; height: 78vh; background: #ddd center/cover; }
.pj-player { position: relative; aspect-ratio: 16/9; background: #000 center/cover; cursor: pointer; }
.pj-player .play { position: absolute; left: 50%; top: 50%; width: 96px; height: 96px; transform: translate(-50%, -50%); transition: transform .25s; }
.pj-player .play circle { fill: rgba(0,0,0,.35); stroke: #fff; stroke-width: 2; }
.pj-player .play path { fill: #fff; }
.pj-player:hover .play { transform: translate(-50%, -50%) scale(1.08); }
.pj-player.on { cursor: default; }
.pj-player video { width: 100%; height: 100%; display: block; background: #000; }
.pj-author { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; padding: 120px 0; }
.pj-author-photo { aspect-ratio: 4/5; background: #ddd center/cover; }
.pj-author-text h2 { font-family: var(--font-head); font-weight: 600; text-transform: uppercase; letter-spacing: .06em;
  font-size: clamp(28px, 3.4vw, 48px); line-height: 1.05; margin-bottom: 32px; }
.pj-author-text p { font-size: 18px; line-height: 1.7; margin-bottom: 1em; color: #222; }
.pj-author-text em { display: block; margin-top: 24px; font-style: normal; letter-spacing: .08em; color: var(--muted); }
.pj-gallery { padding-bottom: 40px; }
.pj-nav { display: flex; justify-content: space-between; gap: 20px; padding: 72px 0 24px; font-family: var(--font-head);
  font-size: clamp(14px, 1.4vw, 20px); text-transform: uppercase; letter-spacing: .06em; }
.pj-nav a:hover { opacity: .6; }
@media (max-width: 760px) {
  .pj-hero, .pj-break { margin: 0 -10px; }
  .pj-meta { grid-template-columns: 1fr 1fr; padding: 32px 0; }
  .pj-text p, .pj-author-text p { font-size: 16px; }
  .pj-facts { gap: 28px; padding: 24px 0 56px; }
  .pj-break { height: 50vh; }
  .pj-author { grid-template-columns: 1fr; padding: 64px 0; }
  .pj-nav { flex-direction: column; }
}

/* партнёры — сразу под фактами в начале страницы */
.pj-partners { text-align: center; padding: 36px 0 8px; }
.pj-partners > span { display: block; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.pj-partners ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 12px; max-width: 1000px; margin: 0 auto; }
.pj-partners li { font-size: 13px; padding: 9px 16px; border: 1px solid #e3e3e3; border-radius: 999px; color: #333; }
.pj-text b, .pj-author-text b { font-weight: 600; color: #000; }
/* маршрут: схема слева, точки справа */
.pj-route { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; padding: 40px 0 110px; }
.pj-map { background: #f4f6f7; }
.pj-map svg { display: block; width: 100%; height: auto; }
.pj-map .g { stroke: #cfdae0; stroke-width: 1; }
.pj-map .gl { font-size: 11px; fill: #9aa3a8; }
.pj-map .sea { font-size: 13px; letter-spacing: .22em; text-transform: uppercase; fill: #7e8f98; font-style: italic; }
.pj-map .isl { fill: #e2e7ea; stroke: #c5ccd0; }
.pj-map .route { fill: none; stroke: #c8102e; stroke-width: 2; stroke-dasharray: 6 6; }
.pj-map .pt circle { fill: #fff; stroke: #111; stroke-width: 2; }
.pj-map .pt.main circle { fill: #c8102e; stroke: #c8102e; }
.pj-map .pt text { font-family: var(--font); font-size: 14px; font-weight: 600; fill: #111; }
.pj-stops h2 { font-family: var(--font-head); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; font-size: clamp(28px, 3.4vw, 48px); margin-bottom: 28px; }
.pj-stops ol { list-style: none; counter-reset: st; }
.pj-stops li { counter-increment: st; position: relative; padding: 0 0 22px 48px; }
.pj-stops li::before { content: counter(st); position: absolute; left: 0; top: -2px; width: 30px; height: 30px; border: 1.5px solid #111; border-radius: 50%;
  display: grid; place-items: center; font-size: 13px; font-weight: 600; }
.pj-stops li.main::before { background: #c8102e; border-color: #c8102e; color: #fff; }
.pj-stops b { display: block; font-size: 18px; margin-bottom: 4px; }
.pj-stops span { color: #555; line-height: 1.5; }
.pj-gallery { padding-top: 10px; }
@media (max-width: 760px) { .pj-route { grid-template-columns: 1fr; padding-bottom: 64px; } }

/* правки страницы проекта v2 */
.pj-partners li.logo { border: 0; padding: 0; height: 64px; display: flex; align-items: center; }
.pj-partners li.logo img { height: 100%; width: auto; max-width: 190px; object-fit: contain; }
.pj-partners ul { gap: 18px 44px; align-items: center; }
.pj-film { max-width: 920px; margin: 0 auto; }                    /* фильм меньше, по центру */
.pj-author-photo { background-position: 72% center; }             /* автор в центре кадра */
.pj-break-wide { height: 62vh; background-position: center 60%; }
.pj-map .sea-bg { fill: #dfe8ed; }
.pj-map .land { fill: #ffffff; stroke: #aeb9bf; stroke-width: 1; }
.pj-map .pt text { font-size: 15px; }
.pj-map .gl { fill: #a3acb1; }
@media (max-width: 760px) { .pj-partners li.logo { height: 44px; } .pj-partners ul { gap: 14px 26px; } }

/* правки v3: партнёры в одну строку, карта по высоте экрана, отступ фильм → медведь */
.pj-partners ul { flex-wrap: nowrap; gap: 0 clamp(16px, 2.6vw, 40px); max-width: none; }
.pj-partners li.logo { height: 52px; flex: 0 1 auto; min-width: 0; }
.pj-partners li.logo img { max-width: 100%; max-height: 52px; height: auto; width: auto; }
.pj-route { grid-template-columns: auto 1fr; justify-content: center; }
.pj-map { background: none; display: flex; justify-content: center; }
.pj-map svg { width: auto; height: min(68vh, 560px); max-width: 100%; }
.pj-film + .pj-break { margin-top: 96px; }
.pj-break-wide { height: 70vh; background-position: center 28%; }   /* больше неба */
@media (max-width: 760px) {
  .pj-partners ul { flex-wrap: wrap; gap: 14px 24px; }
  .pj-partners li.logo { height: 40px; }
  .pj-route { grid-template-columns: 1fr; }
  .pj-map svg { height: auto; width: 100%; }
  .pj-film + .pj-break { margin-top: 56px; }
}
.pj-map svg { height: min(58vh, 470px); }                                  /* вровень со списком маршрута */
.pj-partners li.logo img { max-width: 124px; max-height: 56px; }        /* широкие логотипы не забивают круглые */

/* правки v4: медведь — золотая середина; «Слово автора» в один экран, автор по центру кадра */
.pj-break-wide { height: 66vh; background-position: center 44%; }
.pj-author { grid-template-columns: min(40vw, 540px) minmax(0, 620px); justify-content: center; padding: 88px 0; }
.pj-author-photo { aspect-ratio: 4/5; background-position: 87% center; }
@media (max-width: 760px) { .pj-author { grid-template-columns: 1fr; padding: 56px 0; } }
/* «Об экспедиции» — заголовок в одну строку (ширина текста ограничена только у абзацев) */
.pj-text { max-width: none; }
.pj-text p { max-width: 760px; margin-left: auto; margin-right: auto; }
@media (min-width: 761px) { .pj-text .section-title { white-space: nowrap; } }
/* «Маршрут»: карта + список как единый блок по центру страницы */
.pj-route { grid-template-columns: auto minmax(0, 560px); justify-content: center; column-gap: clamp(40px, 6vw, 96px); }
@media (max-width: 760px) { .pj-route { grid-template-columns: 1fr; } }
/* обе полосы с медведями одной высоты (как нижняя) */
.pj-break, .pj-break-wide { height: 66vh; }
@media (max-width: 760px) { .pj-break, .pj-break-wide { height: 50vh; } }

.masonry .item { position: relative; }

/* Первый экран с текстом снизу слева (heroAlign: "left") — когда главный объект кадра в центре */
.pj-hero.left { place-items: end start; text-align: left; }
.pj-hero.left::before { background: linear-gradient(90deg, rgba(0,0,0,.55), rgba(0,0,0,.1) 60%, rgba(0,0,0,0)), linear-gradient(transparent 50%, rgba(0,0,0,.35)); }
.pj-hero.left .pj-hero-in { padding: 0 clamp(20px, 4vw, 64px) clamp(28px, 6vh, 64px); max-width: 760px; }
.pj-hero.left h1 { font-size: clamp(44px, 6.5vw, 104px); }
.pj-hero.left h1 span { font-size: .3em; }
.pj-hero.left .pj-hero-text { margin-left: 0; }

/* «Слово автора»: фото высотой с текст, а не на полэкрана */
.pj-author { grid-template-columns: minmax(0, 340px) minmax(0, 620px); justify-content: center; align-items: stretch; gap: clamp(32px, 5vw, 72px); }
.pj-author-photo { aspect-ratio: auto; min-height: 360px; }
@media (max-width: 760px) { .pj-author { grid-template-columns: 1fr; } .pj-author-photo { aspect-ratio: 4/5; min-height: 0; max-width: 340px; } }
/* без висячих слов в подписях первого экрана */
.pj-hero .pj-hero-text, .pj-hero .pj-lead { text-wrap: balance; }

/* Галерея «парами» (galleryLayout: "pairs") */
.pairs { display: flex; flex-direction: column; gap: var(--gap); max-width: 1180px; margin: 0 auto; }
.pairs .prow { display: flex; gap: var(--gap); }
.pairs .item { position: relative; min-width: 0; background: var(--tile); cursor: zoom-in; overflow: hidden; opacity: 0; transition: opacity .8s; }
.pairs .item.in { opacity: 1; }
.pairs .item img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 560px) { .pairs .prow { flex-direction: column; } .pairs .item { flex: none !important; width: 100%; } }

/* Об авторе v2: первый экран целиком, один размер текста, услуги одним списком в 2 колонки */
.about { grid-template-columns: minmax(0, 400px) minmax(0, 680px); justify-content: center; align-items: center; padding: 32px 0 56px; }
.about-photo { aspect-ratio: 4/5; max-height: calc(100svh - var(--hh, 80px) - 88px); width: 100%; margin: 0 auto; }
.about-text p, .about-text .about-lead { font-size: 17px; line-height: 1.65; margin-top: 16px; }
.about-text .about-lead { margin-top: 26px; }
.about-facts { margin-top: 32px; }
.about-cols { grid-template-columns: 2fr 1fr; }
.about-services ul { columns: 2; column-gap: 40px; }
.about-services li { break-inside: avoid; }
.about-clients ul { max-width: 1200px; gap: 32px clamp(28px, 4vw, 60px); }
.about-clients img { max-height: 56px; max-width: 190px; }
.about-places .rmap { margin-bottom: 72px; }
.rmap-tip { pointer-events: none; }
@media (max-width: 760px) { .about { grid-template-columns: 1fr; } .about-photo { max-height: 60svh; } .about-cols { grid-template-columns: 1fr; } .about-services ul { columns: 1; } }
.about-clients img { height: 52px; width: auto; max-width: 200px; }
@media (max-width: 760px) { .about-clients img { height: 38px; } }
.about-clients img[src*="mosru"] { height: 40px; } .about-clients img[src*="mirea"], .about-clients img[src*="komanda"] { height: 64px; }

/* Об авторе v3: фото ровно по высоте текстового блока, всё в один экран */
.about { grid-template-columns: minmax(0, 360px) minmax(0, 680px); align-items: stretch; padding: 24px 0 40px; }
.about-photo { aspect-ratio: auto; max-height: none; height: 100%; min-height: 420px; }
.about-text h1 { font-size: clamp(30px, 3.2vw, 50px); }
.about-text h1 span { margin-top: 10px; }
.about-text p, .about-text .about-lead { font-size: 16px; line-height: 1.6; margin-top: 12px; }
.about-text .about-lead { margin-top: 20px; }
.about-facts { margin-top: 24px; }
.about-facts b { font-size: clamp(26px, 2.6vw, 38px); }
/* логотипы — два примерно равных ряда (4 + 3) */
.about-clients ul { max-width: 1040px; gap: 36px 0; }
.about-clients li { flex: 0 0 25%; justify-content: center; }
@media (max-width: 760px) { .about-photo { height: auto; aspect-ratio: 4/5; min-height: 0; } .about-clients li { flex-basis: 50%; } }
.about-text h1 { font-size: clamp(34px, 4.2vw, 64px); max-width: 560px; } .about { padding-top: 32px; }

/* Карта: контур рисуем снизу толстой линией, заливку — сверху без обводки, чтобы не было швов между полигонами */
.rmap .land-edge { fill: #d6d6d2; stroke: #d6d6d2; stroke-width: 2.4; stroke-linejoin: round; }
.rmap .land { fill: #eeeeec; stroke: none; }
/* Эмблема «Команды Арктики» круглая и детальная — на одной высоте с широкими логотипами выглядит мелкой, даём ей больше высоты */
.pj-partners li.logo:has(img[src*="komanda-arktiki"]) { height: 92px; }
.pj-partners li.logo img[src*="komanda-arktiki"] { max-height: 92px; max-width: 92px; }
.about-clients li:has(img[src*="komanda-arktiki"]) { height: 96px; }
.about-clients img[src*="komanda-arktiki"] { height: 96px; }
@media (max-width: 760px) { .pj-partners li.logo:has(img[src*="komanda-arktiki"]), .pj-partners li.logo img[src*="komanda-arktiki"] { height: 64px; max-height: 64px; } .about-clients img[src*="komanda-arktiki"], .about-clients li:has(img[src*="komanda-arktiki"]) { height: 64px; } }

/* Об авторе v4: фото стандартное 3:4 по высоте текста, ровные отступы под именем */
.about { grid-template-columns: 420px minmax(0, 680px); align-items: center; }
.about-photo { aspect-ratio: 3/4; height: auto; min-height: 0; width: 100%; }
.about-text h1 span { margin-top: 18px; }
.about-text .about-lead { margin-top: 18px; }
@media (max-width: 1100px) { .about { grid-template-columns: 340px minmax(0, 1fr); } }
@media (max-width: 760px) { .about { grid-template-columns: 1fr; } .about-photo { max-width: 420px; } }
/* «Слово автора»: стандартное фото 3:4 */
.pj-author { grid-template-columns: 340px minmax(0, 620px); align-items: center; }
.pj-author-photo { aspect-ratio: 3/4; min-height: 0; }
@media (max-width: 760px) { .pj-author { grid-template-columns: 1fr; } .pj-author-photo { max-width: 340px; } }
/* межстрочный в подзаголовке первого экрана */
.pj-hero h1 span { line-height: 1.22; }
.pj-partners li.logo img[src*="russia-discovery"] { height: 56px; width: auto; max-width: 220px; }
.about-clients img[src*="komanda-arktiki"] { max-height: none; max-width: none; }
.about-clients img[src*="mirea"] { height: 72px; max-height: none; }
/* Футер: копирайт слева, Telegram справа */
.footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.footer .tg { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); transition: color .2s; }
.footer .tg:hover { color: var(--fg); }
.footer .tg svg { width: 22px; height: 22px; fill: currentColor; }

/* Футер — по краям шапки: те же 40px слева и справа */
.footer { padding: 40px 40px 34px; }
.footer-contacts { display: flex; align-items: center; gap: 20px; }
.footer .phone { color: var(--muted); letter-spacing: .04em; transition: color .2s; }
.footer .phone:hover { color: var(--fg); }
.footer .tg { color: var(--fg); }
.footer .tg:hover { color: #229ED9; }
.footer .tg svg { width: 24px; height: 24px; }
@media (max-width: 760px) { .footer { padding: 32px 16px; } }
/* Точки-ссылки на экспедиции */
.rmap a { cursor: pointer; }
.rmap .pt.link .dot { stroke: #fff; stroke-width: 1.5; }
/* Эмблема «Команды Арктики» — чуть крупнее широких логотипов, но не больше */
.pj-partners li.logo:has(img[src*="komanda-arktiki"]) { height: 70px; }
.pj-partners li.logo img[src*="komanda-arktiki"] { max-height: 70px; max-width: 70px; }
.about-clients li:has(img[src*="komanda-arktiki"]), .about-clients img[src*="komanda-arktiki"] { height: 74px; }
/* блок логотипов: одинаковые отступы сверху (от линии) и снизу (до заголовка) */
.pj-partners { padding: 56px 0 0; }
.pj-partners + .pj-text .section-title { padding-top: 56px; }
.about-clients img[src*="bask"] { height: 34px; }
/* 9 логотипов — два ряда 5 + 4 */
.about-clients ul { max-width: 1200px; }
.about-clients li { flex: 0 0 20%; }
.about-clients img[src*="rds"] { height: 44px; }
@media (max-width: 760px) { .about-clients li { flex-basis: 50%; } }

/* «С кем работал» v3: логотипы не в равных ячейках, а с равными промежутками; высота — из пропорций (--h) */
.about-clients ul { max-width: none; gap: 44px 72px; }
.about-clients li, .about-clients li:has(img[src*="komanda-arktiki"]) { flex: none; height: 80px; }
.about-clients li img, .about-clients img[src*="mosru"], .about-clients img[src*="mirea"], .about-clients img[src*="komanda-arktiki"], .about-clients img[src*="bask"], .about-clients img[src*="rds"] { height: var(--h); width: auto; max-width: none; max-height: none; }
.about-clients li.row-break { flex-basis: 100%; height: 0; }
@media (max-width: 760px) {
  .about-clients ul { gap: 28px 36px; }
  .about-clients li, .about-clients li:has(img[src*="komanda-arktiki"]) { height: 56px; }
  .about-clients li img, .about-clients img[src*="mosru"], .about-clients img[src*="mirea"], .about-clients img[src*="komanda-arktiki"], .about-clients img[src*="bask"], .about-clients img[src*="rds"] { height: calc(var(--h) * .68); }
  .about-clients li.row-break { display: none; }
}
.about-clients li.row-break { margin-top: -44px; }
@media (max-width: 760px) { .about-clients li.row-break { margin-top: 0; } }

/* ===== Мобильная версия v2 ===== */
@media (max-width: 760px) {
  /* плитка фото: 2 колонки, промежуток поменьше */
  .masonry { gap: 6px; } .masonry .col { gap: 6px; }
  /* фото автора: не во всю ширину, а аккуратный портрет по центру */
  .about-photo, .pj-author-photo { width: 64%; max-width: 280px; aspect-ratio: 3/4; height: auto; margin: 0 auto; }
  .about { gap: 28px; }
  .pj-author { gap: 28px; padding: 48px 0; justify-items: stretch; }
  .pj-author-text h2 { text-align: center; }
  /* карточки экспедиций: не шире экрана, заголовок помещается */
  .projects { grid-template-columns: minmax(0, 1fr); }
  .pcard { aspect-ratio: 4/3; min-height: 0; padding: 0 16px; }
  .pcard h2 { font-size: clamp(28px, 9vw, 44px); letter-spacing: .03em; overflow-wrap: anywhere; }
  .pcard h2 span { font-size: .42em; letter-spacing: .08em; }
  .pcard p { font-size: 11px; letter-spacing: .12em; margin-top: 14px; }
}
html, body { overflow-x: clip; }   /* без случайной горизонтальной прокрутки на телефоне */

/* Телефон v3 */
@media (max-width: 760px) {
  /* полосы-разделители — узкие панорамы, как на компьютере */
  .pj-break, .pj-break-wide { height: auto; aspect-ratio: 2 / 1; }
  /* «С кем работал»: ровная сетка 2 колонки, логотипы поменьше, последний — по центру */
  .about-clients ul { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 16px; justify-items: center; align-items: center; }
  .about-clients li, .about-clients li:has(img[src*="komanda-arktiki"]) { height: 52px; }
  .about-clients li img, .about-clients img[src*="mosru"], .about-clients img[src*="mirea"], .about-clients img[src*="komanda-arktiki"], .about-clients img[src*="bask"], .about-clients img[src*="rds"] { height: calc(var(--h) * .58); max-width: 100%; object-fit: contain; }
  .about-clients li:last-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) { .pj-facts { padding-bottom: 44px; } }

/* ===== Телефон v4: единые поля 16px (как у шапки) и аккуратные блоки ===== */
@media (max-width: 760px) {
  main { padding: 0 16px 16px; }
  .pj-hero, .pj-break, .pj-break-wide { margin-left: -16px; margin-right: -16px; }
  /* большие цифры: три равные колонки в ширину экрана */
  .pj-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 12px; padding: 32px 0 44px; }
  .pj-facts b { font-size: clamp(28px, 9vw, 40px); }
  .pj-facts span { font-size: 10px; letter-spacing: .1em; }
  /* длинные абзацы читаются лучше слева; заголовки остаются по центру */
  .pj-text p { text-align: left; }
  /* «Когда / Где / …» — две колонки с нормальным промежутком */
  .pj-meta { grid-template-columns: 1fr 1fr; gap: 20px 16px; padding: 32px 0; }
  .pj-meta dd { font-size: 14px; }
}
@media (max-width: 760px) {
  .pj-map, .pj-map svg { height: auto; width: 100%; }
  .pj-route { gap: 24px; padding: 24px 0 48px; }
  .pj-stops h2 { text-align: center; }
}

/* Логотипы клиентов — в цвете */
.about-clients li { filter: none; opacity: 1; }
/* «Об авторе» на телефоне: цифры — три колонки по центру */
@media (max-width: 760px) {
  .about-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; text-align: center; margin-top: 28px; }
  .about-facts b { font-size: clamp(22px, 7vw, 30px); white-space: nowrap; }
  .about-facts span { font-size: 10px; letter-spacing: .1em; }
}
@media (max-width: 760px) {
  .about-facts { grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 10px; }
  .about-facts b { font-size: clamp(20px, 6.4vw, 28px); }
}
