/* ==========================================================================
   myproje · главная — по прототипу v17 (docs/home_prototype_v17)
   Порядок блоков: 01 первый экран · 02 «С чего начнём?» · 03 проекты ·
   04 специалисты · 05 подбор (quiz.css) · 06 товары и бренды · 07 акции и
   новинки · 08 афиша · 09 медиа · 10 профессионалам и брендам · 11 подвал.
   В прототипе стили наслоены версиями v8…v17 — здесь итог для каждого
   класса. Литералы заменены токенами tokens.css; тёплые оттенки фона под
   фото — нейтральными. Классы — как в прототипе; .panel прототипа здесь
   .promo (имя .panel занято панелями анкеты).
   ========================================================================== */

/* ============================ 01. первый экран ============================ */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(600px, 100svh, 880px);
  margin-top: calc(-1 * var(--header-h) - 1px);   /* шапка лежит поверх */
  overflow: hidden;
  background: var(--ink);
  color: #fff;
}
.hero-img {
  position: absolute;
  top: 0;
  right: 0;
  width: 80%;
  height: 100%;
  object-fit: cover;
  object-position: 54% 50%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 56%);
  mask-image: linear-gradient(90deg, transparent 0, #000 56%);
  animation: hero-glow 2.6s var(--ease) both;
}
@keyframes hero-glow { from { opacity: .18; transform: scale(1.06); } to { opacity: 1; transform: none; } }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(14, 14, 14, .8) 0, rgba(14, 14, 14, .46) 42%, rgba(14, 14, 14, .1) 76%, rgba(14, 14, 14, .28) 100%),
    linear-gradient(0deg, rgba(14, 14, 14, .78) 0, rgba(14, 14, 14, 0) 46%),
    linear-gradient(180deg, rgba(14, 14, 14, .62) 0, rgba(14, 14, 14, 0) 22%);
}
.hero-in {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: end;
  width: 100%;
  padding-top: calc(var(--header-h) + 56px);
  padding-bottom: clamp(72px, 15vh, 128px);
}
.hero-in > div { padding-bottom: 16px; }
.hero h1 {
  max-width: 9.6em;
  font-size: var(--t-display);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -.04em;
  text-wrap: balance;
}
.hero-sub { max-width: 33em; margin-top: 24px; font-size: var(--t-lead); line-height: 1.45; }
.hero-act { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(32px, 4vw, 56px); }
.hero .btn {
  transition: background-color .3s, border-color .3s, color .3s, transform var(--dur-lift) var(--ease), box-shadow var(--dur-lift);
}
.hero .btn-accent:hover { background: var(--accent-btn-hover); transform: translateY(-2px); box-shadow: var(--shadow-accent); }
.hero .btn-ghost:hover { background: #fff; color: var(--ink); border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0, 0, 0, .22); }

/* Карточка «Проект недели» на первом экране */
.pw {
  display: block;
  width: 300px;
  padding: 20px 20px 22px;
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: var(--r);
  background: rgba(14, 14, 14, .5);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: #fff;
  text-decoration: none;
  transition: border-color .3s, transform var(--dur-lift) var(--ease), background-color .3s;
}
.pw:hover { border-color: var(--accent); transform: translateY(-4px); background: rgba(14, 14, 14, .62); text-decoration: none; }
.pw-k { display: block; font-size: 13.5px; font-weight: 500; opacity: .78; }
.pw-t { display: block; margin-top: 8px; font-size: 18px; font-weight: 600; letter-spacing: -.012em; }
.pw-m { display: block; margin-top: 6px; font-size: 13.5px; opacity: .85; }
.pw-a { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 13.5px; font-weight: 600; }
.pw-a svg { transition: transform .25s; }
.pw:hover .pw-a svg { transform: translateX(3px); }

/* ========================== 02. С чего начнём? =========================== */
.start-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 40px; }
.start-h { font-size: clamp(2.2rem, 4.7vw, 4.3rem); font-weight: 400; line-height: 1; letter-spacing: -.042em; }
.start-q { padding-bottom: .5em; color: var(--muted); font-size: 16px; }
.start-q a { color: var(--ink); }

.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px); margin-top: clamp(24px, 2.8vw, 36px); }
.tiles--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
}
.tile:hover { text-decoration: none; }
.tile-ph { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--tone); }
.tile-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-zoom) var(--ease); }
.tile:hover .tile-ph img { transform: scale(1.05); }
.tile-in { display: flex; flex: 1; flex-direction: column; padding: clamp(18px, 1.8vw, 26px) clamp(18px, 1.8vw, 26px) clamp(18px, 1.8vw, 24px); }
.tile-t { display: block; font-size: var(--t-card-lg); font-weight: 500; line-height: 1.1; letter-spacing: -.028em; }
.tile-d { display: block; max-width: 24em; margin-top: 8px; color: var(--soft); font-size: 15px; line-height: 1.45; }
.tile-cta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 22px; font-size: 15px; font-weight: 500; }
.tile-go {
  display: grid;
  flex: none;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  transition: background-color .25s, border-color .25s, color .25s;
}
.tile-go svg { transition: transform .25s; }
.tile:hover .tile-go { background: var(--accent); border-color: var(--accent); color: #fff; }
.tile:hover .tile-go svg { transform: translateX(3px); }
.tile:hover .tile-cta > span:first-child { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }

/* ============================== 03. проекты ============================== */
.pills { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-bottom: clamp(20px, 2.4vw, 30px); }

.pgrid { display: grid; gap: 20px; }
/* «Все»: слева крупно проект недели, справа четыре той же общей высоты */
.pgrid:not(.flt) { grid-template-columns: minmax(0, 7fr) minmax(0, 2.6fr) minmax(0, 2.6fr); }
.pgrid:not(.flt) .pc { display: flex; flex-direction: column; }
.pgrid:not(.flt) .pc .ph { flex: 1; aspect-ratio: auto; min-height: 150px; }
.pgrid:not(.flt) .pc-x { grid-row: span 2; }
.pgrid:not(.flt) .pc-x .pc-m { display: flex; flex: 1; }
.pgrid:not(.flt) .pc-x .ph { flex: 1; aspect-ratio: 2200 / 1499; }
/* Выбран тип: четыре вертикальные карточки в ряд */
.pgrid.flt { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pgrid.flt .pc .ph { aspect-ratio: 4 / 5; }

.pc-x { min-width: 0; }
.pc-x .ct { font-size: 21px; }
.pc-x .pc-c { display: block; color: inherit; text-decoration: none; }
.pc-x .pc-c:hover .ct, .pc-x .ph:hover ~ * .ct { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.pc-x a.ph:hover img { transform: scale(1.04); }
.pc-m { position: relative; }

.pw-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 11px;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  pointer-events: none;
}
.tagn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 11px 0 9px;
  border-radius: var(--r-pill);
  background: rgba(14, 14, 14, .58);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
}

/* Точки товаров на фото проекта недели: точка открывает карточку товара */
.tag { display: contents; }
.dot {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: 3;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .78);
  border-radius: 50%;
  background: rgba(14, 14, 14, .42);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  cursor: pointer;
  transition: background-color var(--dur-color), border-color var(--dur-color);
}
.dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.tag.open .dot, .dot:focus-visible { background: var(--accent); border-color: #fff; }
.pop {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: 5;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  width: 248px;
  padding: 10px 14px 10px 10px;
  border-radius: var(--r);
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow-menu);
  transform: translate(-50%, calc(-100% - 22px));
  opacity: 0;
  visibility: hidden;
  transition: opacity .18s, visibility .18s;
}
.pop::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 24px; }
.tag.d .pop { transform: translate(-50%, 24px); }
.tag.d .pop::after { top: auto; bottom: 100%; }
.tag.open .pop { opacity: 1; visibility: visible; }
@media (hover: hover) {
  .tag:hover .dot { background: var(--accent); border-color: #fff; }
  .tag:hover .pop { opacity: 1; visibility: visible; }
}
.pop img { width: 64px; height: 64px; border-radius: 4px; object-fit: cover; }
.pop-b { display: block; color: var(--muted); font-size: 12.5px; }
.pop-n { display: block; margin-top: 1px; font-size: 14.5px; font-weight: 500; line-height: 1.25; }
.pop-a { display: block; margin-top: 5px; font-size: 13px; font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }

/* ============================ 04. специалисты ============================ */
.sgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }

/* ========================= 06. товары и бренды =========================== */
.tone { margin-top: var(--sec); padding-block: clamp(52px, 6vw, 88px); background: var(--tone); }
.band + .tone { margin-top: 0; }
#goods .sh .h2 { max-width: none; }

.cats { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: var(--gap-tight); }
.cat { display: flex; flex-direction: column; align-items: stretch; gap: 10px; min-width: 0; color: var(--ink); text-align: center; text-decoration: none; }
.cat:hover { text-decoration: none; }
.cat-i {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  background: #fff;
  transition: border-color .25s, transform var(--dur-lift) var(--ease), box-shadow var(--dur-lift);
}
.cat-i img { position: absolute; inset: 11%; width: 78%; height: 78%; object-fit: contain; transition: transform .6s var(--ease); }
@media (hover: hover) {
  .cat:hover .cat-i { border-color: var(--accent); transform: translateY(-4px); box-shadow: 0 14px 30px rgba(14, 14, 14, .07); }
}
.cat:hover .cat-i img { transform: scale(1.06); }
.cat-n { display: block; font-size: 14.5px; font-weight: 500; line-height: 1.25; letter-spacing: -.005em; }
.cat:hover .cat-n { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }

.sh.sm { margin-top: clamp(44px, 5.4vw, 76px); margin-bottom: clamp(18px, 2vw, 26px); }
.picks { margin-top: clamp(36px, 4vw, 56px); }
.picks .sh.sm { margin-top: 0; }

/* Выбор редакции: журнальная карточка, всё по центру */
.prow { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.prod {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
  padding: var(--card-pad) var(--card-pad) 16px;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  background: #fff;
  color: var(--ink);
  text-align: center;
  text-decoration: none;
}
.prod:hover { text-decoration: none; }
@media (hover: hover) { .prod.lift:hover { transform: translateY(-8px); box-shadow: var(--shadow-lift-strong); } }
.prod-lg { display: flex; align-items: center; justify-content: center; width: 100%; height: 18px; }
.prod-lg img { width: auto; height: 16px; max-width: 96px; object-fit: contain; filter: grayscale(1); opacity: .78; transition: filter .25s, opacity .25s; }
.prod:hover .prod-lg img { filter: none; opacity: 1; }
.prod-wm { color: var(--soft); font-size: 13px; font-weight: 600; letter-spacing: .01em; }
.prod .ph { width: 100%; aspect-ratio: 1; margin-top: 10px; border-radius: 0; background: #fff; }
.prod .ph img { object-fit: contain; transition: transform .6s var(--ease); }
.prod:hover .ph img { transform: scale(1.04); }
.prod-p { display: block; margin-top: 12px; font-size: var(--t-price); font-weight: 600; letter-spacing: -.01em; }
.prod-n {
  display: -webkit-box;
  max-width: 16em;
  min-height: 2.7em;
  margin: 3px auto 0;
  overflow: hidden;
  color: var(--soft);
  font-size: 13.5px;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Бренды: спокойный ряд из шести, без движения */
.bgrid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--gap-cards); }
.bcard {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--r);
  background: #2B2B29;
  color: #fff;
  text-decoration: none;
}
.bcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-zoom) var(--ease); }
.bcard:hover img { transform: scale(1.05); }
.bcard::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(14, 14, 14, .66) 0, rgba(14, 14, 14, 0) 40%),
    linear-gradient(0deg, rgba(14, 14, 14, .7) 0, rgba(14, 14, 14, 0) 38%);
}
.bcard-n { position: absolute; top: clamp(12px, 1.2vw, 16px); left: clamp(12px, 1.2vw, 16px); right: 12px; z-index: 1; font-size: clamp(15px, 1.2vw, 17px); font-weight: 600; line-height: 1.15; letter-spacing: -.015em; }
.bcard .bcard-lg { position: static; display: block; width: auto; max-width: 70%; height: 22px; object-fit: contain; object-position: left center; }
.bcard-d { position: absolute; left: clamp(12px, 1.2vw, 16px); right: 12px; bottom: clamp(11px, 1.1vw, 15px); z-index: 1; font-size: 13.5px; line-height: 1.3; opacity: .92; }

/* ========================== 07. акции и новинки ==========================
   Журнальная мозаика: ведущий на половину ширины и две строки, справа
   широкий и два узких. Вырез угла с кнопкой — только в этом блоке. */
.ofm { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: repeat(2, clamp(230px, 19vw, 290px)); gap: var(--gap-cards); }
.ob { position: relative; display: block; color: #fff; text-decoration: none; }
.ob:hover { text-decoration: none; }
.ob.lead { grid-column: span 6; grid-row: span 2; }
.ob.w { grid-column: span 6; }
.ob.s { grid-column: span 3; }
.ob-m { position: absolute; inset: 0; overflow: hidden; isolation: isolate; border-radius: var(--r-banner); background: #2B2B29; }
.ob-m > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.ob-m::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(14, 14, 14, .28) 0, rgba(14, 14, 14, 0) 26%, rgba(14, 14, 14, 0) 38%, rgba(14, 14, 14, .5) 66%, rgba(14, 14, 14, .82) 100%);
}
.ob:hover .ob-m > img { transform: scale(1.045); }
.ob-tag { position: absolute; top: 16px; left: 16px; display: inline-flex; align-items: center; min-height: 26px; padding: 0 11px; border-radius: var(--r-pill); background: #fff; color: var(--ink); font-size: 12.5px; font-weight: 500; }
.ob-tx { position: absolute; left: clamp(16px, 1.8vw, 26px); right: 96px; bottom: clamp(16px, 1.6vw, 24px); display: flex; flex-direction: column; gap: 6px; text-shadow: 0 1px 14px rgba(0, 0, 0, .28); }
.ob-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.ob-br { color: rgba(255, 255, 255, .9); font-size: 13px; font-weight: 500; }
.ob-dt { color: rgba(255, 255, 255, .8); font-size: 13px; }
.ob-t { max-width: 16em; font-size: clamp(1.1rem, 1.45vw, 1.4rem); font-weight: 500; line-height: 1.15; letter-spacing: -.02em; }
.ob.lead .ob-t { max-width: 13em; font-size: var(--t-banner-lead); line-height: 1.05; letter-spacing: -.035em; }
.ob.s .ob-tx, .ob.w .ob-tx { right: 90px; gap: 4px; }
.ob.s .ob-t {
  display: -webkit-box;
  overflow: hidden;
  font-size: clamp(1rem, 1.15vw, 1.12rem);
  line-height: 1.22;
  letter-spacing: -.012em;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.ob.s .ob-br, .ob.s .ob-dt { font-size: 12.5px; }
.ob-n { position: absolute; right: -1px; bottom: -1px; display: grid; place-items: center; width: 78px; height: 78px; background: var(--paper); border-top-left-radius: 16px; }
.ob-n::before, .ob-n::after { content: ""; position: absolute; width: 16px; height: 16px; background: radial-gradient(circle at 0 0, transparent 16px, var(--paper) 16.5px); }
.ob-n::before { right: 0; bottom: 100%; }
.ob-n::after { right: 100%; bottom: 0; }
.ob-go {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin: 6px 0 0 6px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  transition: background-color .3s, transform var(--dur-lift) var(--ease), box-shadow var(--dur-lift);
}
.ob-go svg { transition: transform var(--dur-lift) var(--ease); }
.ob:hover .ob-go, .ob:focus-visible .ob-go { background: var(--accent); transform: scale(1.1); box-shadow: 0 10px 22px rgba(196, 85, 59, .35); }
.ob:hover .ob-go svg, .ob:focus-visible .ob-go svg { transform: rotate(45deg); }

/* ============================== 08. афиша ================================ */
.ev-g { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(20px, 3.4vw, 56px); align-items: stretch; }
.ev-main { position: relative; display: block; min-height: clamp(380px, 37vw, 540px); overflow: hidden; border-radius: var(--r); background: #2B2B29; color: #fff; text-decoration: none; }
.ev-main:hover { text-decoration: none; }
.ev-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-zoom) var(--ease); }
.ev-main:hover img { transform: scale(1.03); }
.ev-main::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(14, 14, 14, .86) 0, rgba(14, 14, 14, .42) 44%, rgba(14, 14, 14, .12) 100%); }
.ev-main-in { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; padding: clamp(20px, 2.8vw, 40px); }
.ev-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.acc { display: inline-flex; align-items: center; gap: 7px; min-height: 30px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: var(--r-pill); color: var(--soft); font-size: 13.5px; line-height: 1; white-space: nowrap; }
.ev-main .acc { border-color: rgba(255, 255, 255, .55); color: #fff; }
.ev-main .acc.fill { background: #fff; border-color: #fff; color: var(--ink); }
.ev-date { margin-top: auto; font-size: clamp(2.2rem, 4.6vw, 4.2rem); font-weight: 400; line-height: 1; letter-spacing: -.045em; }
.ev-title { margin-top: 12px; font-size: clamp(1.3rem, 2vw, 1.8rem); font-weight: 500; line-height: 1.1; letter-spacing: -.03em; }
.ev-meta { margin-top: 8px; font-size: 15px; opacity: .9; }
.ev-br { display: inline-block; margin-top: 14px; font-size: 15px; font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.ev-side { display: flex; flex-direction: column; }
.ev-h { padding-bottom: 10px; font-size: 14.5px; font-weight: 600; }
.ev-h:not(:first-child) { margin-top: clamp(18px, 2vw, 26px); }
.ev-list { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.ev-list a {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 4px 18px;
  align-items: start;
  align-content: center;
  padding: clamp(16px, 1.8vw, 22px) 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}
.ev-list li:first-child a { border-top-color: var(--ink); }
.ev-d { grid-row: 1 / span 3; color: var(--muted); font-size: 13.5px; line-height: 1.2; }
.ev-d i { display: block; margin-bottom: 2px; color: var(--muted); font-size: 13px; font-style: normal; }
.ev-d b { display: block; color: var(--ink); font-size: clamp(1.7rem, 2.4vw, 2.15rem); font-weight: 400; line-height: 1; letter-spacing: -.04em; }
.ev-d b.rng { font-size: clamp(1.3rem, 1.8vw, 1.6rem); }
.ev-t { font-size: clamp(1.08rem, 1.45vw, 1.25rem); font-weight: 500; line-height: 1.2; letter-spacing: -.022em; }
.ev-s { color: var(--muted); font-size: 14.5px; }
.ev-list .acc { justify-self: start; margin-top: 6px; }
.ev-list a:hover .ev-t { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.ev-note { margin-top: clamp(22px, 2.6vw, 32px); color: var(--muted); font-size: 15px; }

/* ============================== 09. медиа ================================ */
.media { display: grid; grid-template-columns: minmax(0, 7.4fr) minmax(0, 4.6fr); gap: clamp(22px, 3.6vw, 60px); align-items: start; }
.m-lead { display: block; color: inherit; text-decoration: none; }
.m-lead .ph { aspect-ratio: 16 / 9; }
.m-lead .ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 14, 14, .1) 0, rgba(14, 14, 14, .08) 50%, rgba(14, 14, 14, .42) 100%); pointer-events: none; }
.m-vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.play {
  position: absolute;
  left: clamp(14px, 1.8vw, 24px);
  bottom: clamp(14px, 1.8vw, 24px);
  z-index: 2;
  display: grid;
  place-items: center;
  width: clamp(52px, 5vw, 68px);
  height: clamp(52px, 5vw, 68px);
  border-radius: 50%;
  background: #fff;
  transition: transform .25s;
}
.m-lead:hover .play { transform: scale(1.07); }
.m-lead .tagn { z-index: 2; }
.m-k { display: block; margin-top: 18px; color: var(--muted); font-size: 14.5px; }
.m-lead .mt { display: block; max-width: 15em; margin-top: 6px; font-size: clamp(1.6rem, 3vw, 2.6rem); font-weight: 400; line-height: 1.05; letter-spacing: -.04em; }
.m-lead .md { display: block; max-width: 34em; margin-top: 12px; color: var(--soft); font-size: 16.5px; line-height: 1.5; }
.m-s, .mi-s { display: block; color: var(--muted); font-size: 13.5px; }
.m-s { margin-top: 12px; }
.mi-s { margin-top: 4px; }
.m-lead:hover .mt, .mi:hover .mi-t { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.m-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.m-list li { border-bottom: 1px solid var(--line); }
.mi { display: grid; grid-template-columns: clamp(104px, 10.4vw, 150px) minmax(0, 1fr); gap: clamp(14px, 1.6vw, 22px); align-items: center; padding: clamp(14px, 1.5vw, 20px) 0; color: inherit; text-decoration: none; }
.mi .ph { aspect-ratio: 4 / 3; }
.mi .pl { position: absolute; left: 8px; bottom: 8px; z-index: 1; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #fff; }
.bw img { filter: grayscale(1) contrast(1.04); }
.mi-k { display: block; color: var(--muted); font-size: 13.5px; }
.mi-pr { color: var(--accent-text); }
.mi-t { display: block; margin-top: 4px; font-size: clamp(1.05rem, 1.4vw, 1.24rem); font-weight: 500; line-height: 1.22; letter-spacing: -.02em; }

/* =================== 10. профессионалам и брендам ======================== */
.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto 1fr auto;
  column-gap: clamp(14px, 1.8vw, 26px);
}
.promo {
  display: grid;
  grid-row: span 4;
  grid-template-rows: subgrid;
  min-width: 0;
  padding: clamp(20px, 2.2vw, 30px);
  overflow: hidden;
  border-radius: var(--r);
}
.promo.dark { background: var(--ink); color: var(--on-dark); }
.promo.warm { background: var(--tone); color: var(--ink); }
.promo-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.promo h3 { max-width: 11em; font-size: clamp(1.5rem, 2.2vw, 2.05rem); font-weight: 500; line-height: 1.06; letter-spacing: -.04em; }
.promo-tag { display: inline-flex; flex: none; align-items: center; min-height: 36px; padding: 0 16px; border-radius: var(--r-pill); font-size: 15px; font-weight: 600; white-space: nowrap; }
.promo.dark .promo-tag { background: var(--accent); color: #fff; }
.promo.warm .promo-tag { background: var(--ink); color: #fff; }
.promo .ph { aspect-ratio: 21 / 9; margin-top: clamp(14px, 1.6vw, 20px); }
.promo-d { align-self: start; max-width: 34em; margin-top: 14px; font-size: 15.5px; line-height: 1.5; }
.promo.dark .promo-d { color: var(--on-dark-muted); }
.promo.warm .promo-d { color: var(--soft); }
.promo-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; padding-top: clamp(16px, 1.8vw, 22px); }
.promo-stat { display: flex; align-items: center; gap: 14px; margin: 0; }
.promo-stat b { font-size: clamp(2rem, 3.2vw, 2.8rem); font-weight: 500; line-height: 1; letter-spacing: -.04em; }
.promo-stat span { max-width: 15em; font-size: 14px; line-height: 1.35; }
.promo.dark .promo-stat span { color: var(--on-dark-muted); }
.promo.warm .promo-stat span { color: var(--soft); }
.promo-act { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-left: auto; }

.home-main { padding-bottom: 0; }

/* ================================ планшет ================================ */
@media (max-width: 1100px) {
  .hero-in { grid-template-columns: 1fr; align-items: start; }
  .pgrid:not(.flt) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pgrid:not(.flt) .pc-x { grid-column: 1 / -1; grid-row: auto; }
  .pgrid:not(.flt) .pc .ph { flex: none; aspect-ratio: 4 / 3; }
  .pgrid:not(.flt) .pc-x .pc-m { display: block; }
  .pgrid:not(.flt) .pc-x .ph { aspect-ratio: 2200 / 1499; }
  .pgrid.flt { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .cats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .prow { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ofm { grid-template-rows: repeat(3, clamp(220px, 30vw, 300px)); }
  .ob.lead { grid-column: span 12; grid-row: span 1; }
  .ob.w { grid-column: span 12; }
  .ob.s { grid-column: span 6; }
  .ev-g, .media { grid-template-columns: 1fr; }
  .duo { grid-template-columns: 1fr; grid-template-rows: none; row-gap: 14px; }
  .promo { display: flex; flex-direction: column; grid-row: auto; }
  .promo-foot { margin-top: auto; }
}

/* ================================ телефон ================================ */
/* Ряды карточек прокручиваются вбок с отступом поля */
@media (max-width: 720px) {
  .hero { margin-top: calc(-1 * var(--header-h-mobile) - 1px); }
  .hero-img { width: 100%; object-position: 46% 50%; -webkit-mask-image: none; mask-image: none; }
  .hero::after { background: linear-gradient(0deg, rgba(14, 14, 14, .94) 0, rgba(14, 14, 14, .7) 46%, rgba(14, 14, 14, .3) 78%, rgba(14, 14, 14, .6) 100%); }
  .hero-in { gap: 28px; padding-top: calc(var(--header-h-mobile) + 44px); padding-bottom: 28px; }
  .hero-in > div { padding-bottom: 0; }
  .hero-act .btn { flex: 1 1 auto; }
  .pw { width: 100%; }

  .tiles, .tiles--2 { grid-template-columns: 1fr; gap: 10px; }
  .tile { flex-direction: row; }
  .tile-ph { flex: 0 0 36%; aspect-ratio: auto; min-height: 150px; }
  .tile-in { padding: 14px 14px 14px 16px; }
  .tile-t { font-size: 1.25rem; }
  .tile-d { margin-top: 4px; font-size: 13.5px; }
  .tile-cta { padding-top: 12px; font-size: 14.5px; }
  .tile-go { width: 38px; height: 38px; }

  .pills, .sgrid, .cats, .prow, .bgrid, .ofm {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    margin-inline: calc(-1 * var(--gut));
    padding-inline: var(--gut);
    scroll-padding-inline: var(--gut);
    scrollbar-width: none;
  }
  .pills::-webkit-scrollbar, .sgrid::-webkit-scrollbar, .cats::-webkit-scrollbar,
  .prow::-webkit-scrollbar, .bgrid::-webkit-scrollbar, .ofm::-webkit-scrollbar { display: none; }
  .pills { flex-wrap: nowrap; }
  .pills .pill { flex: none; min-height: 42px; }

  .pgrid { gap: 26px 12px; }
  .pgrid:not(.flt) .pc .ph { aspect-ratio: 4 / 5; }
  .pgrid:not(.flt) .pc-x .ph { aspect-ratio: 4 / 3; }
  .pc-x .ct { font-size: 20px; }
  .tagn { top: 8px; right: 8px; min-height: 26px; font-size: 12.5px; }
  .pop, .tag.d .pop { left: 8px; right: 8px; top: auto; bottom: 8px; width: auto; transform: none; }
  .pop::after { display: none; }

  .sgrid { gap: 12px; }
  .sgrid .spc { flex: 0 0 78vw; scroll-snap-align: start; }

  .cats { gap: 10px; padding-bottom: 4px; }
  .cat { flex: 0 0 112px; }
  .cat-n { font-size: 13px; }
  .prow { gap: 12px; }
  .prod { flex: 0 0 46vw; scroll-snap-align: start; }
  .bgrid { gap: 12px; }
  .bcard { flex: 0 0 44vw; scroll-snap-align: start; }

  .ofm { grid-template-rows: none; gap: 12px; }
  .ob, .ob.lead, .ob.w, .ob.s { flex: 0 0 82vw; aspect-ratio: 4 / 5; scroll-snap-align: start; }
  .ob.lead .ob-t { font-size: 1.6rem; }

  .ev-main { min-height: 400px; }
  .ev-list a { grid-template-columns: 72px minmax(0, 1fr); }
  .mi { grid-template-columns: 104px minmax(0, 1fr); }

  .promo-top { flex-direction: column-reverse; gap: 12px; }
  .promo .ph { aspect-ratio: 16 / 9; }
  .promo-foot { flex-direction: column; align-items: flex-start; }
  .promo-act { width: 100%; margin-left: 0; }
  .promo-act .btn { flex: 1; }
}

/* Без анимации в системе: фото не плывёт, видео — кадр-постер (home.js) */
@media (prefers-reduced-motion: reduce) {
  .hero-img { animation: none; }
}
