/* Оформление сайта promalp.baikal.ru — одно на все страницы. Цвета — в начале файла. */
:root {
  --brand: #1982a5;
  --brand-light: #3ba4c7;
  --brand-dark: #034264;
  --soft: #e3f1f7;
  --bg: #f5f8fa;
  --text: #1d2b34;
  --muted: #6a7c88;
  --line: #e6edf1;
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, "Segoe UI", Roboto, Verdana, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--text); font: 400 17px/1.65 var(--sans); }
a { color: var(--brand); }
a:hover { color: var(--brand-dark); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
site-header, site-footer, site-hero, site-cards, site-more { display: block; }
site-header { min-height: 69px; }

/* Шапка */
.top { border-bottom: 1px solid var(--line); background: #fff; }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; min-height: 68px; padding-top: 10px; padding-bottom: 10px; }
.name { font: 700 24px/1.15 var(--serif); color: var(--brand-dark); text-decoration: none; letter-spacing: .2px; }
.name:hover { color: var(--brand); }
.menu { display: flex; gap: 26px; }
.menu a { color: #4a5c68; text-decoration: none; font-size: 16px; padding: 4px 0; }
.menu a:hover { color: var(--brand-dark); }
.menu a.on { color: var(--brand-dark); font-weight: 700; box-shadow: inset 0 -2px 0 var(--brand); }

/* Большое фото на главной */
.hero { position: relative; display: block; height: 440px; background: #0b3550 center/cover no-repeat; color: #fff; text-decoration: none; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(3,30,48,0) 35%, rgba(3,30,48,.85) 100%); }
.hero-in { position: absolute; left: 0; right: 0; bottom: 34px; z-index: 1; max-width: 1120px; margin: 0 auto; padding: 0 24px; display: block; }
.hero .tag { display: inline-block; font-size: 12px; letter-spacing: .8px; text-transform: uppercase; padding: 4px 10px; border-radius: 3px; background: var(--brand); }
.hero b { display: block; margin: 12px 0 6px; font: 700 36px/1.2 var(--serif); max-width: 820px; }
.hero .go { opacity: .9; font-size: 15px; }
.hero:hover { color: #fff; }
.hero:hover .go { text-decoration: underline; }

/* Карточки статей */
.section { background: var(--bg); padding: 36px 0 44px; }
.row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.row h1, .row h2 { margin: 0; font: 700 26px/1.2 var(--serif); color: var(--brand-dark); }
.row a { font-size: 15px; text-decoration: none; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { display: block; background: #fff; border-radius: 10px; overflow: hidden; text-decoration: none; color: var(--text);
  box-shadow: 0 1px 2px rgba(3,66,100,.08), 0 6px 18px rgba(3,66,100,.06); transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(3,66,100,.1), 0 12px 28px rgba(3,66,100,.12); color: var(--text); }
.card .ph { display: block; aspect-ratio: 16/10.5; background: #cfe3ee center/cover no-repeat; }
.card .t { display: block; padding: 12px 14px 16px; }
.card i { font-style: normal; font-size: 12px; letter-spacing: .6px; text-transform: uppercase; color: var(--brand); }
.card b { display: block; margin-top: 4px; font: 700 16px/1.3 var(--serif); overflow-wrap: anywhere; hyphens: auto; }

/* Статья */
.article { max-width: 760px; margin: 0 auto; padding: 40px 0 20px; }
.article h1 { margin: 0 0 8px; font: 700 36px/1.2 var(--serif); color: var(--brand-dark); }
.meta { margin: 0 0 28px; color: var(--muted); font-size: 15px; }
.toc { background: var(--soft); border-left: 3px solid var(--brand); border-radius: 0 10px 10px 0; padding: 14px 20px; margin: 0 0 32px; font-size: 16px; }
.toc b { font-family: var(--serif); color: var(--brand-dark); }
.toc ol { margin: 8px 0 0; padding-left: 22px; }
.toc li { margin: 4px 0; }
.part { scroll-margin-top: 16px; }
.part + .part { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); }
.text { overflow-wrap: break-word; }
.text::after { content: ""; display: block; clear: both; }
.text img { max-width: 100%; height: auto; cursor: zoom-in; }
.text a:not([href$=".jpg"]):not([href$=".jpeg"]):not([href$=".JPG"]):not([href$=".png"]):not([href$=".gif"]) img { cursor: pointer; }
.text iframe { max-width: 100%; }
.text audio { width: 100%; max-width: 480px; }
.text table { max-width: 100%; }
.text h2, .text h3 { font-family: var(--serif); color: var(--brand-dark); line-height: 1.25; }
.text [align="center"] { text-align: center; }

/* Фото с подписью: справа, слева, во всю ширину */
.pic { margin: 6px 0 16px; width: 300px; max-width: 46%; }
.pic img { display: block; border-radius: 6px; width: 100%; }
.pic figcaption, .pictxt { font-size: 13.5px; line-height: 1.4; color: var(--muted); margin-top: 6px; }
.pic-r { float: right; margin-left: 24px; clear: right; }
.pic-l { float: left; margin-right: 24px; clear: left; }
.pic-wide { width: auto; max-width: 100%; margin: 24px 0; text-align: center; }
.pic-wide img { margin: 0 auto; width: auto; max-width: 100%; }
.text img.pic { border-radius: 6px; margin: 12px auto; }

.more { padding: 40px 0 48px; border-top: 1px solid var(--line); margin-top: 32px; }

/* Подвал */
.foot { margin-top: 0; padding: 20px 0; font-size: 14px; color: #b9d3e1; background: var(--brand-dark); }
.foot a { color: #fff; }
.foot a.mail i { font-style: normal; }

/* Просмотр фото */
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(3,20,32,.94); display: flex; align-items: center; justify-content: center; }
.lb figure { margin: 0; max-width: 92vw; text-align: center; }
.lb img { max-width: 92vw; max-height: 84vh; border-radius: 4px; }
.lb figcaption { color: #cfe3ee; font-size: 15px; margin-top: 10px; }
.lb button { position: absolute; background: none; border: 0; color: #fff; font-size: 44px; line-height: 1; cursor: pointer; padding: 12px 18px; opacity: .8; }
.lb button:hover { opacity: 1; }
.lb-x { top: 8px; right: 8px; }
.lb-p { left: 4px; top: 50%; transform: translateY(-50%); }
.lb-n { right: 4px; top: 50%; transform: translateY(-50%); }

/* Фото-эссе: подряд идущие фото с подписями — сеткой, без обрезки; по клику крупно */
.gal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px 18px; align-items: start; margin: 22px 0 26px; clear: both; }
.gal-2 { grid-template-columns: repeat(2, 1fr); }
.gal-1 { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; }
.gi { margin: 0; }
.gi a { display: block; }
.gi img { display: block; width: 100%; height: auto; border-radius: 6px; background: #e6eef3; }
.gi figcaption { font-size: 13.5px; line-height: 1.4; color: var(--muted); margin-top: 7px; text-align: left; }

/* Страница «Маршруты»: паспорт маршрута рядом со схемой, варианты маршрутов */
.routes .toc ol { columns: 2; column-gap: 32px; }
.routes .part { scroll-margin-top: 16px; }
.routes .part > .meta { margin: -6px 0 12px; font-size: 14.5px; }
.lines { margin: 0 0 14px; padding-left: 20px; }
.route { scroll-margin-top: 16px; }
.text h3 a { text-decoration: none; }
.passport { display: flow-root; margin: 10px 0 24px; padding: 16px 20px; background: var(--soft); border-radius: 10px; font-size: 15.5px; }
.passport .pic { margin-top: 0; }
.passport > b { display: block; color: var(--brand-dark); margin-top: 8px; }
.passport > b:first-of-type { margin-top: 0; }
.passport .pad { margin: 2px 0 0; }
.passport ul { margin: 6px 0; padding-left: 20px; }
[id^="p"].gi, .passport { scroll-margin-top: 16px; }

/* Главная: маршруты, фото из поездок, цитата */
.routes-teaser { background: #fff; }
.teaser { display: grid; grid-template-columns: 1.1fr 1fr; gap: 36px; align-items: center; }
.teaser-ph img { display: block; width: 100%; height: auto; border-radius: 10px; }
.teaser-t i { font-style: normal; font-size: 12px; letter-spacing: .8px; text-transform: uppercase; color: var(--brand); }
.teaser-t h2 { margin: 6px 0 14px; font: 700 28px/1.2 var(--serif); color: var(--brand-dark); }
.teaser-t p { margin: 0 0 12px; }
.muted { color: var(--muted); font-size: 15px; }
.btn { display: inline-block; margin-top: 8px; padding: 10px 20px; border-radius: 6px; background: var(--brand); color: #fff; text-decoration: none; font-size: 15px; }
.btn:hover { background: var(--brand-dark); color: #fff; }
.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.shot { position: relative; display: block; aspect-ratio: 4/3; border-radius: 10px; overflow: hidden; color: #fff; text-decoration: none; background: #cfe3ee; }
.shot img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.shot span { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 12px 10px; font-size: 12.5px; line-height: 1.35;
  background: linear-gradient(180deg, rgba(3,30,48,0), rgba(3,30,48,.85)); opacity: .95; }
.shot span b { display: block; font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.shot:hover img { transform: scale(1.04); }
.shot:hover { color: #fff; }
.quote { margin: 0 auto; max-width: 820px; text-align: center; }
.quote p { margin: 0 0 12px; font: italic 400 26px/1.45 var(--serif); color: var(--brand-dark); }
.quote a { font-size: 15px; text-decoration: none; }
.all { text-align: center; margin: 26px 0 0; }

@media (max-width: 900px) {
  .shots { grid-template-columns: repeat(2, 1fr); }
  .teaser { grid-template-columns: 1fr; gap: 20px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}
@media (max-width: 640px) {
  .gal { grid-template-columns: repeat(2, 1fr); gap: 16px 12px; }
  .gal-1 { grid-template-columns: 1fr; }
  .routes .toc ol { columns: 1; }
  .passport { padding: 14px 14px; }
  .shots { gap: 10px; }
  .shot span { font-size: 0; padding: 24px 9px 8px; }
  .shot span b { font-size: 12.5px; margin: 0; }
  .quote p { font-size: 21px; }
  .teaser-t h2 { font-size: 23px; }
  body { font-size: 16.5px; }
  .wrap { padding: 0 16px; }
  .name { font-size: 20px; }
  .menu { gap: 18px; }
  .hero { height: 300px; }
  .hero-in { padding: 0 16px; bottom: 22px; }
  .hero b { font-size: 24px; }
  .article { padding-top: 26px; }
  .article h1 { font-size: 27px; }
  .pic, .pic-r, .pic-l { float: none; width: auto; max-width: 100%; margin: 18px auto; text-align: center; }
  .pic img { margin: 0 auto; }
  .text [style*="float"] { float: none !important; display: block; margin: 16px auto !important; }
  .text table, .text tbody, .text tr, .text td { max-width: 100%; }
  .row h1, .row h2 { font-size: 22px; }
}
