/* ШТАБ Мультимедиа — визитка. Бенто на светлом, как у ШТАБ Рентал:
   те же токены, радиусы и приёмы, чтобы два сайта читались как одна семья.
   Правится руками, сборки нет — страница одна. */

@font-face {
  font-family: Manrope;
  src: url(fonts/manrope-cyrillic.woff2) format('woff2');
  unicode-range: U+0400-04FF, U+2116;
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: Manrope;
  src: url(fonts/manrope-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+2000-206F, U+2190-21BB;
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: Montserrat;
  src: url(fonts/montserrat-cyrillic.woff2) format('woff2');
  unicode-range: U+0400-04FF, U+2116;
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: Montserrat;
  src: url(fonts/montserrat-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+2000-206F;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --ink: #16181D;
  --ink-soft: #6b6f76;
  --paper: #ffffff;
  --page: #e9eaec;
  --line: #E4E7EC;
  --blue: #001AFF;        /* акцент: мелкие плитки, кнопки */
  --blue-soft: #E4E8FF;   /* крупные плоскости: сплошной #001AFF на них режет глаз */
  --lime: #c6f12f;
  --r-out: 30px;
  --r-in: 22px;
  --gap: 12px;
  --pad: 14px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
/* Якоря останавливаются ниже липкой шапки, иначе заголовок раздела прячется под ней */
section[id] { scroll-margin-top: 82px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 400 16px/1.45 Manrope, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .logo, .fact b, .hero-pill strong, .step h3, .ct b { font-family: Montserrat, Manrope, sans-serif; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, p { margin: 0; }

.shell { max-width: 1640px; margin: 0 auto; padding: var(--pad); }

/* --- шапка ------------------------------------------------------------- */

.head {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  padding: 9px 9px 9px 16px;
  background: var(--paper);
  border-radius: 999px;
  position: sticky;
  top: var(--pad);
  z-index: 20;
}

.logo { grid-column: 2; justify-self: center; font-weight: 500; font-size: 16.5px; letter-spacing: -0.03em; white-space: nowrap; color: var(--ink-soft); }
.logo b { font-weight: 700; color: var(--ink); }

.nav { display: flex; gap: 4px; flex-wrap: wrap; justify-self: start; }
.nav a { padding: 8px 13px; border-radius: 999px; font-size: 14.5px; font-weight: 500; color: var(--ink-soft); transition: background .18s, color .18s; }

.burger { display: none; grid-column: 1; justify-self: start; width: 38px; height: 38px; border: 0; border-radius: 50%; background: #f1f1ef; cursor: pointer; place-items: center; gap: 5px; align-content: center; }
.burger span { display: block; width: 16px; height: 1.8px; border-radius: 2px; background: var(--ink); transition: transform .22s ease; }
.head.is-menu .burger span:first-child { transform: translateY(3.4px) rotate(45deg); }
.head.is-menu .burger span:last-child { transform: translateY(-3.4px) rotate(-45deg); }

.head-act { grid-column: 3; justify-self: end; display: flex; gap: 8px; align-items: center; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 19px; border-radius: 999px;
  font-size: 14px; font-weight: 600; letter-spacing: -0.01em;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .15s, background .18s, color .18s;
}
.btn-ghost { border-color: #e2e2e0; color: var(--ink); background: transparent; }
.btn-dark { background: var(--ink); color: #fff; }

@media (hover: hover) and (pointer: fine) {
  .nav a:hover { background: #f1f1ef; color: var(--ink); }
  .btn-ghost:hover { background: #f4f4f2; }
  .btn-dark:hover { background: #2b2d31; }
  .tile:hover { transform: translateY(-2px); }
  .card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(17,18,20,.07); }
}
.btn:active, .tile:active { transform: scale(.985); }

/* --- бенто ------------------------------------------------------------- */

.bento {
  display: grid;
  grid-template-columns: 1.32fr 1fr;
  grid-template-rows: 1fr auto;
  gap: var(--gap);
  margin-top: var(--gap);
}
.bento-pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }

.tile {
  position: relative;
  border-radius: var(--r-in);
  padding: 30px;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform .2s ease;
  text-align: left;
}
.tile:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.tile-hero { grid-row: 1 / 3; background: var(--ink); color: #fff; min-height: 440px; }
.tile-gray { background: var(--paper); }
.tile-blue { background: var(--blue); color: #fff; }
.tile-dark { background: var(--ink); color: #fff; }
.tile-blue .tile-label { opacity: .6; }
.tile-lime { background: var(--lime); }

.tile-label { font-size: 11.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; opacity: .55; max-width: 70%; }

.tile h1, .tile h2 {
  font-size: clamp(30px, 3.4vw, 52px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 600;
  margin-top: 14px;
  max-width: 12ch;
}
.tile-gray h2, .tile-blue h2, .tile-lime h2, .tile-dark h2 { margin-top: auto; font-size: clamp(24px, 2.4vw, 34px); max-width: 14ch; }
.bento-pair h2 { font-size: clamp(21px, 1.85vw, 27px); max-width: 9ch; }
.bento-pair .tile { padding: 24px; }

.tile-arrow { position: absolute; top: 26px; right: 26px; font-size: 20px; line-height: 1; opacity: .8; }
.tile-note { margin-top: 12px; font-size: 14px; color: var(--ink-soft); max-width: 30ch; }
.tile-dark .tile-note, .tile-blue .tile-note { color: rgba(255,255,255,.62); }

/* Кадр в правой половине тёмной плитки. Слева уходит в прозрачность маской,
   сверху и снизу его гасит градиент цвета плитки — жёсткой границы нет
   ни с одной стороны, текст остаётся на чистом фоне. */
.hero-shot {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 58%;
  z-index: 0;
  pointer-events: none;
}
.hero-shot img { width: 100%; height: 100%; object-fit: cover; opacity: .92; }
.hero-shot {
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.32) 34%, #000 72%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.32) 34%, #000 72%);
}
/* мягкие поля сверху и снизу — тем же цветом, что и плитка */
.hero-shot::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, var(--ink) 0%, transparent 22%),
    linear-gradient(0deg, var(--ink) 0%, transparent 26%);
}
/* Текст и пилюля идут поверх кадра */
.tile-hero > *:not(.hero-shot) { position: relative; z-index: 2; }

/* Тёплое пятно под тёмной плиткой — единственное украшение на светлой странице */
.tile-hero::after {
  content: '';
  position: absolute; right: -6%; bottom: -14%;
  width: 62%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, var(--lime) 0%, transparent 68%);
  opacity: .17; filter: blur(6px); pointer-events: none;
}
/* Заголовок держим в две-три строки: кегль мельче, строка длиннее,
   иначе фраза рассыпается на четыре коротких обрывка. */
.tile-hero h1 { max-width: 19ch; margin-top: 0; font-size: clamp(27px, 2.9vw, 44px); line-height: 1.06; }
/* Подпись прижата к низу плитки: заголовок сверху, текст в нижнем левом углу */
.hero-note { font-size: 14px; color: rgba(255,255,255,.6); max-width: 34ch; line-height: 1.4; margin-top: auto; padding-top: 24px; }
.hero-foot { margin-top: auto; display: flex; align-items: center; gap: 10px; padding-top: 22px; }

.hero-pill { display: inline-flex; align-items: center; gap: 14px; background: #fff; color: var(--ink); border-radius: 999px; padding: 7px 7px 7px 20px; }
.hero-pill span { display: block; font-size: 11px; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-soft); }
.hero-pill strong { display: block; font-size: 15px; font-weight: 600; letter-spacing: -0.02em; margin-top: -1px; }
.hero-pill i { width: 40px; height: 40px; border-radius: 50%; background: var(--lime); display: grid; place-items: center; flex: none; font-style: normal; }

/* --- второй экран: про меня ---------------------------------------------- */

/* Блок узкий: фото кадрируется в круг прямо в карточке, отдельной плитки
   под портрет нет. Справа — два факта столбиком. */
.about-row {
  display: grid;
  /* кадры справа маленькие: колонка узкая, высоту блока задаёт текст */
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: var(--gap);
  margin-top: var(--gap);
}
.tile-me { min-height: 0; }
.me-head { display: flex; align-items: center; gap: 18px; }
.me-photo {
  width: 96px; height: 96px; flex: none;
  border-radius: 50%; overflow: hidden;
  background: #dfe0e2 center/cover no-repeat;
  display: grid; place-items: center;
  font-size: 11.5px; color: #9a9ca0;
}
.tile-me h2 { font-size: clamp(24px, 2.2vw, 32px); margin-top: 6px; max-width: none; }
.me-role { font-size: 14.5px; color: var(--ink-soft); margin-top: 2px; }
.me-text { margin-top: 18px; color: var(--ink-soft); font-size: 15px; max-width: 46ch; line-height: 1.5; }
.me-foot { margin-top: 22px; display: flex; gap: 8px; flex-wrap: wrap; }
/* Два небольших кадра, прижаты к верху колонки */
.about-media { display: grid; align-content: start; gap: var(--gap); }
.media-tile {
  display: block;
  height: 170px;
  border-radius: var(--r-in);
  overflow: hidden;
  background: #dfe0e2;
}
.media-tile img { width: 100%; height: 100%; object-fit: cover; }
.media-tile.is-empty {
  display: grid; place-items: center; align-content: center; gap: 4px;
  font-size: 13px; color: #9a9ca0; text-align: center;
}
.media-tile.is-empty small { font-size: 11px; opacity: .75; }

@media (max-width: 900px) {
  .about-row { grid-template-columns: 1fr; }
  .about-media { grid-template-columns: 1fr 1fr; }
  .media-tile { height: auto; aspect-ratio: 4 / 3; }
}

/* Что беру на себя — короткими плашками, иначе в высокой плитке
   между текстом и кнопками остаётся пустое поле. */
.me-tags { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.me-tags li { background: #f1f1ef; border-radius: 999px; padding: 8px 14px; font-size: 13.5px; color: var(--ink-soft); }

.door-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 7px; }
.door-list li { font-size: 14.5px; opacity: .72; padding-left: 16px; position: relative; }
.door-list li::before { content: '—'; position: absolute; left: 0; opacity: .6; }

.tile-portrait { background: #dfe0e2; padding: 0; min-height: 260px; }
.portrait-slot {
  width: 100%; height: 100%; min-height: inherit;
  display: grid; place-items: center; text-align: center;
  font-size: 12.5px; color: #9a9ca0; letter-spacing: -0.01em;
}
.portrait-slot small { font-size: 11px; opacity: .7; }
.tile-fact { justify-content: flex-end; min-height: 0; padding: 22px 24px; }
.tile-fact h2 { margin-top: 8px; font-size: clamp(24px, 2.1vw, 32px); max-width: none; }

/* --- двери направлений ---------------------------------------------------- */

.doors { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.tile-door { min-height: 300px; }
.tile-door.tile-blue { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 2px var(--blue-soft); }
.tile-door.tile-blue .door-go { color: var(--blue); }
.tile-door h2 { margin-top: 14px; max-width: 14ch; }
.tile-door .tile-note { color: inherit; opacity: .62; max-width: 34ch; }
.door-go { margin-top: auto; padding-top: 22px; font-size: 14px; font-weight: 600; }
.door-go::after { content: ' →'; }
@media (max-width: 760px) { .doors { grid-template-columns: 1fr; } }

/* Каждое направление — своя цветная панель во всю ширину: чёрная у мультимедиа,
   синяя у событий. Так работы одного не читаются как продолжение другого. */
.branch {
  border-radius: var(--r-out);
  padding: clamp(22px, 2.4vw, 38px);
  margin-top: 34px;
}
.branch-dark { background: var(--ink); color: #fff; }
.branch-blue { background: var(--paper); color: var(--ink); }

.branch .section-head { margin: 0 4px 16px; }
.branch .section-sub { margin-top: 34px; }
.branch .section-head p { color: rgba(255,255,255,.62); }
.branch .btn-ghost { border-color: rgba(255,255,255,.3); color: #fff; }

/* Карточки внутри панели — на подложке того же семейства, а не белые:
   белый прямоугольник на цветном поле рвёт блок на части. */
.branch .card { background: rgba(255,255,255,.08); color: #fff; }
/* четыре карточки в ряд: при пяти колонках последняя строка рвётся на одну */
.branch .grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.branch .card p, .branch .card-metric span, .branch .card-role { color: rgba(255,255,255,.6); }
.branch .card-pic { background: rgba(255,255,255,.1); }
.branch .card-pic.is-empty::after { color: rgba(255,255,255,.4); }
@media (hover: hover) and (pointer: fine) {
  .branch .card:hover { background: rgba(255,255,255,.13); box-shadow: none; }
  .branch .btn-ghost:hover { background: rgba(255,255,255,.12); }
}

/* Панель событий светлая: возвращаем тёмный текст поверх правил чёрной панели */
.branch-blue .section-head p { color: var(--ink-soft); }
.branch-blue .btn-ghost { border-color: rgba(22,24,29,.18); color: var(--ink); }
.branch-blue .card { background: var(--blue-soft); color: var(--ink); }
.branch-blue .card p, .branch-blue .card-metric span, .branch-blue .card-role { color: var(--ink-soft); }
.branch-blue .card-pic { background: #d7dcff; }
.branch-blue .card-pic.is-empty::after { color: #a3a7c0; }
@media (hover: hover) and (pointer: fine) {
  .branch-blue .card:hover { background: #dbe0ff; box-shadow: 0 12px 30px rgba(17,18,20,.08); }
  .branch-blue .btn-ghost:hover { background: rgba(255,255,255,.6); }
}

.section-sub { margin-top: 30px; }
.section-sub h3 { font-size: clamp(19px, 1.8vw, 24px); font-weight: 600; letter-spacing: -0.03em; }

/* --- полоса «про нас» --------------------------------------------------- */

.strip { display: grid; grid-template-columns: 1.32fr 1fr; gap: var(--gap); margin-top: var(--gap); }
.strip-shtab { background: var(--paper); }
.strip-shtab h2 { font-size: clamp(23px, 2.2vw, 32px); max-width: 20ch; }
.strip-shtab p { margin-top: 14px; color: var(--ink-soft); font-size: 15px; max-width: 62ch; }
.strip-facts { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.fact { background: var(--paper); border-radius: var(--r-in); padding: 22px 24px; display: flex; flex-direction: column; justify-content: center; }
.fact b { display: block; font-size: 30px; font-weight: 600; letter-spacing: -0.03em; }
.fact span { display: block; font-size: 13.5px; color: var(--ink-soft); margin-top: 4px; line-height: 1.3; }

/* --- заголовки секций ---------------------------------------------------- */

.section-head { display: flex; align-items: flex-end; gap: 20px; margin: 34px 12px 16px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(26px, 3vw, 40px); letter-spacing: -0.035em; font-weight: 600; line-height: 1.05; }
.section-head p { color: var(--ink-soft); font-size: 14.5px; max-width: 46ch; }
.section-head .btn { margin-left: auto; }

/* --- сетки --------------------------------------------------------------- */

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(238px, 1fr)); gap: var(--gap); }

.card { background: var(--paper); border-radius: var(--r-in); padding: 14px; display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease; }

/* карточка кейса */
.card-pic { aspect-ratio: 4 / 3; border-radius: 15px; background: #f1f1ef; overflow: hidden; display: grid; place-items: center; }
.card-pic img { width: 100%; height: 100%; object-fit: cover; }
.card-pic.is-empty::after { content: 'фото скоро'; font-size: 12px; color: #a6a6a2; letter-spacing: -0.01em; }
.card-cat { font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); margin-top: 14px; }
.card h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.025em; line-height: 1.2; margin-top: 5px; }
.card-foot { margin-top: auto; padding-top: 14px; display: flex; align-items: flex-end; gap: 10px; }
.card-metric { font-size: 18px; font-weight: 600; letter-spacing: -0.03em; font-family: Montserrat, Manrope, sans-serif; }
.card-metric span { display: block; font-family: Manrope, sans-serif; font-size: 12.5px; font-weight: 400; color: var(--ink-soft); letter-spacing: -0.01em; }
.card-role { margin-left: auto; font-size: 12.5px; color: var(--ink-soft); text-align: right; max-width: 12ch; }

/* --- контакты -------------------------------------------------------------- */

.bento-contact { margin-top: 34px; }
.tile-contact h2 { font-size: clamp(24px, 2.6vw, 38px); max-width: 18ch; }
.cts { margin-top: auto; padding-top: 24px; display: flex; flex-direction: column; }
.ct { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 13px 0; border-top: 1px solid rgba(255,255,255,.13); }
.ct span { font-size: 11.5px; letter-spacing: .07em; text-transform: uppercase; color: rgba(255,255,255,.5); }
.ct b { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }

.foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--ink-soft); font-size: 13px; padding: 26px 12px 8px; }

/* --- узкие экраны ----------------------------------------------------------- */

@media (max-width: 1000px) {
  .bento, .strip { grid-template-columns: 1fr; }
  .tile-hero { grid-row: auto; min-height: 380px; }
  .nav { display: none; }
  .burger { display: grid; }
  .head.is-menu .nav {
    display: flex; position: absolute; top: calc(100% + 8px); left: 0; right: 0;
    flex-direction: column; background: var(--paper); border-radius: var(--r-in); padding: 10px;
  }
  .head { position: sticky; }
}

/* Планшет и крупный телефон: кадр в герое уходит из правой половины на весь
   фон плитки — в узкой колонке он перекрывал бы текст. */
@media (max-width: 760px) {
  .hero-shot { width: 100%; }
  .hero-shot img { opacity: .55; }
  .hero-shot {
    -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.35) 72%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.35) 72%, transparent 100%);
  }
  .hero-shot::after {
    background:
      linear-gradient(180deg, rgba(22,24,29,.55) 0%, transparent 34%),
      linear-gradient(0deg, var(--ink) 4%, transparent 52%);
  }
  .tile-hero h1 { max-width: 15ch; }
}

@media (max-width: 640px) {
  :root { --pad: 10px; --gap: 10px; --r-out: 24px; --r-in: 18px; }

  body { font-size: 15.5px; }

  /* шапка: бургер, название, одна кнопка действия */
  .head { padding: 7px 7px 7px 10px; gap: 8px; }
  .logo { font-size: 14.5px; }
  .btn { padding: 10px 15px; font-size: 13.5px; }
  .hide-sm { display: none; }

  /* плитки */
  .tile { padding: 20px; min-height: 0; }
  .tile-hero { min-height: 400px; }
  .tile h1, .tile h2 { font-size: 26px; max-width: 16ch; }
  .tile-hero h1 { font-size: 27px; }
  .bento-pair h2, .tile-gray h2, .tile-blue h2, .tile-lime h2, .tile-dark h2 { font-size: 22px; max-width: 14ch; }
  .bento-pair .tile { padding: 20px; min-height: 130px; }
  .tile-arrow { top: 18px; right: 18px; font-size: 17px; }
  .tile-note, .hero-note { font-size: 13.5px; }
  .hero-note { padding-top: 18px; }

  /* про меня */
  .me-photo { width: 76px; height: 76px; }
  .tile-me h2 { font-size: 24px; }
  .me-text { font-size: 14.5px; margin-top: 14px; }
  .me-tags { margin-top: 16px; gap: 5px; }
  .me-tags li { padding: 7px 12px; font-size: 12.5px; }
  .me-foot { margin-top: 18px; }
  .media-tile { height: auto; aspect-ratio: 16 / 10; }

  /* заголовки секций: подпись уходит под заголовок, кнопка — отдельной строкой */
  .section-head { margin: 24px 4px 12px; gap: 10px; }
  .section-head h2 { font-size: 26px; }
  .section-head h3 { font-size: 19px; }
  .section-head p { font-size: 13.5px; max-width: none; }
  .section-head .btn { margin-left: 0; }

  /* двери и панели направлений */
  .doors { gap: var(--gap); }
  .tile-door { min-height: 0; }
  .door-list li { font-size: 13.5px; }
  .door-go { padding-top: 18px; font-size: 13.5px; }
  .branch { padding: 18px 14px; margin-top: 24px; }
  .branch .section-head { margin: 4px 4px 12px; }
  .branch .section-sub { margin-top: 24px; }

  /* карточки: две в ряд узкие — подвал в столбик, иначе метрика и клиент
     наезжают друг на друга */
  .grid, .branch .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card { padding: 10px; }
  .card h3 { font-size: 14.5px; }
  .card-foot { flex-direction: column; align-items: flex-start; gap: 4px; padding-top: 10px; }
  .card-metric { font-size: 16px; }
  .card-metric span { font-size: 11.5px; }
  .card-role { margin-left: 0; text-align: left; font-size: 11.5px; max-width: none; }

  /* контакты */
  .bento-contact { margin-top: 24px; }
  /* контактная плитка не тянется на высоту героя — иначе под заголовком дыра */
  .tile-contact { min-height: 0; }
  .tile-contact h2 { font-size: 24px; max-width: 16ch; }
  .cts { padding-top: 18px; }
  .ct { padding: 11px 0; }
  .ct b { font-size: 15px; }

  .foot { flex-direction: column; gap: 4px; font-size: 12.5px; padding: 20px 6px 6px; }
}

/* Совсем узкие: кейсы в одну колонку, иначе карточка ужимается до нечитаемой.
   На 360–430 две колонки ещё держатся и раздел не растягивается в ленту. */
@media (max-width: 340px) {
  .grid, .branch .grid { grid-template-columns: 1fr; }
  .card-pic { aspect-ratio: 16 / 9; }
  .about-media { grid-template-columns: 1fr; }
}
