/* =========================================================
   Вариант главной на /v2
   Чёрная шапка с логотипом-пилюлей, первый экран на всю ширину,
   лента превью и плотная мозаика плиток с минимальными зазорами.
   ========================================================= */

/* Заголовки страницы: своя гарнитура, в остальной теме она не нужна. */
@font-face {
  font-family: "Geologica";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/geologica-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geologica";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/geologica-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Geologica";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/geologica-cyrillic-ext.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

.v2 {
  --v2-gap: 12px;
  --v2-radius: 10px;
  --v2-tile: #f0efec;
  --v2-font-heading: "Geologica", var(--font-body);
  background: #fff;
  color: var(--ink);
  font-family: var(--font-body);
}

.v2 h1,
.v2 h2,
.v2 h3,
.v2-tile-title {
  font-family: var(--v2-font-heading);
  font-weight: 500;
  letter-spacing: -0.02em;
  text-transform: none;
}

.v2 img { display: block; }

html:has(body.v2) { scroll-behavior: smooth; scroll-padding-top: 88px; }

/* ---------- Шапка ---------- */

.v2-head {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 40px;
  height: 72px;
  padding: 0 20px;
  background: #000;
  color: #fff;
  border-bottom: 1px solid var(--line-on-dark);
}
.v2-head a { color: inherit; text-decoration: none; }
.v2-logo { flex: none; }
.v2-logo img { width: 164px; height: auto; }

.v2-nav {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  scrollbar-width: none;
  font-size: 16px;
}
.v2-nav::-webkit-scrollbar { display: none; }
.v2-nav a {
  flex: none;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s;
}
.v2-nav a:hover { border-color: var(--accent); }

.v2-head-phone {
  flex: none;
  margin-left: auto;
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
}
.v2 .v2-head-cta {
  flex: none;
  padding: 13px 20px;
  background: var(--accent);
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.v2 .v2-head-cta:hover { background: #fff; color: var(--ink); }

/* ---------- Первый экран ---------- */

.v2-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: calc(100svh - 72px);
  background: #000;
  color: #fff;
  overflow: hidden;
}
.v2-hero-media { position: absolute; inset: 0; overflow: hidden; }
/* Стена экранов: наклонённые колонки едут в разные стороны. Колонка повторена
   дважды, поэтому сдвиг ровно на половину её длины зациклен без скачка. */
.v2-wall {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  gap: 20px;
  width: max(2500px, 165vw);
  transform: translate(-50%, -50%) rotate(13deg);
}
.v2-wall-col {
  flex: 1 1 0;
  min-width: 0;
  animation: v2-wall-up 130s linear infinite;
  will-change: transform;
}
.v2-wall-col:nth-child(even) { animation-name: v2-wall-down; animation-duration: 110s; animation-delay: -30s; }
.v2-wall-col:nth-child(3n) { animation-duration: 150s; animation-delay: -60s; }
.v2-wall-col:nth-child(5n) { animation-delay: -40s; }
.v2-wall-col img { display: block; width: 100%; height: auto; }
@keyframes v2-wall-up {
  from { transform: translateY(0); }
  to { transform: translateY(-50%); }
}
@keyframes v2-wall-down {
  from { transform: translateY(-50%); }
  to { transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .v2-wall-col { animation: none; }
}
/* Картинка — стена из экранов сайтов с их собственным текстом, поэтому
   затемнена только там, где стоит заголовок: в левом нижнем углу. */
.v2-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 110% at 0% 100%, #000 18%, rgba(0, 0, 0, 0.82) 38%, rgba(0, 0, 0, 0) 66%),
    linear-gradient(to top, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0) 22%);
}
.v2-hero-text {
  position: relative;
  max-width: 60%;
  padding: 64px var(--v2-gap) 28px;
}
.v2-hero-kicker { margin: 0 0 12px; font-size: 16px; opacity: 0.8; }
.v2 .v2-hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(38px, 4.8vw, 76px);
  line-height: 1.02;
  white-space: nowrap;
}
.v2 .v2-hero h1 em { color: var(--accent); font-style: normal; }
.v2-hero-sub {
  max-width: 620px;
  margin: 18px 0 0;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.35;
}

/* ---------- Мозаика ---------- */

.v2-work { padding: var(--v2-gap) var(--v2-gap) 0; }

.v2-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--v2-gap);
  margin-bottom: var(--v2-gap);
}
.v2-grid .v2-tile--big { grid-column: span 2; grid-row: span 2; }
.v2-grid.is-reverse .v2-tile--big { grid-column: 2 / span 2; grid-row: 1 / span 2; }

/* Последний ряд ленты может быть неполным: плитки растягиваются без дыр. */
.v2-grid .v2-tile--big + .v2-tile--small:last-child { grid-row: span 2; }
.v2-grid .v2-tile--big:only-child { grid-column: 1 / -1; }

.v2-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--v2-radius);
  overflow: hidden;
  background: var(--v2-tile);
  color: #fff;
  text-decoration: none;
}
.v2-tile-img {
  display: block;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  aspect-ratio: 8 / 5;
}
.v2-tile-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
a.v2-tile:hover .v2-tile-img img { transform: scale(1.03); }

.v2-tile-caption {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  position: absolute;
  inset: auto 0 0;
  padding: 44px 16px 14px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0));
  pointer-events: none;
}
.v2-tile-title { font-size: 20px; font-weight: 500; line-height: 1.2; }
.v2-tile--big .v2-tile-title { font-size: clamp(22px, 2vw, 30px); }
.v2-tile-text { font-size: 15px; line-height: 1.35; opacity: 0.85; }

.v2-pill {
  display: inline-block;
  padding: 5px 9px;
  border-radius: 999px;
  background: #000;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}

/* ---------- Подход ---------- */

.v2-process { padding: 52px var(--v2-gap) var(--v2-gap); }
.v2 .v2-process h2,
.v2 .v2-contact h2 {
  margin: 0 0 28px;
  padding-inline: 4px;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.05;
}
.v2-process ol {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--v2-gap);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: v2-step;
}
.v2-process li {
  counter-increment: v2-step;
  min-height: 250px;
  padding: 16px;
  border-radius: var(--v2-radius);
  background: var(--v2-tile);
}
.v2-process li::before {
  content: counter(v2-step);
  display: block;
  margin-bottom: 44px;
  font-size: 56px;
  line-height: 1;
}
.v2 .v2-process h3 { margin: 0 0 8px; font-size: 20px; line-height: 1.2; }
.v2-process p { margin: 0; font-size: 16px; line-height: 1.4; }

/* ---------- Две колонки: студия и статьи ---------- */

.v2-pair {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--v2-gap);
  padding: 0 var(--v2-gap) var(--v2-gap);
}

.v2-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  min-height: 420px;
  margin: 0;
  padding: 20px;
  border-radius: var(--v2-radius);
}
.v2-panel--accent { background: var(--accent); }
.v2-panel--dark { background: #000; color: #fff; }
.v2 .v2-panel h2 { margin: 0; font-size: clamp(32px, 3.6vw, 52px); line-height: 1.05; }
.v2-panel p { margin: 0; font-size: 20px; line-height: 1.35; }
.v2-panel--dark p { font-size: clamp(24px, 2.4vw, 34px); line-height: 1.2; letter-spacing: -0.01em; }
.v2-panel cite { font-size: 16px; font-style: normal; opacity: 0.7; }

/* ---------- Контакты и подвал ---------- */

.v2-contact {
  padding: 64px var(--v2-gap);
  background: #000;
  color: #fff;
}
.v2 .v2-contact h2 { color: #fff; }

.v2-channels {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 48px;
  margin: 0;
  padding: 0 4px;
  list-style: none;
}
.v2-channels li { padding: 16px 0; border-bottom: 1px solid var(--line-on-dark); }
.v2-channels span { display: block; margin-bottom: 4px; font-size: 14px; opacity: 0.6; }
.v2-channels a { color: #fff; font-size: clamp(22px, 2.2vw, 30px); text-decoration: none; }
.v2-channels a:hover { color: var(--accent); }

.v2-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  padding: 20px 16px 88px;
  background: var(--v2-case-bg, #000);
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
}
.v2-foot p { margin: 0; }
.v2-foot a { color: inherit; }

.v2 .v2-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  padding: 13px 18px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: #000;
  color: var(--accent);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s, background 0.15s, color 0.15s;
}
.v2 .v2-top.is-visible { opacity: 1; visibility: visible; }
.v2 .v2-top:hover { background: var(--accent); color: var(--ink); }

/* На телефоне кнопке в шапке нет места, поэтому она живёт в углу экрана. */
.v2-order {
  display: none;
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  padding: 15px 24px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s;
}
.v2-order:hover { transform: translateY(-2px); }

/* ---------- Страница проекта ---------- */

.v2-case {
  padding: 96px 16px 80px;
  background: var(--v2-case-bg);
  color: #fff;
}
.v2-case-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 900px;
  margin: 0 auto 72px;
  text-align: center;
}
.v2 .v2-case-head .v2-pill { margin: 0 0 22px; }
.v2 .v2-case h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(36px, 5vw, 72px);
  line-height: 1.06;
}
.v2-case-lead { margin: 24px 0 0; font-size: clamp(19px, 1.8vw, 25px); line-height: 1.35; }
.v2-case-link { margin-top: 20px; color: var(--accent); font-size: 18px; }

.v2-case-text { max-width: 880px; margin: 0 auto 56px; text-align: center; }
.v2 .v2-case-text h2 { margin: 0 0 12px; color: var(--accent); font-size: 18px; letter-spacing: 0; }
.v2-case-text p { margin: 0; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.4; }

.v2-case-screen { max-width: 1200px; margin: 0 auto 56px; }
.v2-case-screen img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

/* Экраны одной высоты: доли колонок равны пропорциям картинок. */
.v2-case-pair {
  display: grid;
  grid-template-columns: 1.6fr 0.463fr;
  gap: 24px;
  max-width: 1400px;
  margin: 0 auto 56px;
}
.v2-case-pair > figure { max-width: none; margin: 0; }
.v2-case-phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 28px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.v2-case-foot { display: flex; justify-content: center; padding-top: 16px; }

/* Сетка совпадает с шириной экранов выше, чтобы блок стоял с ними по одним краям. */
.v2-case-next {
  display: grid;
  grid-template-columns: 1fr minmax(0, 420px);
  align-items: center;
  gap: 48px;
  box-sizing: content-box;
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 16px 72px;
  color: #fff;
  text-decoration: none;
}
.v2-case-next-wrap { background: var(--v2-case-bg); }
.v2-case-next-text { display: flex; flex-direction: column; gap: 12px; }
.v2-case-next-text span { color: var(--accent); font-size: 16px; font-weight: 600; }
.v2-case-next strong {
  font-family: var(--v2-font-heading);
  font-size: clamp(32px, 4vw, 60px);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.02em;
}
.v2-case-next img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  transition: transform 0.4s var(--ease);
}
.v2-case-next:hover img { transform: translateY(-4px); }

/* ---------- Адаптив ---------- */

@media (max-width: 1100px) {
  .v2-grid { grid-template-columns: repeat(2, 1fr); }
  .v2-grid .v2-tile--big,
  .v2-grid.is-reverse .v2-tile--big { grid-column: 1 / -1; grid-row: auto; }
  .v2-tile-img { flex: none; }
  .v2-process ol { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 720px) {
  .v2-head {
    flex-wrap: wrap;
    gap: 6px 16px;
    height: auto;
    padding: 12px 12px 6px;
  }
  .v2-logo img { width: 124px; }
  .v2-head-phone { font-size: 15px; }
  .v2-head-cta { display: none; }
  .v2-nav { order: 1; flex: 1 0 100%; gap: 20px; font-size: 15px; }
  .v2-order { display: block; }
  html:has(body.v2) { scroll-padding-top: 96px; }
  .v2-hero { min-height: calc(100svh - 80px); }
  .v2-hero-media { inset: 0 0 auto; height: 56%; }
  .v2 .v2-hero h1 { font-size: clamp(26px, 8.8vw, 33px); }
  .v2-hero-media img { object-position: 60% 50%; }
  .v2-hero-media::after { background: linear-gradient(to top, #000 3%, rgba(0, 0, 0, 0) 45%); }
  .v2-hero-text { max-width: none; padding: 260px var(--v2-gap) 76px; }
  .v2-grid,
  .v2-pair,
  .v2-channels { grid-template-columns: 1fr; }
  .v2-process ol { grid-template-columns: 1fr; }
  .v2-process li { min-height: 0; }
  .v2-process li::before { margin-bottom: 18px; font-size: 40px; }
  .v2-panel { min-height: 320px; }
  .v2-order { right: 12px; bottom: 12px; }
  .v2 .v2-top { right: auto; bottom: 12px; left: 12px; }
  .v2-case { padding: 56px 12px 48px; }
  .v2-case-pair { grid-template-columns: 1fr; gap: 20px; margin-bottom: 32px; }
  .v2-case-pair > .v2-case-phone { width: 100%; max-width: 300px; margin: 0 auto; }
  .v2-wall { width: 1600px; gap: 14px; }
  .v2-case-head { margin-bottom: 44px; }
  .v2-case-screen { margin-bottom: 32px; }
  .v2-case-next { grid-template-columns: 1fr; gap: 24px; padding: 8px 12px 48px; }
  .v2-tile-caption { padding: 36px 12px 12px; }
  .v2-tile-text { display: none; }
}

/* Между телефоном и ноутбуком меню в строку не помещается, номер есть в контактах. */
@media (min-width: 721px) and (max-width: 1000px) {
  .v2-head-phone { display: none; }
  .v2-head-cta { margin-left: auto; }
}
