/* 12 UNDER 12 — винный фон, пудровый крем #faf3ea (--text) как акцент вместо терракоты */
@font-face {
  font-family: "Neue Montreal";
  src:
    local("Neue Montreal"),
    local("NeueMontreal"),
    url("../fonts/NeueMontreal-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Neue Montreal";
  src:
    local("Neue Montreal Medium"),
    local("NeueMontreal-Medium"),
    url("../fonts/NeueMontreal-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "New Icon Script";
  src:
    local("New Icon Script"),
    local("NewIconScript"),
    url("../fonts/NewIconScript-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Цитаты на главной: локальный Merriweather (латиница), не зависит от Google Fonts link */
@font-face {
  font-family: "Merriweather";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/Merriweather-Regular-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;
}

:root {
  --white: #faf3ea;
  --wine: #5f040d;
  --wine-hover: #4a030a;
  /* legacy names: бывш. терракота → тот же пудровый, что основной текст */
  --terracotta: #faf3ea;
  --terracotta-hover: #ffffff;
  --text: #faf3ea;
  --text-muted: rgba(250, 243, 234, 0.78);
  --border: rgba(250, 243, 234, 0.28);
  --surface: rgba(250, 243, 234, 0.12);
  --surface-card: rgba(250, 243, 234, 0.08);
  --max: 1200px;
  --font-display: "Anton", sans-serif;
  --font-script: "Great Vibes", cursive;
  --font-body: "Neue Montreal", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-editorial: Georgia, "Times New Roman", Times, serif;
  --font-neue-montreal: "Neue Montreal", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-new-icon-script: "New Icon Script", "Great Vibes", cursive;
  --photo-tile-max: 220px;
  --photo-hero-max: 420px;
  --photo-team-max: 330px;
  /* Интервью и карусели на странице маркетолога — одна ширина */
  --marketer-sections-width: min(100%, 56rem);
}

.font-neue-montreal {
  font-family: var(--font-neue-montreal);
}

.font-new-icon-script {
  font-family: var(--font-new-icon-script);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--wine);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem 2.25rem;
}

a {
  color: var(--white);
  text-decoration: none;
}

a:hover {
  color: var(--terracotta);
  text-decoration: underline;
}

/* —— Header —— */
.site-header {
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 1.5rem clamp(1.85rem, 3.5vw, 2.75rem);
}

.site-header .wrap {
  max-width: var(--max);
  margin: 0 auto;
  text-align: center;
}

/* Главная: строка бренда; ниже слоган | 12 UNDER 12 | подзаголовок — одна строка (на мобиле столбиком) */
.site-header .wrap.site-header__inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: clamp(1.35rem, 3.25vw, 2.35rem);
  text-align: center;
}

.site-header__brand-row {
  width: 100%;
}

.site-header__brand-row .brand-line {
  margin: 0;
}

.site-header__hero-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, min(100%, 36rem)) minmax(0, 1fr);
  align-items: center;
  column-gap: 1.25rem;
  width: 100%;
}

.site-header__tagline,
.site-header__year {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.16015625rem, 2.784375vw, 1.37109375rem);
  font-style: normal;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text);
  text-align: center;
}

.site-header__tagline {
  grid-column: 1;
  place-self: center;
  max-width: none;
  white-space: nowrap;
}

.site-header .site-header__hero-row .site-title {
  grid-column: 2;
  margin: 0;
  justify-self: center;
  width: 100%;
}

.site-header__year {
  grid-column: 3;
  place-self: center;
  max-width: none;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .site-header__hero-row {
    grid-template-columns: 1fr;
    align-items: start;
    row-gap: 0.65rem;
  }

  .site-header__tagline {
    grid-column: 1;
    place-self: center;
    white-space: normal;
    max-width: min(22rem, 100%);
  }

  .site-header__year {
    grid-column: 1;
    place-self: center;
    white-space: normal;
    max-width: min(22rem, 100%);
  }

  .site-header .site-header__hero-row .site-title {
    grid-column: 1;
  }
}

.brand-line {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 1.5rem;
}

.brand-line__link {
  color: inherit;
  text-decoration: none;
}

.brand-line__link:hover {
  color: var(--terracotta);
}

.site-title {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 8vw, 4.5rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0;
  line-height: 1.05;
  color: var(--white);
}

.site-title a {
  color: inherit;
  text-decoration: none;
  transition:
    font-family 0.28s ease,
    font-style 0.28s ease,
    letter-spacing 0.28s ease,
    font-size 0.28s ease,
    line-height 0.28s ease;
}

/* Варианты при наведении переключаются скриптом (каждый раз следующий) */
.site-title a[class*="site-title-a--v"] {
  color: inherit;
  text-decoration: none;
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(2.65rem, 7.85vw, 4.4rem);
  line-height: 1.06;
}

.site-title a.site-title-a--v0 {
  font-family: Georgia, "Palatino Linotype", Palatino, serif;
  font-style: normal;
  letter-spacing: 0.06em;
}

.site-title a.site-title-a--v1 {
  font-family: Georgia, "Palatino Linotype", Palatino, serif;
  font-style: italic;
  letter-spacing: 0.1em;
}

.site-title a.site-title-a--v2 {
  font-family: "Times New Roman", Times, serif;
  font-style: normal;
  letter-spacing: 0.04em;
}

.site-title a.site-title-a--v3 {
  font-family: "Times New Roman", Times, serif;
  font-style: italic;
  letter-spacing: 0.11em;
}

.site-title a.site-title-a--v4 {
  font-family: ui-serif, Charter, "Bitstream Charter", Georgia, serif;
  font-style: normal;
  letter-spacing: 0.07em;
}

.site-title a.site-title-a--v5 {
  font-family: ui-serif, Charter, "Bitstream Charter", Georgia, serif;
  font-style: italic;
  letter-spacing: 0.09em;
}

.site-title a.site-title-a--v6 {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-style: normal;
  letter-spacing: 0.05em;
}

.site-title a.site-title-a--v7 {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-style: italic;
  letter-spacing: 0.06em;
}

/* —— Nav pills —— */
.nav-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.125rem;
  justify-content: center;
  align-items: center;
  padding: 2.125rem 1rem clamp(2.5rem, 5.5vw, 4.25rem);
  max-width: var(--max);
  margin: 0 auto;
}

.nav-pills a {
  font-size: 0.96875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--white);
  text-decoration: none;
  padding: 0.625rem 1.2rem;
  border-radius: 999px;
  border-bottom: none;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.nav-pills a:hover {
  color: var(--wine);
  text-decoration: none;
  background: rgba(250, 243, 234, 0.94);
  box-shadow:
    0 0 26px rgba(250, 243, 234, 0.45),
    0 0 0 1px rgba(250, 243, 234, 0.55);
}

/* Back + centered nav (About) */
.nav-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem 1rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.125rem 1rem clamp(2.5rem, 5.5vw, 4.25rem);
  padding-left: max(0px, env(safe-area-inset-left, 0px));
  overflow-x: visible;
}

.nav-row .btn-back.nav-row__back {
  grid-column: 1;
  justify-self: start;
  align-self: center;
  margin-bottom: 0;
  position: relative;
  z-index: 1;
  /* margin на grid-ячейке почти не виден; сдвигаем к левому краю окна */
  left: calc(-3.35rem - max(0px, (100vw - var(--max)) / 2) - 2vw);
}

.nav-row__pills {
  grid-column: 2;
  justify-self: center;
  margin: 0;
  padding: 0;
  max-width: none;
}

@media (max-width: 720px) {
  .nav-row {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  .nav-row .btn-back.nav-row__back {
    grid-column: 1;
    left: 0;
  }

  .nav-row__pills {
    grid-column: 1;
    justify-content: center;
  }
}

/* —— Editions carousel (главная) —— */
.marketers-section {
  margin-top: 1rem;
}

.editions-carousel {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
  width: 100%;
  max-width: 100%;
  --ec-pages: 1;
  --ec-page: 0;
}

.ec-nav {
  flex: 0 0 48px;
  min-width: 44px;
  align-self: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: rgba(250, 243, 234, 0.1);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1;
  color: var(--white);
  cursor: pointer;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.2s, color 0.2s, opacity 0.2s;
}

.ec-nav:hover:not(:disabled):not(.is-disabled) {
  background: rgba(250, 243, 234, 0.2);
  color: var(--terracotta);
}

.ec-nav:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 2px;
}

.ec-nav:disabled,
.ec-nav.is-disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.ec-nav.ec-nav-hidden {
  display: none;
}

.ec-viewport {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.ec-track {
  display: flex;
  width: calc(var(--ec-pages) * 100%);
  transition: transform 0.35s ease;
  transform: translateX(calc(var(--ec-page) * -100% / var(--ec-pages)));
}

.ec-page {
  flex: 0 0 calc(100% / var(--ec-pages));
  box-sizing: border-box;
  padding: 0 0.35rem;
}

.ec-page-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 1.5rem;
}

@media (max-width: 520px) {
  .ec-page-grid {
    grid-template-columns: 1fr;
    max-width: 280px;
    margin: 0 auto;
  }

  .editions-carousel {
    gap: 0.35rem;
  }

  .ec-nav {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    font-size: 1.15rem;
  }
}

.marketer-tile {
  text-align: center;
}

.marketer-tile .photo-frame {
  max-width: var(--photo-tile-max);
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.marketer-tile a.tile-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.marketer-tile a.tile-link:hover .tile-name {
  color: var(--terracotta);
}

/* Полароид: светлая «матовая» рамка, шире поле снизу, мягкая тень */
.photo-frame {
  background: #faf5ec;
  padding: 0.55rem 0.55rem 1.85rem 0.55rem;
  border: 1px solid rgba(250, 243, 234, 0.55);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 10px 28px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
  line-height: 0;
  border-radius: 1px;
}

.photo-frame .tile-photo,
.photo-frame .hero-img,
.photo-frame .team-photo {
  aspect-ratio: 1 / 1;
  width: 100%;
  object-fit: cover;
  display: block;
  background: #faf5ec;
  border: none;
}

/* Текст внутри «кадра» полароида вместо отдельных строк под карточкой */
.photo-frame .tile-photo-placeholder {
  aspect-ratio: 1 / 1;
  width: 100%;
  min-height: 0;
  background: #faf5ec;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.4rem;
  box-sizing: border-box;
  text-align: center;
  line-height: 1.2;
}

.tile-photo-placeholder__soon {
  font-family: var(--font-display);
  font-size: clamp(0.65rem, 2.8vw, 0.95rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--wine);
}

.tile-sample-name {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  margin: 0.75rem 0 0.2rem;
  text-align: center;
}

.tile-sample-role {
  font-size: 0.75rem;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--white);
  margin: 0 0 0.25rem;
  text-align: center;
  line-height: 1.35;
}

.tile-edition-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin: 0 0 0.25rem;
  text-align: center;
}

.marketer-tile .photo-frame + .tile-edition-label {
  margin-top: 0.75rem;
}

.tile-sample-role + .tile-edition-label {
  margin-top: 0.15rem;
}

.tile-sample-name + .tile-edition-label {
  margin-top: 0.15rem;
}

/* Mission + Why 12 (рендер с главной перенесён на About project) */
.mission-section {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
  max-width: min(46rem, 100%);
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.mission-heading {
  font-family: var(--font-display);
  font-size: calc(0.8125rem + 5pt);
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  margin: 0 0 1.25rem;
}

.mission-quote {
  margin: 0 auto;
  padding: clamp(1.5rem, 4.5vw, 3rem) clamp(0.5rem, 3vw, 1.5rem) 0;
  border: none;
  font-family: Georgia, "Times New Roman", "Palatino Linotype", Palatino, serif;
  font-size: clamp(1.2rem, 2.85vw, 1.65rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.55;
  color: var(--white);
  white-space: pre-line;
  quotes: none;
  position: relative;
}

.mission-quote::before,
.mission-quote::after {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.75rem, 7vw, 4.5rem);
  line-height: 0.85;
  color: var(--terracotta);
  opacity: 0.92;
  pointer-events: none;
  width: 100%;
}

.mission-quote::before {
  content: "\201C";
  margin: 0 0 -0.18em clamp(-1.55rem, -4.5vw, -0.55rem);
  text-align: left;
}

.mission-quote::after {
  content: "\201D";
  margin: -0.18em 0 0;
  text-align: right;
}

.mission-quote:has(.mission-quote-accent) {
  white-space: normal;
}

.mission-quote-accent {
  color: var(--terracotta);
  font-style: italic;
}

/* Why 12 — фото 50vw слева, текст справа, одна строка по высоте */
.why-twelve-section {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  box-sizing: border-box;
}

.why-twelve-inner {
  display: grid;
  grid-template-columns: 50vw minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
  min-height: clamp(280px, 42vh, 520px);
}

.why-twelve-media {
  min-height: 0;
  display: flex;
}

.why-twelve-media-inner {
  flex: 1;
  min-height: 100%;
  border-radius: 0;
  overflow: hidden;
  border: none;
  border-right: 1px solid var(--border);
  background: var(--surface-card);
}

.why-twelve-img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: clamp(280px, 42vh, 520px);
  object-fit: cover;
  object-position: center;
}

.why-twelve-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.5rem, 4vw, 3rem) clamp(1.25rem, 5vw, 4rem);
  max-width: 36rem;
}

.why-twelve-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--white);
  margin: 0 0 1.25rem;
  line-height: 1.15;
}

.why-twelve-p {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.why-twelve-p:last-child {
  margin-bottom: 0;
}

.why-twelve-em {
  font-style: italic;
  font-weight: 600;
  color: var(--white);
}

@media (max-width: 768px) {
  .why-twelve-section {
    width: auto;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
  }

  .why-twelve-inner {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .why-twelve-media {
    order: -1;
  }

  .why-twelve-media-inner {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .why-twelve-img {
    min-height: 220px;
    height: 40vh;
    max-height: 360px;
  }

  .why-twelve-copy {
    max-width: none;
    padding: 1.5rem 0 0;
  }
}

.tile-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0.5rem 0 0.15rem;
  color: var(--white);
  line-height: 1.2;
}

.tile-role {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.4;
}

/* —— Partner links: сетка 3×2, колонки max-content — правая колонка Zorka совпадает с Agency —— */
.partner-links {
  display: grid;
  grid-template-columns: max-content min-content max-content;
  grid-template-rows: auto auto;
  justify-content: center;
  align-items: start;
  column-gap: 1.35rem;
  row-gap: 1.1rem;
  padding: 2.25rem 1.25rem 0.85rem;
  margin-top: 2rem;
  border-top: 1px solid var(--border);
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.partner-links__brand--zorka {
  grid-column: 1;
  grid-row: 1;
  justify-self: end;
}

.partner-links__sep {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  display: block;
  width: 1px;
  height: 0.85rem;
  background: rgba(250, 243, 234, 0.22);
  flex-shrink: 0;
}

.partner-links__brand--imh {
  grid-column: 3;
  grid-row: 1;
  justify-self: start;
}

.partner-links__blurb--zorka {
  grid-column: 1;
  grid-row: 2;
  justify-self: end;
  text-align: right;
  margin: 0;
  text-wrap: balance;
}

.partner-links__sep-spacer {
  grid-column: 2;
  grid-row: 2;
  width: 1px;
  visibility: hidden;
  pointer-events: none;
  min-height: 1em;
}

.partner-links__blurb--imh {
  grid-column: 3;
  grid-row: 2;
  justify-self: start;
  text-align: left;
  margin: 0;
}

.partner-links__brand {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(250, 243, 234, 0.7);
  text-decoration: none;
  padding: 0.2rem 0;
  border-bottom: 1px solid transparent;
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}

.partner-links__brand:hover {
  color: var(--white);
  border-bottom-color: rgba(250, 243, 234, 0.45);
  text-decoration: none;
}

.partner-links__blurb {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0.01em;
  color: var(--text-muted);
  text-transform: none;
}

@media (max-width: 640px) {
  .partner-links {
    grid-template-columns: 1fr;
    justify-items: center;
    row-gap: 0.85rem;
    max-width: 28rem;
  }

  .partner-links__sep,
  .partner-links__sep-spacer {
    display: none;
  }

  .partner-links__brand--zorka {
    grid-column: 1;
    grid-row: 1;
    justify-self: center;
  }

  .partner-links__blurb--zorka {
    grid-column: 1;
    grid-row: 2;
    justify-self: center;
    text-align: center;
    max-width: 100%;
  }

  .partner-links__brand--imh {
    grid-column: 1;
    grid-row: 3;
    justify-self: center;
  }

  .partner-links__blurb--imh {
    grid-column: 1;
    grid-row: 4;
    justify-self: center;
    text-align: center;
    max-width: 100%;
  }
}

/* —— Marketer page —— */
.marketer-page {
  padding-top: 1rem;
}

.marketer-kicker {
  font-family: var(--font-display);
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--white);
  margin: 0 0 0.5rem;
  text-align: center;
}

.btn-back {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--terracotta);
  margin-bottom: 2rem;
  text-decoration: none;
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
}

.btn-back__arrow {
  color: var(--terracotta);
}

.btn-back__label {
  color: #faf3ea;
}

.btn-back:hover {
  text-decoration: underline;
}

.btn-back:hover .btn-back__arrow {
  color: var(--terracotta-hover);
}

.btn-back:hover .btn-back__label {
  color: #faf3ea;
}

.marketer-hero-grid {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  column-gap: clamp(1.5rem, 3vw, 2.5rem);
  row-gap: 1.1rem;
  align-items: stretch;
  margin-bottom: 3rem;
}

/* С QA: строка 1 — текст слева | фото справа (одинаковая высота строки); строка 2 — QA под фото */
.marketer-hero-grid:not(.marketer-hero-grid--no-qa) {
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  grid-template-rows: auto auto;
}

.marketer-hero-grid:not(.marketer-hero-grid--no-qa) .col-left__head {
  grid-column: 1;
  grid-row: 1;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.marketer-hero-grid:not(.marketer-hero-grid--no-qa) .col-left--body {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  min-width: 0;
}

.marketer-hero-grid:not(.marketer-hero-grid--no-qa) .col-qa {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
  min-height: 0;
}

.marketer-hero-grid--no-qa {
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto;
  align-items: stretch;
  max-width: min(100%, var(--max));
}

.marketer-hero-grid--no-qa .col-left__head {
  grid-column: 1;
  grid-row: 1;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

/* Фото справа в одном ряду с блоком имя / роль / intro */
.marketer-hero-grid--no-qa .col-photo--hero-rail {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  width: 100%;
  max-width: var(--photo-hero-max);
  justify-self: end;
}

@media (min-width: 901px) {
  .marketer-hero-grid--no-qa .col-left__head .marketer-fun-facts,
  .marketer-hero-grid:not(.marketer-hero-grid--no-qa) .col-left__head .marketer-fun-facts {
    margin-top: auto;
  }
}

.marketer-hero-grid--no-qa .col-photo--hero-rail .photo-frame {
  margin-left: auto;
  margin-right: 0;
  max-width: 100%;
}

.col-left--body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.1rem;
  min-width: 0;
}

.marketer-hero-grid .col-left--body .col-photo {
  width: 100%;
  max-width: var(--photo-hero-max);
}

.marketer-hero-grid:not(.marketer-hero-grid--no-qa) .col-left--body .col-photo .photo-frame {
  margin-left: 0;
  margin-right: auto;
  max-width: 100%;
}

.col-qa {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-width: 0;
  width: 100%;
}

.marketer-hero-grid .qa-row--hero {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  margin: 0;
  width: 100%;
  min-height: 0;
}

/* Три QA в герое — журнальный стиль (как колонка интервью) */
.marketer-hero-grid .qa-row--hero .qa-card {
  border: none;
  background: transparent;
  padding: 0 0 0 1.1rem;
  margin: 0;
  border-left: 2px solid rgba(0, 151, 178, 0.65);
  text-align: left;
}

.marketer-hero-grid .qa-row--hero .qa-card h4 {
  font-family: var(--font-editorial);
  font-size: clamp(0.92rem, 1.65vw, 1.05rem);
  font-weight: 500;
  font-style: italic;
  text-transform: none;
  letter-spacing: 0.01em;
  line-height: 1.4;
  color: var(--white);
  margin: 0 0 0.45rem;
}

.marketer-hero-grid .qa-row--hero .qa-card p {
  font-family: var(--font-editorial);
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.72;
  color: rgba(250, 243, 234, 0.8);
  hyphens: auto;
}

.marketer-hero-grid .qa-row--hero .qa-card:not(:last-child) {
  padding-bottom: 1.15rem;
  border-bottom: 1px solid rgba(250, 243, 234, 0.14);
}

@media (max-width: 900px) {
  .marketer-hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    align-items: start;
  }

  .marketer-hero-grid:not(.marketer-hero-grid--no-qa) .col-left__head,
  .marketer-hero-grid:not(.marketer-hero-grid--no-qa) .col-left--body,
  .marketer-hero-grid:not(.marketer-hero-grid--no-qa) .col-qa {
    grid-column: 1;
    grid-row: auto;
  }

  .marketer-hero-grid:not(.marketer-hero-grid--no-qa) .col-left__head,
  .marketer-hero-grid--no-qa .col-left__head {
    display: block;
  }

  .col-left--body {
    align-items: center;
    width: 100%;
  }

  .marketer-hero-grid--no-qa {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
  }

  .marketer-hero-grid--no-qa .col-left__head {
    grid-column: 1;
    grid-row: 1;
  }

  .marketer-hero-grid--no-qa .col-photo--hero-rail {
    grid-column: 1;
    grid-row: 2;
    grid-row-end: span 1;
    justify-self: center;
  }

  .marketer-hero-grid--no-qa .col-left__head .col-left__intro:not(.col-left__intro--empty) {
    max-width: 36rem;
  }

  .marketer-hero-grid--no-qa .col-photo--hero-rail .photo-frame {
    margin-left: auto;
    margin-right: auto;
  }

  .marketer-hero-grid .col-left--body .col-photo .photo-frame {
    margin-left: auto;
    margin-right: auto;
  }

  .col-qa {
    justify-content: flex-start;
    max-width: min(100%, 26rem);
    margin-left: auto;
    margin-right: auto;
  }

  .col-left__head .role-line {
    align-items: center;
  }

  .col-left__intro {
    margin-left: auto;
    margin-right: auto;
  }

  .col-left__head .marketer-fun-facts {
    margin-left: auto;
    margin-right: auto;
    max-width: min(36rem, 100%);
    text-align: left;
  }
}

.col-left__head .full-name {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  text-transform: uppercase;
  line-height: 1.1;
  margin: 0;
  color: var(--text);
}

.col-left__head .role-line {
  font-size: 0.9375rem;
  color: var(--terracotta);
  margin: 0.75rem 0 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  line-height: 1.35;
}

.col-left__head .role-line__row {
  display: block;
  white-space: nowrap;
}

.col-left__intro {
  margin: 0;
  max-width: 32rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.7;
  text-align: left;
}

.col-left__head > .col-left__intro:not(.col-left__intro--empty) {
  margin-top: 0.5rem;
}

.col-left__head .marketer-fun-facts {
  margin-top: 1.1rem;
  max-width: 32rem;
  width: 100%;
  padding: 0 0 0 1rem;
  border-left: 2px solid rgba(0, 151, 178, 0.65);
  text-align: left;
  box-sizing: border-box;
  flex-shrink: 0;
}

.col-left__head .marketer-fun-facts__title {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin: 0 0 0.65rem;
}

.col-left__head .marketer-fun-facts__list {
  margin: 0;
  padding: 0 0 0 1.15rem;
  list-style: decimal;
  font-family: var(--font-editorial);
  font-size: 0.875rem;
  line-height: 1.55;
  color: rgba(250, 243, 234, 0.85);
}

.col-left__head .marketer-fun-facts__item {
  margin: 0 0 0.45rem;
  padding-left: 0.35rem;
}

.col-left__head .marketer-fun-facts__item:last-child {
  margin-bottom: 0;
}

.marketer-hero-grid--no-qa .col-left__head .col-left__intro:not(.col-left__intro--empty) {
  max-width: none;
}

.col-left__intro--empty {
  margin: 0 !important;
  padding: 0 !important;
  min-height: 0;
  line-height: 0;
  overflow: hidden;
}

.col-photo .photo-frame {
  width: 100%;
  max-width: var(--photo-hero-max);
  margin-left: auto;
  margin-right: auto;
}

/* Профиль маркетолога: прямоугольнее квадрата; без HTML width/height — только CSS */
.marketer-hero-grid .photo-frame--hero-profile .hero-img {
  aspect-ratio: 5 / 6;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: cover;
}

.marketer-hero-grid .photo-frame--hero-profile .tile-photo-placeholder {
  aspect-ratio: 5 / 6;
  width: 100%;
  height: auto;
}

/* Quotes carousel */
.quotes-block {
  margin-bottom: 3rem;
}

.quote-panel {
  background: var(--surface-card);
  border: 1px solid var(--border);
  padding: 2rem 2rem 1.5rem;
  min-height: 160px;
  text-align: center;
}

.quote-panel blockquote {
  margin: 0;
  font-size: 1.125rem;
  font-style: italic;
  line-height: 1.6;
  color: var(--white);
}

.quote-panel .quote-caption {
  margin: 1rem 0 0;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--terracotta);
}

.quote-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.quote-dots button,
.quote-dots .quote-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: var(--border);
  cursor: pointer;
  padding: 0;
}

.quote-dots button.active,
.quote-dots .quote-dot.active {
  background: var(--white);
}

/* Bio */
.bio-block {
  margin-bottom: 3rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.bio-block h2 {
  font-family: var(--font-body);
  font-size: 2.25rem;
  font-weight: 600;
  font-style: normal;
  color: var(--white);
  margin: 0 0 1rem;
}

.bio-block .bio-text {
  white-space: pre-wrap;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-muted);
}

/* Tell us about yourself + темы — журнальное интервью (та же ширина, что карусели) */
.marketer-story-continuation {
  max-width: var(--marketer-sections-width);
  margin: 0 auto 3rem;
  display: flex;
  flex-direction: column;
  gap: 2.75rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(250, 243, 234, 0.2);
}

.marketer-story-continuation > .marketer-story-kicker,
.marketer-story-continuation > .story-topic-panel {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.marketer-story-kicker {
  margin: 0 0 0.25rem;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--terracotta);
}

.story-topic-panel {
  border: none;
  padding: 0;
  background: transparent;
}

.marketer-story-continuation .story-topic-panel h3 {
  font-family: var(--font-editorial);
  font-size: clamp(1.2rem, 2.6vw, 1.45rem);
  font-weight: 500;
  font-style: italic;
  letter-spacing: 0.01em;
  line-height: 1.35;
  margin: 0 0 1.1rem;
  color: var(--white);
}

.story-topic-panel__body {
  font-family: var(--font-editorial);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.82;
  color: rgba(250, 243, 234, 0.82);
  hyphens: auto;
}

.marketer-story-continuation .story-topic-panel--lead .story-topic-panel__body::first-letter {
  float: left;
  margin: 0.06em 0.5rem 0 0;
  padding: 0.04em 0;
  font-family: var(--font-editorial);
  font-size: 3.35rem;
  font-weight: 600;
  font-style: normal;
  line-height: 0.78;
  color: var(--white);
}

/* Sections carousel (arrows) — больше воздуха между кругами и карточкой */
.sections-carousel {
  position: relative;
  margin-bottom: 3rem;
  padding: 0 clamp(3.85rem, 5.5vw, 5.5rem);
}

.marketer-page > .sections-carousel {
  max-width: var(--marketer-sections-width);
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 600px) {
  .sections-carousel {
    padding: 0 clamp(3.35rem, 10vw, 4.5rem);
  }
}

.section-panel {
  border: 1px solid var(--border);
  padding: 2rem;
  min-height: 200px;
  background: var(--surface-card);
}

.section-panel h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 0 0 1rem;
  color: var(--white);
}

.section-panel .section-body {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* QA в интервью — на всю ширину колонки интервью */
.marketer-story-continuation .sections-carousel--story-qa {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 0;
}

/* Финальный блок после карусели */
.marketer-closing-coda.marketer-story-continuation {
  margin-top: 0;
}

.marketer-closing-coda__inner {
  width: 100%;
  max-width: 100%;
  text-align: center;
}

/* Как заголовок темы интервью (напр. «Do people still trust influencers?») */
.marketer-closing-coda.marketer-story-continuation .marketer-closing-coda__lead {
  margin: 0 auto;
  padding: 0 1rem;
  max-width: 36rem;
  font-family: var(--font-editorial);
  font-size: clamp(1.2rem, 2.6vw, 1.45rem);
  font-weight: 500;
  font-style: italic;
  letter-spacing: 0.01em;
  line-height: 1.35;
  color: var(--white);
  text-align: center;
}

.marketer-closing-coda.marketer-story-continuation .marketer-closing-coda__lead + .marketer-closing-coda__lead {
  margin-top: 0.85rem;
}

/* Кавычки как на About (mission), только вокруг ответа — внизу блока */
.marketer-closing-coda__answer-quoted {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: clamp(0.35rem, 1.5vw, 0.65rem);
  margin: 2rem auto 0;
  padding: clamp(0.35rem, 1.5vw, 0.65rem) clamp(0.75rem, 3vw, 1.5rem) 0;
  max-width: 36rem;
  quotes: none;
  position: relative;
}

.marketer-closing-coda__answer-quoted::before,
.marketer-closing-coda__answer-quoted::after {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 0.9;
  color: var(--terracotta);
  opacity: 0.92;
  width: 100%;
  pointer-events: none;
}

.marketer-closing-coda__answer-quoted::before {
  content: "\201C";
  margin: 0;
  text-align: left;
}

.marketer-closing-coda__answer-quoted::after {
  content: "\201D";
  margin: 0;
  text-align: right;
}

.marketer-closing-coda__answer-line {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(1.1rem, 2.35vw, 1.3rem);
  font-weight: 600;
  font-style: normal;
  letter-spacing: 0.16em;
  line-height: 1.35;
  text-transform: uppercase;
  color: rgba(250, 243, 234, 0.7);
  text-align: center;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  margin: 0;
  border: 1px solid var(--border);
  background: rgba(250, 243, 234, 0.12);
  border-radius: 50%;
  cursor: pointer;
  font-size: 0;
  line-height: 0;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.carousel-arrow__icon {
  display: block;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin: 0;
  overflow: visible;
}

.carousel-arrow:hover {
  color: var(--wine);
  background: rgba(250, 243, 234, 0.94);
  border-color: rgba(250, 243, 234, 0.55);
  box-shadow:
    0 0 26px rgba(250, 243, 234, 0.45),
    0 0 0 1px rgba(250, 243, 234, 0.55);
}

.carousel-arrow:focus-visible {
  outline: 2px solid rgba(250, 243, 234, 0.85);
  outline-offset: 3px;
}

.carousel-arrow.prev {
  left: 0;
}

.carousel-arrow.next {
  right: 0;
}

/* QA row (отдельная строка на других страницах; в герое маркетолога — .qa-row--hero в .col-qa) */
.qa-row:not(.qa-row--hero) {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 3rem;
}

@media (max-width: 768px) {
  .qa-row:not(.qa-row--hero) {
    grid-template-columns: 1fr;
  }
}

.qa-card {
  border: 1px solid var(--border);
  padding: 1.5rem;
  background: var(--surface-card);
}

.qa-card h4 {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--white);
  margin: 0 0 0.75rem;
}

.qa-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.marketer-page .btn-back.bottom {
  margin-bottom: 0;
  margin-top: 1rem;
}

/* —— About page (text / image / text) —— */
.about-page {
  padding: clamp(2.2rem, 5.25vw, 4.15rem) 0 2.5rem;
}

/* Совпадает с .about-why-lines — левый край как у «12 YEARS OF ZORKA.AGENCY» */
.about-stack {
  width: 100%;
  box-sizing: border-box;
}

.about-why-band > .about-stack {
  max-width: min(60rem, 100%);
  margin-left: auto;
  margin-right: auto;
}

/* Как .about-why-col__note («Instead of putting our own…»), крупнее для вводных абзацев */
.about-stack .block-text {
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 2.15vw, 1.25rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.6;
  color: var(--text-muted);
  hyphens: none;
  text-align: left;
  margin: 0 0 2rem;
  max-width: none;
}


.about-why-band {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.about-page > .about-why-band + .about-why-band {
  padding-top: clamp(0.35rem, 1.25vw, 0.85rem);
}

.about-why-heading {
  margin: clamp(2.5rem, 7vw, 5rem) auto clamp(3.25rem, 8vw, 5.25rem);
  padding: 0;
  max-width: min(720px, 100%);
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 5.2vw, 2.85rem);
  font-weight: 400;
  line-height: 1.05;
  text-align: center;
  text-transform: uppercase;
  color: var(--white);
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 0.38em;
  white-space: nowrap;
}

.about-why-heading__kicker {
  font-size: 1em;
  letter-spacing: 0.12em;
  line-height: 1;
}

.about-why-heading__twelve {
  font-size: 1em;
  letter-spacing: 0.12em;
  line-height: 1;
}

/* Три столбца: ряд заголовков, затем ряд описаний (один уровень старта текста) */
.about-why-lines {
  max-width: min(60rem, 100%);
  margin: 0 auto clamp(7.5rem, 17vw, 11.5rem);
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "t1"
    "n1"
    "t2"
    "n2"
    "t3"
    "n3";
  row-gap: clamp(0.85rem, 2.2vw, 1.25rem);
  column-gap: clamp(1.75rem, 4.5vw, 3.5rem);
  align-items: start;
  justify-items: start;
  text-align: left;
}

.about-why-lines > :nth-child(1) {
  grid-area: t1;
}

.about-why-lines > :nth-child(2) {
  grid-area: t2;
}

.about-why-lines > :nth-child(3) {
  grid-area: t3;
}

.about-why-lines > :nth-child(4) {
  grid-area: n1;
}

.about-why-lines > :nth-child(5) {
  grid-area: n2;
}

.about-why-lines > :nth-child(6) {
  grid-area: n3;
}

@media (min-width: 640px) {
  .about-why-lines {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: auto auto;
    grid-template-areas: none;
    row-gap: clamp(0.85rem, 2.2vw, 1.25rem);
    column-gap: clamp(1.75rem, 4.5vw, 3.5rem);
    justify-items: start;
    text-align: left;
  }

  .about-why-lines > :nth-child(n) {
    grid-area: auto;
  }

  .about-why-col__note {
    text-align: left;
  }
}

.about-why-col__note {
  margin: 0;
  padding: 0;
  max-width: none;
  min-width: 0;
  font-family: var(--font-body);
  font-size: clamp(0.98rem, 1.85vw, 1.125rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.6;
  text-transform: none;
  color: var(--text-muted);
  text-align: left;
}

.about-why-col__note strong {
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.02em;
}

.about-why-line {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  font-size: clamp(0.9375rem, 1.95vw, 1.0625rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--white);
}

.about-stack .block-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid var(--border);
  margin-bottom: 2rem;
  background: var(--surface);
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: center;
  margin: 2rem 0 1.5rem;
  color: var(--white);
}

/* —— Team page —— */
#team-root {
  /* как между nav-row (нижний padding) и этим блоком */
  --team-root-nav-gap: clamp(0.35rem, 1.5vw, 0.85rem);
  --team-root-nav-pad: clamp(2.5rem, 5.5vw, 4.25rem);
  /* совпадает с .team-person--polaroid / .team-grid — ширина ряда из 3 карточек */
  --team-pol-card: clamp(210px, 26vw, 300px);
  --team-pol-gap-x: clamp(2rem, 4vw, 3rem);
  --team-pol-row-w: calc(3 * var(--team-pol-card) + 2 * var(--team-pol-gap-x));
  margin-top: var(--team-root-nav-gap);
  margin-bottom: calc((var(--team-root-nav-pad) + var(--team-root-nav-gap)) * 2);
}

/* Тот же зазор, что над intro: снизу до partner-links без лишнего margin-top */
main > #team-root + .partner-links {
  margin-top: 0;
}

/* Как заголовки колонок на About (.about-why-line): Neue Montreal, caps, 600 */
.team-intro {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto clamp(3rem, 6.5vw, 4.75rem);
  padding: 0 1rem;
  font-family: var(--font-body);
  font-size: clamp(0.9375rem, 1.95vw, 1.0625rem);
  font-weight: 600;
  font-style: normal;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.5;
  color: var(--white);
}

.team-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(3.25rem, 6vw, 4.75rem) clamp(2rem, 4vw, 3rem);
}

.team-person {
  text-align: center;
  flex: 0 1 var(--photo-team-max);
  max-width: var(--photo-team-max);
  width: 100%;
  box-sizing: border-box;
}

.team-person--polaroid {
  flex: 0 1 clamp(210px, 26vw, 300px);
  max-width: clamp(210px, 26vw, 300px);
}

/* Не наследовать flex главной ленты (.polaroid-card flex: 0 0 auto) — единая сетка Our team */
.team-grid .team-person--polaroid.polaroid-card {
  flex: 0 1 clamp(210px, 26vw, 300px);
}

@media (max-width: 768px) {
  .team-grid {
    flex-direction: column;
    align-items: center;
    max-width: 400px;
    margin: 0 auto;
    gap: clamp(3rem, 7vw, 4.5rem);
  }

  .team-person {
    flex: 0 0 auto;
    max-width: 400px;
  }

  .team-person--polaroid {
    max-width: min(300px, 100%);
  }

  /* Цитата — как у колонки полароидов (сетка max-width: 400px) */
  .team-mission-band {
    width: min(100%, 400px);
  }
}

.team-person--polaroid .team-polaroid-frame {
  background: #faf5ec;
  border-color: rgba(250, 243, 234, 0.55);
  box-shadow:
    0 0.4rem 1rem rgba(0, 0, 0, 0.2),
    0 0.12rem 0.38rem rgba(0, 0, 0, 0.11);
}

.team-person--polaroid .polaroid-photo-area {
  border-color: rgba(250, 243, 234, 0.45);
  background: rgba(252, 248, 240, 0.65);
}

.team-person--polaroid .polaroid-photo-area .team-polaroid-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  aspect-ratio: unset;
  box-sizing: border-box;
}

/* 4-я карточка в общем списке: крупнее (класс вешается по индексу в JS) */
.team-grid .team-person--polaroid-spotlight .polaroid-photo {
  object-position: 50% 42%;
  transform: translateY(8%) scale(1.16) translateZ(0);
  transform-origin: center center;
}

/* Цитата миссии — та же ширина, что ряд из трёх полароидов (левый/правый край с сеткой) */
.team-mission-band {
  width: min(100%, var(--team-pol-row-w, 100%));
  max-width: none;
  margin: clamp(1.75rem, 4.5vw, 2.75rem) auto;
  padding: 0;
  box-sizing: border-box;
}

/* Не Georgia: веса 200/300 для неё часто не существуют, браузер не меняет вид. */
.team-page .mission-quote--team {
  margin: 0 auto;
  padding: clamp(1rem, 3vw, 1.6rem) clamp(0.35rem, 2.5vw, 1rem) 0;
  font-family: var(--font-body);
  font-size: clamp(1.12rem, 2.5vw, 1.45rem);
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.035em;
  line-height: 1.55;
  text-align: center;
  white-space: pre-line;
  word-wrap: break-word;
  overflow-wrap: break-word;
  color: var(--white);
  -webkit-font-smoothing: antialiased;
}

.team-page .mission-quote--team::before,
.team-page .mission-quote--team::after {
  font-size: clamp(2.1rem, 5.25vw, 3.1rem);
}

.team-page .mission-quote--team::before {
  margin: 0 0 -0.16em clamp(-1rem, -3.2vw, -0.4rem);
  text-align: left;
}

.team-page .mission-quote--team::after {
  text-align: right;
}

.team-person--polaroid .team-polaroid-caption {
  color: var(--wine);
  /* Одинаковая высота блока подписи: короткие роли (напр. CMO) не укорачивают карточку */
  min-height: clamp(4.2rem, 12.5vw, 6.5rem);
  box-sizing: border-box;
}

.team-person--polaroid .team-polaroid-caption .polaroid-caption__kicker {
  font-weight: 700;
}

.team-person--polaroid .team-polaroid-caption .polaroid-caption__body {
  color: var(--wine);
  font-weight: 400;
}

.team-person--polaroid .team-polaroid-caption .polaroid-caption__company {
  display: block;
  margin-top: 0.2em;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--wine);
}

.team-person .comment {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 1.1rem 0 0;
  text-align: left;
}

/* —— Forms —— */
/* Become one: тот же вертикальный шаг, что от низа nav до контента и от контента до partner-links */
main.become-one-page {
  --become-one-rhythm: calc(
    clamp(2.5rem, 5.5vw, 4.25rem) + clamp(0.45rem, 1.35vw, 0.95rem)
  );
}

.become-one-page .form-page {
  margin-top: clamp(0.45rem, 1.35vw, 0.95rem);
}

.become-one-page .form-intro {
  margin-bottom: clamp(2.5rem, 5.5vw, 3.75rem);
  font-style: italic;
  color: rgba(250, 243, 234, 0.82);
}

/* Невалидные обязательные поля при отправке: 3 вспышки белый ↔ #d7727e полупрозрачный */
@keyframes form-field-invalid-flash {
  0%,
  33.333%,
  66.666% {
    background-color: #fff;
  }

  16.666%,
  50%,
  83.333% {
    background-color: rgba(215, 114, 126, 0.42);
  }

  100% {
    background-color: rgba(250, 243, 234, 0.95);
  }
}

.form-field--invalid-flash {
  animation: form-field-invalid-flash 1.35s ease forwards;
}

@keyframes form-field-invalid-flash-contact {
  0%,
  33.333%,
  66.666% {
    background-color: rgba(250, 243, 234, 0.96);
    border-color: rgba(74, 24, 28, 0.28);
  }

  16.666%,
  50%,
  83.333% {
    background-color: rgba(215, 114, 126, 0.38);
    border-color: rgba(215, 114, 126, 0.78);
  }

  100% {
    background-color: rgba(250, 243, 234, 0.95);
    border-color: rgba(74, 24, 28, 0.28);
  }
}

.contact-page .contact-form-envelope__panel .form-field--invalid-flash-contact {
  animation: form-field-invalid-flash-contact 1.35s ease forwards;
}

@media (prefers-reduced-motion: reduce) {
  .form-field--invalid-flash,
  .contact-page .contact-form-envelope__panel .form-field--invalid-flash-contact {
    animation-duration: 0.35s;
  }
}

.become-one-page #become-thankyou {
  text-align: center;
}

/* Become one после отправки: как Contact — кремовая карточка, текст по центру */
.become-one-page #become-thankyou:not([hidden]) {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: clamp(11rem, 26vh, 18rem);
  padding: clamp(1.1rem, 3vw, 1.5rem);
  margin-top: 2.5cm;
  margin-left: auto;
  margin-right: auto;
  width: min(92%, 28rem);
  max-width: 100%;
  box-sizing: border-box;
  background-color: #faf3ea;
  border-radius: 4px;
  border: 1px solid rgba(74, 24, 28, 0.14);
  box-shadow:
    0 2px 16px rgba(30, 0, 4, 0.2),
    0 0 0 1px rgba(250, 243, 234, 0.08);
}

.become-one-page .form-thankyou__text {
  margin: 0;
  font-style: italic;
  font-size: 1rem;
  line-height: 1.65;
}

.become-one-page #become-thankyou:not([hidden]) .form-thankyou__text {
  color: rgba(74, 24, 28, 0.92);
}

/* Большой зазор от меню и до partner-links, когда показан thank you */
.become-one-page .form-page:has(#become-thankyou:not([hidden])) {
  margin-top: clamp(3.5rem, 11vh, 7rem);
}

main.become-one-page > .partner-links {
  margin-top: var(--become-one-rhythm);
}

main.become-one-page:has(#become-thankyou:not([hidden])) > .partner-links {
  margin-top: clamp(5rem, 16vw, 10rem);
}

.contact-page .contact-form-envelope__panel .form-thankyou {
  text-align: center;
  padding: clamp(0.5rem, 2vw, 1rem) 0 0;
}

.contact-page .contact-form-envelope__panel .form-thankyou__text {
  margin: 0;
  font-style: italic;
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(74, 24, 28, 0.92);
}

.form-page {
  max-width: 520px;
  margin: 0 auto;
}

/* Contact: фон wine, форма в панели */
.contact-page main {
  position: relative;
  overflow: visible;
}

.contact-page .site-header,
.contact-page .nav-row {
  position: relative;
  z-index: 20;
}

.contact-page .nav-row .btn-back.nav-row__back,
.contact-page .nav-row__pills,
.contact-page .nav-row__pills a {
  position: relative;
  z-index: 21;
}

/* Партнёры под формой — поверх выступающего contact-letter (у envelope z-index: 1) */
.contact-page main > .partner-links {
  position: relative;
  z-index: 10;
}

.contact-page .page-title {
  position: relative;
  z-index: 5;
}

.contact-page .form-page.contact-form-envelope {
  max-width: min(980px, 99vw);
  margin-top: clamp(-2rem, -4vw, -0.25rem);
  margin-left: auto;
  margin-right: auto;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
  position: relative;
  z-index: 1;
  min-height: min(88vh, 48rem);
  padding: clamp(2rem, 5vw, 3.5rem) clamp(0.65rem, 2vw, 1rem);
  border: none;
  border-radius: 6px;
  overflow: visible;
  box-sizing: border-box;
  background-color: var(--wine);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Письмо (images/contact-letter.png): чуть меньше предыдущего шага, под формой */
.contact-page .contact-letter-visual {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
  width: min(169rem, calc(96vw * 1.41));
  max-width: min(141vw, 169rem);
  margin: 0;
  pointer-events: none;
}

.contact-page .contact-letter-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(124vh, 152rem);
  margin: 0 auto;
  object-fit: contain;
  object-position: center center;
}

.contact-page .contact-form-envelope__panel {
  position: relative;
  z-index: 2;
  margin-top: 0;
  margin-left: auto;
  margin-right: auto;
  width: min(92%, 28rem);
  padding: clamp(1.1rem, 3vw, 1.5rem);
  /* Тот же крем, что --white / основной текст */
  background-color: #faf3ea;
  border-radius: 4px;
  border: 1px solid rgba(74, 24, 28, 0.14);
  box-shadow:
    0 2px 16px rgba(30, 0, 4, 0.2),
    0 0 0 1px rgba(250, 243, 234, 0.08);
  box-sizing: border-box;
}

/* После отправки: кремовая панель (~в 2× меньше прежнего блока), текст по центру */
.contact-page .contact-form-envelope__panel:has(#contact-thankyou:not([hidden])) {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: clamp(11rem, 26vh, 18rem);
  padding: clamp(1.1rem, 3vw, 1.5rem);
  margin-top: 4.5cm;
}

.contact-page .contact-form-envelope__panel:has(#contact-thankyou:not([hidden])) .form-thankyou {
  padding: 0;
  width: 100%;
  flex: 0 0 auto;
}

/* Типографика и поля как на Become one (на креме — тёмные подписи и видимая рамка) */
.contact-page .contact-form-envelope__panel .form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
  color: rgba(74, 24, 28, 0.88);
}

.contact-page .contact-form-envelope__panel .form-group input,
.contact-page .contact-form-envelope__panel .form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(74, 24, 28, 0.28);
  font-family: inherit;
  font-size: 1rem;
  background-color: rgba(250, 243, 234, 0.95);
  color: #1a1a1a;
  border-radius: 0;
  box-sizing: border-box;
}

.contact-page .contact-form-envelope__panel .form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-page .contact-form-envelope__panel .form-group input:focus,
.contact-page .contact-form-envelope__panel .form-group textarea:focus {
  outline: none;
  border-color: rgba(74, 24, 28, 0.28);
  box-shadow: none;
}

.contact-page .contact-form-envelope__panel .form-group input:focus-visible,
.contact-page .contact-form-envelope__panel .form-group textarea:focus-visible {
  outline: 2px solid var(--wine);
  outline-offset: 2px;
}

.contact-page .contact-form-envelope__panel .form-group input:invalid,
.contact-page .contact-form-envelope__panel .form-group textarea:invalid {
  border-color: rgba(74, 24, 28, 0.28);
  box-shadow: none;
}

.contact-page .contact-form-envelope__panel .form-group input:-moz-ui-invalid,
.contact-page .contact-form-envelope__panel .form-group textarea:-moz-ui-invalid {
  box-shadow: none;
}

.contact-page .contact-form-envelope__panel .form-group input:-webkit-autofill,
.contact-page .contact-form-envelope__panel .form-group input:-webkit-autofill:hover,
.contact-page .contact-form-envelope__panel .form-group input:-webkit-autofill:focus,
.contact-page .contact-form-envelope__panel .form-group textarea:-webkit-autofill,
.contact-page .contact-form-envelope__panel .form-group textarea:-webkit-autofill:hover,
.contact-page .contact-form-envelope__panel .form-group textarea:-webkit-autofill:focus {
  -webkit-text-fill-color: #1a1a1a;
  caret-color: #1a1a1a;
  box-shadow: 0 0 0 1000px rgba(250, 243, 234, 0.95) inset;
  transition: background-color 99999s ease-out 0s;
}

.form-intro {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
  color: var(--white);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  font-family: inherit;
  font-size: 1rem;
  background: rgba(250, 243, 234, 0.95);
  color: #1a1a1a;
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: 2px solid var(--wine);
  outline-offset: 2px;
}

/* Become one: поле не «перекрашивается» при наборе (autofill, :invalid email, фокус) */
.become-one-page .form-group input,
.become-one-page .form-group textarea {
  border-color: rgba(250, 243, 234, 0.28);
  background-color: rgba(250, 243, 234, 0.95);
}

.become-one-page .form-group input:focus,
.become-one-page .form-group textarea:focus {
  outline: none;
  border-color: rgba(250, 243, 234, 0.28);
  box-shadow: none;
}

.become-one-page .form-group input:focus-visible,
.become-one-page .form-group textarea:focus-visible {
  outline: 2px solid var(--wine);
  outline-offset: 2px;
}

.become-one-page .form-group input:invalid,
.become-one-page .form-group textarea:invalid {
  border-color: rgba(250, 243, 234, 0.28);
  box-shadow: none;
}

.become-one-page .form-group input:-moz-ui-invalid,
.become-one-page .form-group textarea:-moz-ui-invalid {
  box-shadow: none;
}

.become-one-page .form-group input:-webkit-autofill,
.become-one-page .form-group input:-webkit-autofill:hover,
.become-one-page .form-group input:-webkit-autofill:focus,
.become-one-page .form-group textarea:-webkit-autofill,
.become-one-page .form-group textarea:-webkit-autofill:hover,
.become-one-page .form-group textarea:-webkit-autofill:focus {
  -webkit-text-fill-color: #1a1a1a;
  caret-color: #1a1a1a;
  box-shadow: 0 0 0 1000px rgba(250, 243, 234, 0.95) inset;
  transition: background-color 99999s ease-out 0s;
}

.btn-submit {
  display: inline-block;
  width: 100%;
  padding: 0.875rem 1.5rem;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--white);
  color: var(--wine);
  border: none;
  cursor: pointer;
}

.btn-submit:hover {
  background: var(--wine);
  color: var(--white);
}

/* Send — обводка + пудровая заливка от центра (Become one и Contact: одна логика) */
.become-one-page .btn-submit,
.contact-page .contact-form-envelope__panel .btn-submit {
  position: relative;
  z-index: 0;
  overflow: hidden;
  background: transparent;
  border: 1px solid rgba(250, 243, 234, 0.42);
  box-sizing: border-box;
  transition:
    color 0.75s cubic-bezier(0.42, 0, 0.58, 1),
    border-color 0.75s cubic-bezier(0.42, 0, 0.58, 1);
}

.become-one-page .btn-submit {
  color: var(--white);
}

/* На кремовой панели те же форма и hover, но дефолт читаемый (винный текст/обводка) */
.contact-page .contact-form-envelope__panel .btn-submit {
  color: var(--wine);
  border-color: rgba(95, 4, 13, 0.38);
}

.become-one-page .btn-submit .btn-submit__label,
.contact-page .contact-form-envelope__panel .btn-submit .btn-submit__label {
  position: relative;
  z-index: 1;
}

.become-one-page .btn-submit::before,
.contact-page .contact-form-envelope__panel .btn-submit::before {
  content: "";
  position: absolute;
  inset: 1px;
  background: var(--text);
  transform: scaleX(0);
  transform-origin: center center;
  transition: transform 0.85s cubic-bezier(0.42, 0, 0.58, 1);
  z-index: 0;
}

.contact-page .contact-form-envelope__panel .btn-submit::before {
  background: var(--wine);
}

.become-one-page .btn-submit:hover {
  color: var(--wine);
  border-color: rgba(250, 243, 234, 0.5);
}

.contact-page .contact-form-envelope__panel .btn-submit:hover {
  color: var(--white);
  border-color: rgba(250, 243, 234, 0.5);
}

.become-one-page .btn-submit:hover::before,
.contact-page .contact-form-envelope__panel .btn-submit:hover::before {
  transform: scaleX(1);
}

.become-one-page .btn-submit:focus-visible,
.contact-page .contact-form-envelope__panel .btn-submit:focus-visible {
  outline: 2px solid rgba(250, 243, 234, 0.75);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .become-one-page .btn-submit::before,
  .contact-page .contact-form-envelope__panel .btn-submit::before {
    transition-duration: 0.01ms;
  }
}

.form-note {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 1rem;
  text-align: center;
}

/* —— Footer minimal —— */
.site-footer-min {
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.loading,
.error {
  text-align: center;
  padding: 3rem;
  color: var(--text-muted);
}

.error {
  color: #ffb4b4;
}

/* --- Винный фон, кремовый текст (#faf3ea) --- */
:root {
  --white: #faf3ea;
  --wine: #70020f;
  --wine-hover: #5a010c;
  --terracotta: #faf3ea;
  --terracotta-hover: #ffffff;
  --text: #faf3ea;
  --text-muted: rgba(250, 243, 234, 0.78);
  --border: rgba(250, 243, 234, 0.28);
  --surface: rgba(250, 243, 234, 0.12);
  --surface-card: rgba(250, 243, 234, 0.08);
}

body {
  background: var(--wine);
  color: var(--text);
}

a {
  color: var(--text);
}

a:hover {
  color: var(--terracotta);
}

/* Back: стрелка — светлее пудры при hover, слово — #faf3ea */
a.btn-back:hover .btn-back__arrow {
  color: var(--terracotta-hover);
}

a.btn-back:hover .btn-back__label {
  color: #faf3ea;
}

.site-title a:hover,
.site-title a[class*="site-title-a--v"] {
  color: inherit;
}

.site-title,
.page-title,
.mission-heading,
.tile-name,
.marketer-kicker,
.col-left__head .full-name,
.section-panel h3,
.brand-line,
.form-group label {
  color: var(--text);
}

.nav-pills a {
  color: rgba(250, 243, 234, 0.95);
  text-decoration: none;
  border-bottom: none;
  padding: 0.625rem 1.2rem;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.nav-pills a:hover {
  color: var(--wine);
  text-decoration: none;
  background: rgba(250, 243, 234, 0.94);
  box-shadow:
    0 0 26px rgba(250, 243, 234, 0.45),
    0 0 0 1px rgba(250, 243, 234, 0.55);
}

.nav-pills a:focus-visible {
  outline: 2px solid rgba(250, 243, 234, 0.85);
  outline-offset: 3px;
  text-decoration: none;
}

.nav-pills a[aria-current="page"] {
  color: var(--text);
  background: rgba(250, 243, 234, 0.32);
  box-shadow:
    0 0 28px rgba(250, 243, 234, 0.5),
    0 0 0 1px rgba(250, 243, 234, 0.72);
  text-shadow: 0 0 14px rgba(250, 243, 234, 0.35);
}

.nav-pills a[aria-current="page"]:hover {
  color: var(--text);
  background: rgba(250, 243, 234, 0.42);
  box-shadow:
    0 0 36px rgba(250, 243, 234, 0.62),
    0 0 0 1px rgba(250, 243, 234, 0.88);
  text-shadow: 0 0 18px rgba(250, 243, 234, 0.45);
}

.marketer-tile a.tile-link:hover .tile-name {
  color: var(--terracotta);
}

.home-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem 1.5rem;
}

@media (max-width: 900px) {
  .home-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .home-grid {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin: 0 auto;
  }
}

.tile-role,
.col-left__head .role-line,
.col-left__intro,
.team-person .comment,
.form-intro,
.form-note,
.site-footer-min {
  color: var(--text-muted);
}

.quote-panel,
.section-panel,
.qa-card {
  border-color: var(--border);
  background: var(--surface-card);
}

.tile-sample-name,
.tile-sample-role {
  color: var(--text);
}

.btn-submit {
  background: var(--white);
  color: var(--wine);
}

.btn-submit:hover {
  background: var(--wine);
  color: var(--white);
}

/* —— Forbes quote: на главной сразу после ленты полароидов, перед блоком партнёров —— */
.home-forbes-quote {
  --home-forbes-quote-text: rgba(250, 243, 234, 0.82);
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(0.75rem, 2.5vh, 1.5rem) 0 clamp(1rem, 3vh, 2rem);
  box-sizing: border-box;
}

.home-forbes-quote--left {
  margin-left: 0;
  margin-right: auto;
}

.home-forbes-quote--right {
  margin-left: auto;
  margin-right: 0;
}

.home-forbes-quote--left .home-forbes-quote__inner {
  text-align: left;
}

.home-forbes-quote--right .home-forbes-quote__inner {
  text-align: right;
}

#home-grid-container > .home-forbes-quote {
  margin-top: clamp(5.75rem, 16vh, 10.5rem);
}

#home-grid-container > .home-forbes-quote + .home-forbes-quote {
  margin-top: clamp(0.75rem, 2.5vh, 1.75rem);
  padding-top: clamp(0.5rem, 1.5vh, 1rem);
}

.home-forbes-quote__inner {
  margin: 0;
  padding: 0;
  border: none;
  text-align: center;
  quotes: none;
}

/* Текст цитат Forbes / BI / Guardian: Merriweather (@font-face выше) */
.home-forbes-quote__inner p.home-forbes-quote__body {
  margin: 0 0 1.1rem;
  font-family: "Merriweather", Georgia, "Times New Roman", serif !important;
  font-size: 1.3125rem;
  font-style: normal;
  font-weight: 400;
  font-synthesis: none;
  line-height: 1.82;
  letter-spacing: normal;
  color: var(--home-forbes-quote-text);
  hyphens: auto;
  text-wrap: pretty;
}

.home-forbes-quote__src {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  font-style: normal;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terracotta);
}

.home-forbes-quote__src::before {
  content: "— ";
  font-weight: 400;
  letter-spacing: 0;
}

/* —— Polaroid strip: vertical scroll drives horizontal translate —— */
.polaroid-scroll-driver {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  height: 150vh;
  box-sizing: border-box;
}

.home-page .nav-pills {
  padding-bottom: clamp(1rem, 2.75vw, 1.85rem);
}

#home-grid-container {
  margin-top: clamp(1.25rem, 3.25vw, 2.5rem);
}

.polaroid-sticky-viewport {
  position: sticky;
  top: 0;
  z-index: 1;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  padding-top: clamp(0.6rem, 2.5vh, 1.75rem);
  box-sizing: border-box;
}

.polaroid-track {
  display: grid;
  grid-template-columns: repeat(6, max-content);
  grid-template-rows: auto auto;
  grid-auto-flow: row;
  column-gap: clamp(1.15rem, 3.8vw, 2.85rem);
  row-gap: clamp(0.85rem, 2.5vh, 1.75rem);
  align-items: center;
  flex: 0 0 auto;
  width: max-content;
  min-width: min-content;
  padding: 0 clamp(1rem, 5vw, 4rem);
  will-change: transform;
}

.polaroid-card {
  flex: 0 0 auto;
  width: clamp(210px, 26vw, 300px);
  position: relative;
  z-index: 0;
  transition:
    transform 0.45s cubic-bezier(0.34, 1.35, 0.64, 1),
    z-index 0s linear 0s;
}

/* Без наклона — все полароиды ровные */
.polaroid-tilt--1,
.polaroid-tilt--2,
.polaroid-tilt--3,
.polaroid-tilt--4,
.polaroid-tilt--5,
.polaroid-tilt--6,
.polaroid-tilt--7,
.polaroid-tilt--8,
.polaroid-tilt--9,
.polaroid-tilt--10,
.polaroid-tilt--11,
.polaroid-tilt--12 {
  transform: none;
}

.polaroid-card--vacant .polaroid-photo-area--vacant {
  opacity: 0.72;
  background: rgba(252, 248, 240, 0.55);
}

/* Выпуск 01: светлый полароид, мягкие винные рамки и винный текст */
.polaroid-card--lead .polaroid-link {
  color: var(--wine);
}

.polaroid-card--lead .polaroid-frame {
  background: #faf5ec;
  border-color: rgba(95, 4, 13, 0.38);
  box-shadow:
    0 0.35rem 0.9rem rgba(0, 0, 0, 0.18),
    0 0.1rem 0.32rem rgba(0, 0, 0, 0.1);
}

.polaroid-card--lead .polaroid-photo-area {
  background: #faf5ec;
  border-color: rgba(95, 4, 13, 0.32);
}

.polaroid-card--lead .polaroid-caption {
  color: var(--wine);
}

.polaroid-card--lead .polaroid-read-pill {
  border-color: rgba(95, 4, 13, 0.35);
  background: rgba(252, 248, 240, 0.85);
}

.polaroid-card--lead .polaroid-read-pill__text {
  color: var(--wine);
}

.polaroid-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.polaroid-link:hover {
  text-decoration: none;
}

.polaroid-frame {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 0.58rem 0.58rem 0.45rem;
  padding-bottom: 2rem;
  border: 1px solid rgba(250, 243, 234, 0.5);
  background: rgba(252, 248, 240, 0.55);
  box-shadow:
    0 0.4rem 1rem rgba(0, 0, 0, 0.22),
    0 0.12rem 0.38rem rgba(0, 0, 0, 0.12);
  border-radius: 0;
  box-sizing: border-box;
}

.polaroid-photo-area {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1;
  flex-shrink: 0;
  border: 2px solid rgba(250, 243, 234, 0.45);
  background: rgba(252, 248, 240, 0.4);
  line-height: 0;
  overflow: hidden;
}

.polaroid-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 0;
  transform: translateZ(0);
}

/* Вне потока — иначе скрытая плашка на lead-карточке сужает область фото снизу */
.polaroid-read-pill {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.28em 1.05em 0.32em;
  border: 1px solid rgba(250, 243, 234, 0.45);
  border-radius: 999px;
  background: rgba(252, 248, 240, 0.35);
  box-sizing: border-box;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -50%) scale(0.92);
  transition:
    opacity 0.28s ease,
    visibility 0.28s ease,
    transform 0.4s cubic-bezier(0.34, 1.35, 0.64, 1),
    border-color 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
}

.polaroid-read-pill__text {
  font-family: var(--font-body);
  font-size: clamp(0.5rem, 1.3vw, 0.72rem);
  font-weight: 600;
  font-style: italic;
  letter-spacing: 0.1em;
  text-transform: none;
  color: var(--white);
  line-height: 1.2;
  transition: color 0.2s ease;
}

/* При наведении — как у .nav-pills a:hover */
.polaroid-card:has(.polaroid-link:hover) .polaroid-read-pill,
.polaroid-card:has(.polaroid-link:focus-visible) .polaroid-read-pill {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
  border-color: rgba(250, 243, 234, 0.55);
  background: rgba(250, 243, 234, 0.94);
  box-shadow:
    0 0 26px rgba(250, 243, 234, 0.45),
    0 0 0 1px rgba(250, 243, 234, 0.55);
}

.polaroid-card:has(.polaroid-link:hover) .polaroid-read-pill__text,
.polaroid-card:has(.polaroid-link:focus-visible) .polaroid-read-pill__text {
  color: var(--wine);
}

.polaroid-caption {
  margin: 0;
  margin-top: 0.75rem;
  padding: 0 0.1rem;
  font-family: var(--font-body);
  font-size: clamp(0.58rem, 1.55vw, 0.86rem);
  font-weight: 600;
  font-style: normal;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  line-height: 1.4;
  text-align: left;
  background: none;
}

.polaroid-caption__kicker {
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.polaroid-caption__body {
  display: block;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 0.2em;
}

/* Главная: должность и компания — как на Our team */
.home-page .polaroid-caption .polaroid-caption__body {
  font-weight: 400;
}

.home-page .polaroid-caption .polaroid-caption__company {
  display: block;
  margin-top: 0.2em;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: inherit;
}

.polaroid-caption__name {
  font-weight: 700;
}

.polaroid-scroll-driver--reduced {
  height: auto;
  margin-bottom: 3rem;
}

.polaroid-scroll-driver--reduced .polaroid-sticky-viewport {
  position: relative;
  height: auto;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 1.5rem 0;
  -webkit-overflow-scrolling: touch;
}

.polaroid-scroll-driver--reduced .polaroid-track {
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .polaroid-tilt--1,
  .polaroid-tilt--2,
  .polaroid-tilt--3,
  .polaroid-tilt--4,
  .polaroid-tilt--5,
  .polaroid-tilt--6,
  .polaroid-tilt--7,
  .polaroid-tilt--8,
  .polaroid-tilt--9,
  .polaroid-tilt--10,
  .polaroid-tilt--11,
  .polaroid-tilt--12,
  .polaroid-card--vacant {
    transform: none;
  }

  .polaroid-card:has(.polaroid-link:hover) .polaroid-read-pill {
    transform: translate(-50%, -50%);
  }
}

/* Главная: цитаты под полароидами — последним в файле */
body.home-page #home-grid-container .home-forbes-quote p.home-forbes-quote__body {
  font-family: "Merriweather", Georgia, "Times New Roman", serif !important;
  font-synthesis: none;
}

/* «Media insights» — Neue Montreal (как UI), не Merriweather у цитат */
body.home-page #home-grid-container .home-forbes-quote__media-heading {
  margin: 0 0 1.1rem;
  font-family: var(--font-body) !important;
  font-size: clamp(0.875rem, 1.85vw, 1.0625rem);
  font-weight: 600;
  font-style: normal;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.45;
  color: var(--terracotta) !important;
  hyphens: none;
  text-wrap: balance;
}

/* —— Small mobile (≤ 480px): tighten paddings, enlarge tap targets, protect headers —— */
@media (max-width: 480px) {
  main {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .site-header {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .nav-pills {
    gap: 0.45rem 0.65rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .nav-pills a {
    padding: 0.55rem 0.9rem;
    font-size: 0.9rem;
  }

  .nav-row {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .partner-links {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .contact-page .form-page.contact-form-envelope {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .contact-page .contact-form-envelope__panel {
    width: min(96%, 28rem);
  }

  .about-why-band {
    padding: 0 1rem;
  }

  /* Partner brand labels get cramped at 320px — allow tighter letter-spacing */
  .partner-links__brand {
    letter-spacing: 0.12em;
  }
}
