/* ==========================================================================
   PharmaEurope — таблица стилей прототипа, пересобрана 18.09.2026

   Собрана заново, а не дополнена: в прежнем файле было тринадцать слоёв правок
   поверх друг друга, и именно от этого страница читалась как самодельная.

   Метод — разбор Apple из скилла apple-design:
   · типографика с оптическим размером, трекинг и интерлиньяж зависят от кегля;
   · материалы вместо плашек: шапка полупрозрачная, содержимое едет под ней;
   · вес материала задаёт иерархию — крупная поверхность гуще размыта и глубже
     лежит в тени, мелкая почти не отрывается от фона;
   · отклик на нажатие, а не только на отпускание;
   · одна пружинная кривая на весь сайт, движение только по transform и opacity;
   · ничего случайного: шкала отступов, шкала кеглей, два уровня тени.

   Шрифт Inter: переменный, с осью оптического размера. Для боевого сайта
   забирается к себе в woff2, здесь грузится с Google Fonts.
   ========================================================================== */

/* --- токены -------------------------------------------------------------- */

:root {
  color-scheme: light;

  /* поверхности: от самой светлой к самой плотной. Коричневого нет нигде —
     это серая шкала с еле заметным тёплым сдвигом, чтобы не отдавала синевой */
  --pe-page:     #FFFFFF;   /* фон страницы */
  --pe-header:   #FFFFFF;   /* подложка шапки, работает через прозрачность */
  --pe-beige:    #F0F4F7;   /* светлая полоса */
  --pe-sand:     #D1E2E0;   /* плотная полоса */
  --pe-card:     #FFFFFF;   /* приподнятая карточка */

  /* акцент — один на весь сайт */
  --pe-accent:   #3C6A5E;
  --pe-accent-dn: #2F554B;   /* нажатое состояние */

  /* текст */
  --pe-ink:      #333C3A;   /* заголовки: графит, не чёрный */
  --pe-body:     #434D4B;   /* основной текст */
  --pe-muted:    #5A6462;   /* подписи, проверено на плотной полосе */
  --pe-hair:     rgba(106, 113, 111, .24);   /* волосяная линия */

  /* тени: мелкая поверхность почти не отрывается, крупная лежит глубже */
  --pe-shadow-chip: 0 1px 2px rgba(59, 74, 71, .05),
                    0 2px 8px  rgba(59, 74, 71, .05);
  --pe-shadow:      0 1px 2px rgba(59, 74, 71, .05),
                    0 12px 32px rgba(59, 74, 71, .08);
  --pe-shadow-lift: 0 2px 6px rgba(59, 74, 71, .07),
                    0 28px 64px rgba(59, 74, 71, .12);

  /* скругления: крупная поверхность скруглена сильнее мелкой */
  --pe-r-chip:  12px;
  --pe-r:       18px;
  --pe-r-lift:  24px;
  --pe-r-pill:  999px;

  /* шкала отступов, шаг 4 px, в rem — чтобы вёрстка ехала вместе с кеглем */
  --s-1: .25rem;  --s-2: .5rem;   --s-3: .75rem;  --s-4: 1rem;
  --s-5: 1.5rem;  --s-6: 2rem;    --s-7: 2.5rem;  --s-8: 3rem;
  --s-9: 4rem;    --s-10: 5.5rem;

  --pe-max: 1200px;
  --pe-gutter: clamp(1.25rem, 5vw, 4rem);
  --pe-band: clamp(3.5rem, 7.5vw, 8rem);

  /* движение: одна кривая на всё, как пружина без перелёта */
  --ease: cubic-bezier(.22, 1, .36, 1);
  --dur-press: 120ms;
  --dur: 320ms;
  --dur-slow: 520ms;

  --pe-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
             "Helvetica Neue", Arial, sans-serif;
  /* заголовки могут жить на своей гарнитуре — переключатель меняет её */
  --pe-display: var(--pe-font);
}

/* --- сброс --------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--pe-page);
  color: var(--pe-body);
  font-family: var(--pe-font);
  font-size: 1.0625rem;              /* 17px */
  line-height: 1.6;
  letter-spacing: -0.002em;
  font-optical-sizing: auto;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

/* дети grid и flex по умолчанию не ужимаются — длинное слово или широкая
   картинка выталкивают колонку за экран. Запрещаем раз и навсегда */
.grid > *, .split > *, .duo > *, .stats > *, .certs > *,
.hero__grid > *, .footer-grid > *, .cta .wrap > * { min-width: 0; }

a { color: inherit; }

::selection { background: rgba(30, 91, 69, .16); }

/* --- фокус и пропуск навигации ------------------------------------------- */

:focus-visible {
  outline: 2px solid var(--pe-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--pe-accent);
  color: var(--pe-page);
  padding: var(--s-3) var(--s-5);
  border-radius: 0 0 var(--pe-r-chip) 0;
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

/* --- типографика ---------------------------------------------------------

   Трекинг зависит от кегля: крупный текст сжимаем, мелкий чуть разряжаем.
   Интерлиньяж наоборот — плотный на крупном, свободный на тексте.
   -------------------------------------------------------------------------- */

h1, h2, h3 {
  font-family: var(--pe-display);
  font-optical-sizing: auto;
  color: var(--pe-ink);
  font-weight: 700;
  margin: 0;
  text-wrap: balance;
}

.h-hero {
  font-size: clamp(2.75rem, 5vw, 4.75rem);
  line-height: 1.02;
  letter-spacing: -0.028em;
  font-weight: 700;
}

.h-section {
  font-size: clamp(2rem, 3.4vw, 3.25rem);
  line-height: 1.06;
  letter-spacing: -0.022em;
  margin: 0;
}

.h-block, h3 {
  font-size: 1.1875rem;
  line-height: 1.3;
  letter-spacing: -0.012em;
  font-weight: 650;
  margin: 0 0 var(--s-2);
}

p { margin: 0 0 var(--s-4); }
p:last-child { margin-bottom: 0; }

/* вертикальный ритм: заголовок и следующий за ним текст не слипаются */
.kicker + .h-hero, .kicker + .h-section { margin-top: 0; }
.h-hero + .lead, .h-hero + p { margin-top: var(--s-6); }
.h-section + .lead, .h-section + p { margin-top: var(--s-5); }
.h-section + .grid, .h-section + .split, .h-section + .qa,
.h-section + .steps, .h-section + .table-scroll { margin-top: var(--s-8); }
.lead + .table-scroll, .lead + .grid, .lead + .qa { margin-top: var(--s-8); }
section > .wrap > .kicker:first-child { margin-bottom: var(--s-2); }

.lead {
  font-size: clamp(1.125rem, 1.35vw, 1.3125rem);
  line-height: 1.5;
  letter-spacing: -0.004em;
  color: var(--pe-body);
  text-wrap: pretty;
  max-width: 40em;
}

strong, b { color: var(--pe-ink); font-weight: 650; }

.kicker {
  display: block;
  font-size: .6875rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #3A544A;   /* надзаголовок в тон акцента, не серый */
  margin: 0 0 var(--s-3);
}

.sep { color: var(--pe-muted); opacity: .5; }

.metaline {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-4);
  font-size: .6875rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--pe-muted);
  margin: var(--s-5) 0 0;
}
.metaline span + span::before {
  content: "/";
  margin-right: var(--s-4);
  opacity: .45;
}

.crumbs {
  font-size: .6875rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--pe-muted);
  margin: 0 0 var(--s-3);
}

.table-note {
  font-size: .8125rem;
  line-height: 1.5;
  letter-spacing: .002em;
  color: var(--pe-muted);
  margin: var(--s-4) 0 0;
  max-width: 58em;
}

/* --- полосы и колонка ----------------------------------------------------- */

.band { padding-block: var(--pe-band); }
.band--page  { background: var(--pe-page); }
.band--beige { background: var(--pe-beige); }
.band--sand  { background: var(--pe-sand); }
.band--tight { padding-block: calc(var(--pe-band) * .62); }

.wrap {
  width: 100%;
  max-width: var(--pe-max);
  margin-inline: auto;
  padding-inline: var(--pe-gutter);
}

.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* --- шапка: материал, а не полоса ----------------------------------------

   Полупрозрачный слой с размытием, содержимое едет под ним. Разделительной
   линии в 1 px нет: границу держит растяжка под шапкой, как у скролл-края.
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--pe-header) 72%, transparent);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}
.site-header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 100%;
  height: 16px;
  pointer-events: none;
  background: linear-gradient(to bottom,
              rgba(20, 32, 28, .05), rgba(20, 32, 28, 0));
}
@supports not (backdrop-filter: blur(1px)) {
  .site-header { background: var(--pe-header); }
}

.site-header__inner {
  max-width: var(--pe-max);
  margin-inline: auto;
  padding: var(--s-3) var(--pe-gutter);
  display: flex;
  align-items: center;
  gap: var(--s-5);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  text-decoration: none;
  color: var(--pe-ink);
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: .02em;
  margin-right: auto;
}
.brand svg { display: block; }

.nav {
  display: flex;
  gap: var(--s-1);
  align-items: center;
}
.nav a {
  text-decoration: none;
  color: var(--pe-body);
  font-size: .9375rem;
  letter-spacing: -0.006em;
  padding: var(--s-2) var(--s-3);
  border-radius: var(--pe-r-pill);
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.nav a:hover { background: rgba(20, 32, 28, .05); color: var(--pe-ink); }
.nav a:active { background: rgba(20, 32, 28, .09); }

@media (max-width: 900px) {
  .nav { display: none; }
}

/* --- кнопки: отклик на нажатие, а не на отпускание ------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: .8125rem 1.375rem;
  border-radius: var(--pe-r-pill);
  border: 1px solid transparent;
  font-size: .9375rem;
  font-weight: 600;
  letter-spacing: -0.006em;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: transform var(--dur-press) var(--ease),
              background-color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.btn:active { transform: scale(.975); }

.btn--accent {
  background: var(--pe-accent);
  color: #FBFBF8;
  box-shadow: var(--pe-shadow-chip);
}
.btn--accent:hover { background: var(--pe-accent-dn); box-shadow: var(--pe-shadow); }

.btn--ghost {
  background: transparent;
  color: var(--pe-ink);
  border-color: var(--pe-hair);
}
.btn--ghost:hover { background: rgba(59, 74, 71, .05); border-color: rgba(20, 32, 28, .18); }

.btn--light {
  background: #FBFBF8;
  color: var(--pe-accent);
}
.btn--light:hover { background: #fff; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-top: var(--s-5);
}

.linkrow {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-4);
  margin-top: var(--s-4);
  font-size: .9375rem;
}
.linkrow a { color: var(--pe-accent); text-decoration: none; font-weight: 600; }
.linkrow a:hover { text-decoration: underline; text-underline-offset: 3px; }

.arrow { color: var(--pe-muted); transition: transform var(--dur) var(--ease); }

/* --- герой ---------------------------------------------------------------- */

.hero { background: var(--pe-beige); }

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
}

.hero__text {
  padding: var(--pe-band) var(--pe-gutter);
}

.hero__media { position: relative; align-self: stretch; }
.hero__media img {
  width: 100%;
  height: 100%;
  min-height: 16rem;
  object-fit: cover;
  object-position: 55% center;
  transition: transform var(--dur-slow) var(--ease);
}

@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: 1.08fr 1fr;
    align-items: center;
  }
  .hero__text {
    padding: calc(var(--pe-band) * .9) clamp(1.25rem, 2.2vw, 2rem)
             calc(var(--pe-band) * .9)
             max(var(--pe-gutter), calc(50vw - (var(--pe-max) / 2) + var(--pe-gutter)));
  }
  .hero__media img { min-height: 26rem; }
  /* левый край фотографии растворяется в полосе — стыка нет */
  .hero:not(.hero--inner) .hero__media img {
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 16%);
            mask-image: linear-gradient(to right, transparent 0, #000 16%);
  }
}

/* подпись на фото главной — компактная пилюля, светлое по затемнённому */
.hero:not(.hero--inner) .hero__media figcaption {
  position: absolute;
  left: clamp(1rem, 2vw, 1.6rem);
  bottom: clamp(5.5rem, 9vw, 6.5rem);
  max-width: min(22rem, 60%);
  padding: var(--s-2) var(--s-4);
  border-radius: var(--pe-r-pill);
  background: rgba(59, 74, 71, .62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #FBFBF8;
  font-size: .75rem;
  line-height: 1.4;
}
.hero:not(.hero--inner) .hero__media figcaption strong {
  color: #fff;
  font-weight: 600;
}
@media (max-width: 899px) {
  .hero:not(.hero--inner) .hero__media figcaption { bottom: var(--s-4); }
}

/* герой внутренних страниц: фотография — карточка в колонке, подпись под ней */
.hero--inner .hero__grid {
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
  max-width: var(--pe-max);
  margin-inline: auto;
  padding-inline: var(--pe-gutter);
}
.hero--inner .hero__text { padding: 0; }
.hero--inner { padding-block: calc(var(--pe-band) * .9); }
.hero--inner .hero__media img {
  border-radius: var(--pe-r-lift);
  min-height: 0;
  aspect-ratio: 4 / 3;
  box-shadow: var(--pe-shadow);
}
.hero--inner .hero__media figcaption,
.figure figcaption,
.duo figure figcaption {
  padding: var(--s-3) var(--s-1) 0;
  color: var(--pe-muted);
  font-size: .8125rem;
  line-height: 1.45;
  max-width: 44em;
}
/* подпись не должна упираться в следующий абзац: на страницах форматов сразу
   под ней идёт текст того же кегля, и без воздуха они слипаются */
.figure, .duo figure { margin-bottom: var(--s-6); }
.figure:last-child, .duo figure:last-child { margin-bottom: 0; }
.hero--inner .hero__media figcaption strong,
.figure figcaption strong,
.duo figure figcaption strong { color: var(--pe-body); font-weight: 600; }

.hero--center {
  padding-block: calc(var(--pe-band) * 1.1);
  background: var(--pe-beige);
}
.hero--center .h-hero { font-size: clamp(2.4rem, 4.4vw, 3.9rem); }

/* --- ряд цифр: фотокарточка, поверх неё слово и число --------------------- */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: var(--s-3);
  align-items: stretch;
}
@media (min-width: 900px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
}

.stat {
  position: relative;
  display: grid;
  align-content: end;
  overflow: hidden;
  isolation: isolate;
  min-height: clamp(8.5rem, 13vw, 10rem);
  padding: var(--s-4);
  border-radius: var(--pe-r);
  background: var(--pe-ink);
  box-shadow: var(--pe-shadow-chip);
}

.stat__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform var(--dur-slow) var(--ease);
}

/* без затемнения светлый снимок съедает текст; растяжка, а не сплошная плашка */
.stat::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top,
              rgba(59, 74, 71, .93) 0%,
              rgba(59, 74, 71, .72) 34%,
              rgba(59, 74, 71, .22) 66%,
              rgba(59, 74, 71, 0) 100%);
}

.stat > span { position: relative; z-index: 2; }

.stat__value {
  display: block;
  font-family: var(--pe-display);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.028em;
  color: #FBFBF8;
  white-space: nowrap;
}
.stat__value--long { letter-spacing: -0.04em; }

.stat__label {
  display: block;
  margin-top: var(--s-1);
  font-size: .8125rem;
  line-height: 1.3;
  letter-spacing: .004em;
  color: rgba(251, 251, 248, .9);
  text-wrap: balance;
}

.stat:hover .stat__media { transform: scale(1.06); }

/* ряд заезжает на низ полосы героя, как было задумано в макете */
.band--stats { padding-top: 0; padding-bottom: clamp(2rem, 3.4vw, 3.25rem); }
@media (min-width: 900px) {
  .stats-overlap { position: relative; z-index: 2; margin-top: -4.5rem; }
  .hero .hero__text { padding-bottom: calc(var(--pe-band) * .9 + 4rem); }
}

/* --- сетки и карточки ----------------------------------------------------- */

.grid { display: grid; gap: clamp(.875rem, 1.6vw, 1.375rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }
.grid--formats { grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); }
/* семь форматов в семь колонок давали карточку в 134 px — текст в ней ломался
   на три строки. Четыре колонки: карточка дышит, ряд читается как ряд */
@media (min-width: 1000px) { .grid--formats { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 999px) and (min-width: 721px) { .grid--formats { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px)  { .grid--formats { grid-template-columns: repeat(2, 1fr); } }

.card {
  background: var(--pe-card);
  border-radius: var(--pe-r);
  padding: clamp(1.25rem, 2vw, 1.75rem);
  box-shadow: var(--pe-shadow-chip);
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.feature {
  background: var(--pe-card);
  border-radius: var(--pe-r);
  padding: clamp(1.25rem, 2vw, 1.75rem);
  box-shadow: var(--pe-shadow-chip);
}
.feature__start { display: block; color: var(--pe-accent); font-weight: 650; margin-bottom: var(--s-2); }
.feature__body { color: var(--pe-body); }

/* карточка формата */
.fcard {
  display: grid;
  grid-template-rows: auto auto 1fr;
  align-content: start;
  gap: var(--s-2);
  background: var(--pe-card);
  border-radius: var(--pe-r);
  box-shadow: var(--pe-shadow-chip);
  padding: var(--s-2) var(--s-2) var(--s-4);
  text-decoration: none;
  overflow: hidden;
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.fcard img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--pe-r-chip);
  transition: transform var(--dur-slow) var(--ease);
}
.fcard__name {
  color: var(--pe-ink);
  font-weight: 650;
  font-size: .9375rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
  padding-inline: var(--s-2);
}
.fcard__meta {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: var(--s-2);
  padding-inline: var(--s-2);
  font-size: .75rem;
  line-height: 1.35;
  color: var(--pe-muted);
}
.fcard:hover { box-shadow: var(--pe-shadow); transform: translateY(-2px); }
.fcard:hover img { transform: scale(1.07); }
.fcard:hover .arrow { transform: translateX(3px); }

/* --- две колонки: заголовок слева, содержимое справа ---------------------- */

.split {
  display: grid;
  grid-template-columns: minmax(15rem, .9fr) 1.4fr;
  gap: clamp(1.625rem, 4vw, 4rem);
  align-items: start;
}
.split--head {
  grid-template-columns: minmax(16rem, 1fr) minmax(17rem, 1fr);
  align-items: end;
  margin-bottom: clamp(1.625rem, 3vw, 2.5rem);
}
.split--head .lead { margin: 0; }

.duo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
  gap: clamp(1.625rem, 4vw, 3.5rem);
  align-items: center;
}
.duo figure { margin: 0; }
.duo figure img, .figure img {
  width: 100%;
  border-radius: var(--pe-r-lift);
  box-shadow: var(--pe-shadow);
  transition: transform var(--dur-slow) var(--ease);
}
.figure { margin: var(--s-6) 0 0; }
.duo figure:hover img, .figure:hover img { transform: scale(1.02); }

@media (max-width: 860px) {
  .split, .split--head { grid-template-columns: 1fr; }
}

/* --- списки --------------------------------------------------------------- */

.items { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-5); }
.items li { padding-left: 0; }

.checks { list-style: none; margin: var(--s-4) 0 0; padding: 0; display: grid; gap: var(--s-3); }
.checks--2 { grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.checks li {
  position: relative;
  padding-left: var(--s-6);
  line-height: 1.5;
}
.checks li::before {
  content: "";
  position: absolute;
  left: 0; top: .45em;
  width: 1rem; height: 1rem;
  border-radius: var(--pe-r-pill);
  background: var(--pe-accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.4l3 3 6-6.6' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.4l3 3 6-6.6' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}

/* --- таблицы -------------------------------------------------------------- */

.table-scroll {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  margin-top: var(--s-5);
  border-radius: var(--pe-r);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

th {
  text-align: left;
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--pe-muted);
  padding: var(--s-3) var(--s-4);
  white-space: nowrap;
}

td {
  padding: var(--s-4);
  vertical-align: middle;
  color: var(--pe-body);
  border-top: 1px solid var(--pe-hair);
}
tbody tr:nth-child(odd) td { background: rgba(255, 255, 255, .55); }
td:first-child { color: var(--pe-ink); font-weight: 600; }

.table--figures td:first-child { font-size: clamp(1rem, 1.6vw, 1.1875rem); }
.table--figures .num {
  font-size: clamp(1.0625rem, 1.7vw, 1.25rem);
  font-weight: 700;
  color: var(--pe-ink);
  letter-spacing: -0.02em;
}
.table--figures .unit { font-size: .8125rem; color: var(--pe-muted); font-weight: 400; }

.blank { color: var(--pe-muted); opacity: .55; }

/* --- вопросы и ответы ----------------------------------------------------- */

.qa {
  display: grid;
  gap: var(--s-6);
}
@media (min-width: 900px) {
  .qa { grid-template-columns: repeat(2, 1fr); gap: var(--s-6) var(--s-8); }
}
.qa__q {
  color: var(--pe-ink);
  font-weight: 650;
  font-size: 1.0625rem;
  letter-spacing: -0.012em;
  margin: 0 0 var(--s-2);
}
.qa__a { margin: 0; color: var(--pe-body); text-wrap: pretty; }

/* --- шаги процесса -------------------------------------------------------- */

.steps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2) var(--s-3);
}
.step {
  display: inline-flex;
  align-items: center;
  padding: var(--s-2) var(--s-4);
  border-radius: var(--pe-r-pill);
  background: var(--pe-card);
  box-shadow: var(--pe-shadow-chip);
  font-size: .875rem;
  font-weight: 600;
  color: var(--pe-ink);
  white-space: nowrap;
}
.step--mark { background: var(--pe-accent); color: #FBFBF8; }

.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-4); }
.chip {
  display: inline-flex;
  padding: var(--s-1) var(--s-3);
  border-radius: var(--pe-r-pill);
  border: 1px solid var(--pe-hair);
  font-size: .8125rem;
  color: var(--pe-body);
}

/* --- сертификаты ---------------------------------------------------------- */

.certs { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: var(--s-4); }
.cert {
  background: var(--pe-card);
  border-radius: var(--pe-r);
  padding: var(--s-5);
  box-shadow: var(--pe-shadow-chip);
}
.cert__name { display: block; color: var(--pe-ink); font-weight: 650; }
.cert__no {
  display: block;
  margin-top: var(--s-1);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  color: var(--pe-accent);
  font-weight: 600;
}
.cert__sheet { display: block; margin-top: var(--s-2); font-size: .8125rem; color: var(--pe-muted); }

/* --- блог ----------------------------------------------------------------- */

.posts { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: var(--s-4); }
.post {
  display: block;
  background: var(--pe-card);
  border-radius: var(--pe-r);
  padding: var(--s-5);
  box-shadow: var(--pe-shadow-chip);
  text-decoration: none;
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.post:hover { box-shadow: var(--pe-shadow); transform: translateY(-2px); }
.post__kicker {
  display: block;
  font-size: .6875rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--pe-muted);
  margin-bottom: var(--s-2);
}
.post__title {
  display: block;
  color: var(--pe-ink);
  font-weight: 650;
  font-size: 1.0625rem;
  line-height: 1.35;
  letter-spacing: -0.012em;
}

/* --- призыв --------------------------------------------------------------- */

.cta { background: var(--pe-accent); color: rgba(251, 251, 248, .88); }
.cta .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
}
.cta h2 { color: #FBFBF8; font-size: clamp(1.5rem, 2.4vw, 2.1rem); letter-spacing: -0.022em; }
.cta p { margin: var(--s-2) 0 0; max-width: 38em; }

/* --- подвал --------------------------------------------------------------- */

.site-footer {
  background: var(--pe-sand);
  padding-block: var(--pe-band) var(--s-6);
  font-size: .875rem;
  color: var(--pe-body);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: var(--s-6) var(--s-5);
}
.site-footer h3 {
  font-size: .6875rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--pe-muted);
  font-weight: 600;
  margin-bottom: var(--s-3);
}
.site-footer p { margin-bottom: var(--s-3); line-height: 1.6; }
.site-footer a { color: var(--pe-body); text-decoration: none; }
.site-footer a:hover { color: var(--pe-ink); text-decoration: underline; text-underline-offset: 3px; }

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  color: var(--pe-ink);
  font-weight: 700;
  letter-spacing: .02em;
  margin-bottom: var(--s-3);
}
.footer-brand--stacked { flex-direction: column; align-items: flex-start; gap: var(--s-2); }

.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }

.footer-cert { margin-bottom: var(--s-3); line-height: 1.45; }
.footer-cert b { display: block; color: var(--pe-ink); font-weight: 650; }
.footer-cert span { color: var(--pe-muted); font-size: .8125rem; font-variant-numeric: tabular-nums; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s-3);
  margin-top: var(--s-7);
  padding-top: var(--s-5);
  border-top: 1px solid var(--pe-hair);
  font-size: .8125rem;
  color: var(--pe-muted);
}

/* --- якоря ---------------------------------------------------------------- */

:target, h2[id], h3[id] { scroll-margin-top: 6rem; }

/* --- доступность движения и прозрачности ---------------------------------

   Меньше движения — не значит без обратной связи: остаются цвет и тень.
   Меньше прозрачности — материал становится плотным, размытие снимается.
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .fcard:hover img, .stat:hover .stat__media,
  .duo figure:hover img, .figure:hover img,
  .fcard:hover, .post:hover, .btn:active { transform: none; }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header {
    background: var(--pe-header);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 1px solid var(--pe-hair);
  }
  .site-header::after { display: none; }
  .hero:not(.hero--inner) .hero__media figcaption {
    background: rgba(59, 74, 71, .88);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

@media (prefers-contrast: more) {
  :root { --pe-body: #2C3230; --pe-muted: #3D4341; --pe-hair: rgba(59, 74, 71, .34); }
  .card, .fcard, .cert, .post, .feature, .step { border: 1px solid var(--pe-hair); }
}

/* --- телефон -------------------------------------------------------------- */

@media (max-width: 720px) {
  .btn { width: 100%; }
  .btn-row { flex-direction: column; align-items: stretch; }
  .cta .wrap { flex-direction: column; align-items: flex-start; }
  .cta .btn { width: auto; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
}


/* ==========================================================================
   Поведение: шапка отвечает на прокрутку, блоки приходят снизу.
   Работает вместе с motion.js. Без скрипта страница остаётся полностью
   видимой — ни один блок не прячется на случай выключенного JS.
   ========================================================================== */

/* --- шапка: пока страница наверху, слой почти невидим ---------------------- */

.site-header {
  background: color-mix(in srgb, var(--pe-header) 55%, transparent);
  transition: background-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              backdrop-filter var(--dur) var(--ease);
}
.site-header::after { opacity: 0; transition: opacity var(--dur) var(--ease); }

.site-header.is-scrolled {
  background: color-mix(in srgb, var(--pe-header) 78%, transparent);
  box-shadow: 0 1px 0 rgba(20, 32, 28, .05);
}
.site-header.is-scrolled::after { opacity: 1; }

/* строка шапки чуть сжимается — материал уплотняется под нагрузкой */
.site-header__inner { transition: padding var(--dur) var(--ease); }
.site-header.is-scrolled .site-header__inner {
  padding-top: var(--s-2);
  padding-bottom: var(--s-2);
}

/* --- появление блоков ------------------------------------------------------

   Блок приходит снизу — оттуда, куда его увела прокрутка. Подъём маленький,
   14 px: движение должно подсказывать направление, а не показывать себя.
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  transition: opacity 620ms var(--ease) var(--reveal-delay, 0ms),
              transform 620ms var(--ease) var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.reveal.is-in {
  opacity: 1;
  transform: none;
  will-change: auto;
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .site-header.is-scrolled .site-header__inner { padding-block: var(--s-3); }
}


/* ==========================================================================
   Переключатель типографики — ТОЛЬКО прототип, в боевой сайт не едет.
   ========================================================================== */

.pe-switch { position: fixed; right: 18px; bottom: 18px; z-index: 90; font-family: var(--pe-font); }

.pe-switch__toggle {
  width: 46px; height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(17,21,19,.10);
  background: rgba(251,251,248,.86);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  box-shadow: 0 2px 6px rgba(17,21,19,.06), 0 16px 40px rgba(17,21,19,.12);
  color: var(--pe-ink);
  font-size: 15px; font-weight: 650; cursor: pointer;
  transition: transform 120ms var(--ease);
}
.pe-switch__toggle:active { transform: scale(.94); }

.pe-switch__panel {
  position: absolute; right: 0; bottom: 56px;
  width: 268px; padding: 14px;
  border-radius: 18px;
  background: rgba(251,251,248,.92);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid rgba(17,21,19,.08);
  box-shadow: 0 2px 6px rgba(17,21,19,.06), 0 28px 64px rgba(17,21,19,.16);
}
.pe-switch__panel[hidden] { display: none; }

.pe-switch__title {
  margin: 0 0 8px; font-size: 10.5px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--pe-muted); font-weight: 600;
}
.pe-switch__row { display: grid; gap: 6px; margin-bottom: 14px; }
.pe-switch__row button {
  display: flex; align-items: center; gap: 8px;
  text-align: left; width: 100%;
  padding: 9px 11px; border-radius: 12px;
  border: 1px solid transparent; background: rgba(17,21,19,.04);
  color: var(--pe-body); cursor: pointer; font: inherit; font-size: 13px;
  transition: background-color 200ms var(--ease), border-color 200ms var(--ease);
}
.pe-switch__row button b { color: var(--pe-ink); font-weight: 650; }
.pe-switch__row button span { color: var(--pe-muted); font-size: 11.5px; line-height: 1.3; }
.pe-switch__row[data-kind="font"] button { display: grid; gap: 1px; }
.pe-switch__row button i { width: 14px; height: 14px; border-radius: 999px; display: inline-block; }
.pe-switch__row button:hover { background: rgba(17,21,19,.07); }
.pe-switch__row button.is-on { border-color: var(--pe-accent); background: rgba(30,91,69,.10); }

.pe-switch__note { margin: 0; font-size: 11px; color: var(--pe-muted); line-height: 1.35; }


/* Разворот .split для страниц характеристик: таблица с данными идёт первой и
   должна получить широкую колонку, иначе два столбца сжимаются до 400 px. */
.split--specs { grid-template-columns: 1.45fr 1fr; align-items: start; }
.split--specs .table-scroll { margin-top: 0; }
@media (max-width: 860px) { .split--specs { grid-template-columns: 1fr; } }


/* ---- Сертификаты: номер текстом и скан картинкой (21.09.2026) --------------

   Требование простое и правильное: номер читают поисковик и ИИ, скан читает
   человек, который проверяет. Одно без другого не работает.
   -------------------------------------------------------------------------- */

.certs { grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }

.cert {
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  gap: var(--s-2);
  padding: var(--s-3) var(--s-3) var(--s-4);
  text-decoration: none;
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
a.cert:hover { box-shadow: var(--pe-shadow); transform: translateY(-2px); }

.cert__scan {
  width: 100%;
  aspect-ratio: 1 / 1.35;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--pe-r-chip);
  border: 1px solid var(--pe-hair);
  background: #fff;
  transition: transform var(--dur-slow) var(--ease);
}
a.cert:hover .cert__scan { transform: scale(1.02); }


.cert__name { padding-top: var(--s-1); }
.cert__no { font-size: 1.0625rem; }
.cert__sheet { align-self: end; }


/* ---- Затруднение сохранения картинок (21.09.2026) -------------------------

   ⚠ Честно: полностью запретить сохранение картинки в вебе нельзя. Браузер
   обязан её скачать, чтобы показать, и она всегда лежит во вкладке «Сеть».
   Всё, что ниже, — это порог, а не замок: убирает правый клик, перетаскивание
   и долгое нажатие на телефоне, то есть три простых способа из четырёх.
   Настоящая защита — отдавать наружу только уменьшенную копию, что мы и делаем.
   -------------------------------------------------------------------------- */

.hero__media img,
.fcard img,
.stat__media,
.cert__scan,
.figure img,
.duo figure img {
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  pointer-events: none;
}

/* карточки остаются кликабельными: запрет событий снят с самой ссылки */
a.fcard, a.cert { pointer-events: auto; }


/* ---- Настоящий логотип вместо нарисованного (21.09.2026) -------------------

   В шапке стоял знак, который я нарисовал сам. Правило проекта прямое: новые
   блоки клонируют реальное, а не приносят придуманное. Взят логотип с живого
   сайта — синий знак-глобус с капсулой и надпись PHARMAEUROPE.

   Фирменный цвет логотипа — #104191, синий. ⚠ Решено 21.09: акцент сайта
   переведён с зелёного на этот синий. Причина простая и её видно на первом
   экране — синий знак над зелёными кнопками читался как две разные страницы,
   сшитые вместе. Зелёный пришёл из нарисованного макета, то есть от генератора,
   а синий — от настоящего логотипа клиента, поэтому спор решается в его пользу.
   Зелёный остался в переключателе прототипа, чтобы можно было сравнить.
   -------------------------------------------------------------------------- */

.brand img { height: 2rem; width: auto; display: block; }
.footer-brand img { height: 2.25rem; width: auto; }
.footer-brand--stacked { display: block; }


/* строка акцента в переключателе: кружок цвета + две строки подписи */
.pe-switch__row[data-kind="accent"] button { align-items: flex-start; }
.pe-switch__row[data-kind="accent"] button span { font-size: 11.5px; color: var(--pe-muted); line-height: 1.3; }
.pe-switch__row[data-kind="accent"] button b { color: var(--pe-ink); font-size: 13px; }
.pe-switch__row[data-kind="accent"] button i { margin-top: 2px; flex: none; }

/* ---- видео в шапке главной (21.09.2026) -----------------------------------
   Ведёт себя ровно как фотография: те же размеры, тот же кадр, та же маска
   на левом крае. Плакат — кадр из самого ролика, поэтому подмены не видно.
   -------------------------------------------------------------------------- */

.hero__media video {
  width: 100%;
  height: 100%;
  min-height: 16rem;
  object-fit: cover;
  object-position: 55% center;
  display: block;
  background: var(--pe-sand);
}

@media (min-width: 900px) {
  .hero__media video { min-height: 26rem; }
  .hero:not(.hero--inner) .hero__media video {
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 16%);
            mask-image: linear-gradient(to right, transparent 0, #000 16%);
  }
}


/* ---- лента доверия (21.09.2026) -------------------------------------------

   Это замена растровой полосы со старого сайта. Там значки были картинкой, и
   в ней, среди прочего, ехала опечатка «GMP SERTIFIED». Здесь всё текстом:
   поиск и ИИ его читают, человек может скопировать номер и проверить, а при
   переводе на семь языков меняется строка, а не семь комплектов картинок.

   Движение бесконечное за счёт двух одинаковых рядов: как только первый уезжает
   ровно на свою ширину, кадр совпадает сам с собой и склейки не видно.
   -------------------------------------------------------------------------- */

.tstrip {
  background: var(--pe-sand);
  color: var(--pe-muted);
  border-block: 1px solid var(--pe-hair);
  overflow: hidden;
  padding: clamp(14px, 1.6vw, 20px) 0;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}

.tstrip__track {
  display: flex;
  width: max-content;
  animation: tstrip-run 46s linear infinite;
}
.tstrip:hover .tstrip__track { animation-play-state: paused; }

.tstrip__row {
  display: flex;
  align-items: center;
  gap: clamp(28px, 4vw, 64px);
  padding-right: clamp(28px, 4vw, 64px);
}

.tstrip__item {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  white-space: nowrap;
  opacity: .92;
  transition: opacity var(--dur) var(--ease);
}
.tstrip__item:hover { opacity: 1; }

.tstrip__icon { width: 26px; height: 26px; flex: none; color: var(--pe-accent); opacity: 1; }

.tstrip__text { display: flex; flex-direction: column; line-height: 1.25; }
.tstrip__text b {
  color: var(--pe-ink);
  font-weight: 650;
  font-size: .875rem;
  letter-spacing: -.004em;
}
.tstrip__text span {
  font-size: .6875rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--pe-muted);
}

@keyframes tstrip-run {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

/* просили меньше движения — лента останавливается и переносится по строкам */
@media (prefers-reduced-motion: reduce) {
  .tstrip__track { animation: none; width: 100%; }
  .tstrip__row:last-child { display: none; }
  .tstrip__row {
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px 32px;
    padding: 0 var(--pe-gutter);
  }
}


/* ---- семь шагов: нумерованная дорожка (21.09.2026) -------------------------

   Было семь одинаковых серых пилюль со стрелками. Из них не читалось ни что
   происходит на шаге, ни почему два помечены. Стало: номер, название и строка
   о том, что реально делается, а два шага с подписью клиента названы словами.
   -------------------------------------------------------------------------- */

.flow {
  list-style: none;
  margin: var(--s-6) 0 0;
  padding: 0;
  display: grid;
  gap: var(--s-4);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  counter-reset: flow;
}

@media (min-width: 720px)  { .flow { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .flow { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.flow__item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: var(--s-4) var(--s-4) var(--s-5);
  border-radius: var(--pe-r);
  background: var(--pe-card);
  box-shadow: var(--pe-shadow-chip);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.flow__item:hover { transform: translateY(-2px); box-shadow: var(--pe-shadow); }

.flow__num {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--pe-sand);
  color: var(--pe-ink);
  font-size: .8125rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.flow__name {
  font-weight: 650;
  font-size: .9375rem;
  line-height: 1.25;
  letter-spacing: -.01em;
  color: var(--pe-ink);
}

.flow__note {
  font-size: .75rem;
  line-height: 1.45;
  color: var(--pe-muted);
}

/* два шага, которые заканчиваются подписью клиента */
.flow__item--sign { background: var(--pe-accent); }
.flow__item--sign .flow__num { background: rgba(255, 255, 255, .18); color: #fff; }
.flow__item--sign .flow__name { color: #fff; }
.flow__item--sign .flow__note { color: rgba(255, 255, 255, .78); }

.flow__sign {
  align-self: flex-start;
  font-size: .5625rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(255, 255, 255, .2);
  border-radius: var(--pe-r-pill);
  padding: 3px 8px;
}

@media (prefers-reduced-motion: reduce) {
  .flow__item, .flow__item:hover { transition: none; transform: none; }
}

/* ---- лента доверия стала крупнее (21.09.2026) ------------------------------
   Была набрана мелко и стояла над подвалом. Подняли под первый экран, а раз
   она теперь на виду — её и читать должно быть легко.
   -------------------------------------------------------------------------- */

.tstrip { padding: clamp(18px, 2vw, 26px) 0; }
.tstrip__row { gap: clamp(34px, 4.5vw, 76px); padding-right: clamp(34px, 4.5vw, 76px); }
.tstrip__item { gap: 14px; }
.tstrip__icon { width: 32px; height: 32px; }
.tstrip__text b { font-size: 1rem; }
.tstrip__text span { font-size: .75rem; }

/* шапка блока процесса: заголовок слева, кнопка справа, дорожка под ними */
.flow-head { display: grid; gap: var(--s-4); }
.flow-head .lead { max-width: 46em; }
@media (min-width: 900px) {
  .flow-head {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    column-gap: var(--s-8);
  }
  .flow-head .kicker, .flow-head .h-section { grid-column: 1; }
  .flow-head .lead { grid-column: 1; }
  .flow-head .btn-row { grid-column: 2; grid-row: 2 / 4; justify-self: end; }
}


/* ---- шапка главной во всю ширину (21.09.2026) ------------------------------
   Видео фоном на всю ширину, текст поверх слева, затемнение только под текстом.
   Внутренние страницы (.hero--inner) остаются двухколоночными.
   -------------------------------------------------------------------------- */

@media (min-width: 900px) {
  .hero:not(.hero--inner) {
    position: relative;
    isolation: isolate;
    background: #3B4A47;
  }

  .hero:not(.hero--inner) .hero__grid {
    grid-template-columns: 1fr;
    min-height: min(76vh, 720px);
    align-items: center;
  }

  .hero:not(.hero--inner) .hero__media {
    position: absolute;
    inset: 0;
    z-index: -2;
    margin: 0;
  }
  .hero:not(.hero--inner) .hero__media video,
  .hero:not(.hero--inner) .hero__media img {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
    object-position: 62% center;
    -webkit-mask-image: none;
            mask-image: none;
  }

  /* затемнение только слева, чтобы кадр остался виден справа */
  .hero:not(.hero--inner)::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
      linear-gradient(to right, rgba(59, 74, 71, .88) 0%, rgba(59, 74, 71, .72) 34%,
                                rgba(59, 74, 71, .28) 62%, rgba(59, 74, 71, .06) 100%);
  }

  .hero:not(.hero--inner) .hero__text {
    max-width: 44rem;
    padding: clamp(4rem, 8vw, 7rem) var(--pe-gutter);
  }

  .hero:not(.hero--inner) .h-hero,
  .hero:not(.hero--inner) .lead,
  .hero:not(.hero--inner) .lead strong { color: #FFFFFF; }
  .hero:not(.hero--inner) .kicker { color: rgba(255, 255, 255, .72); }
  .hero:not(.hero--inner) .metaline { color: rgba(255, 255, 255, .66); }
  .hero:not(.hero--inner) .metaline span + span::before { opacity: .4; }

  /* вторая кнопка была тёмной по светлому — на видео её не видно */
  .hero:not(.hero--inner) .btn--ghost {
    color: #FFFFFF;
    border-color: rgba(255, 255, 255, .55);
    background: rgba(255, 255, 255, .06);
  }
  .hero:not(.hero--inner) .btn--ghost:hover {
    background: rgba(255, 255, 255, .14);
    border-color: rgba(255, 255, 255, .8);
  }

  /* подпись на кадре уезжает вправо, к самому кадру */
  .hero:not(.hero--inner) .hero__media figcaption {
    left: auto;
    right: clamp(1rem, 2vw, 1.6rem);
    bottom: clamp(1.25rem, 2.5vw, 2rem);
  }
}


/* ---- карточки форматов без фотографий (21.09.2026) -------------------------
   Восемь однотипных кадров давали рябь и прятали название. Оставлен текст:
   формат, из чего он и своя минимальная партия — последнего нет ни у кого.
   -------------------------------------------------------------------------- */

.grid--formats .fcard {
  grid-template-rows: auto 1fr auto;
  gap: var(--s-3);
  padding: var(--s-5) var(--s-5) var(--s-4);
  border: 1px solid var(--pe-hair);
  box-shadow: none;
  min-height: 9.5rem;
}
.grid--formats .fcard:hover {
  box-shadow: var(--pe-shadow);
  border-color: transparent;
  transform: translateY(-2px);
}
.grid--formats .fcard__name {
  padding-inline: 0;
  font-size: 1.125rem;
  letter-spacing: -.015em;
}
.grid--formats .fcard__meta {
  padding-inline: 0;
  align-items: center;
  font-size: .8125rem;
}
.grid--formats .fcard__meta span:last-child {
  color: var(--pe-accent);
  font-size: 1rem;
  transition: transform var(--dur) var(--ease);
}
.grid--formats .fcard:hover .fcard__meta span:last-child { transform: translateX(3px); }

@media (prefers-reduced-motion: reduce) {
  .grid--formats .fcard, .grid--formats .fcard:hover,
  .grid--formats .fcard__meta span:last-child { transition: none; transform: none; }
}


/* ---- блок заявки (21.09.2026) ----------------------------------------------
   Слева контакты и обещание, справа поля. Поля те же, что мы просим в тексте:
   формат, актив и доза, количество на первую партию — чтобы при переезде они
   легли один в один на поля WPForms.
   -------------------------------------------------------------------------- */

.quote__grid { display: grid; gap: var(--s-8); }
@media (min-width: 900px) {
  .quote__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: var(--s-9); align-items: start; }
}

.quote__contacts { margin: var(--s-7) 0 0; display: grid; gap: var(--s-4); }
.quote__contacts div { display: grid; gap: 2px; }
.quote__contacts dt {
  font-size: .6875rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--pe-muted);
}
.quote__contacts dd { margin: 0; color: var(--pe-body); font-size: .9375rem; line-height: 1.5; }
.quote__contacts a { color: var(--pe-accent); text-decoration: none; font-weight: 600; }
.quote__contacts a:hover { text-decoration: underline; }

.quote__form {
  display: grid;
  gap: var(--s-4);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  background: var(--pe-card);
  border: 1px solid var(--pe-hair);
  border-radius: var(--pe-r-lift);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}
.field { display: grid; gap: 6px; grid-column: 1 / -1; }
@media (min-width: 560px) { .field--half { grid-column: span 1; } }

.field label, .consent {
  font-size: .8125rem; font-weight: 600; color: var(--pe-ink); line-height: 1.4;
}
.field__opt { font-weight: 400; color: var(--pe-muted); }

.field input, .field select, .field textarea {
  font: inherit;
  font-size: .9375rem;
  color: var(--pe-body);
  background: var(--pe-page);
  border: 1px solid var(--pe-hair);
  border-radius: var(--pe-r-chip);
  padding: 11px 13px;
  width: 100%;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field textarea { resize: vertical; min-height: 6.5rem; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--pe-accent);
  box-shadow: 0 0 0 3px rgba(60, 106, 94, .2);
}

.consent {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  font-weight: 400;
  font-size: .8125rem;
  color: var(--pe-body);
  line-height: 1.45;
}
.consent input { margin-top: 2px; width: 16px; height: 16px; accent-color: var(--pe-accent); }
.consent a { color: var(--pe-accent); }

.quote__form .btn { grid-column: 1 / -1; justify-self: start; }
.quote__note {
  grid-column: 1 / -1;
  margin: 0;
  font-size: .8125rem;
  line-height: 1.5;
  color: var(--pe-muted);
}


/* ---- блок по стадиям на фотографии (21.09.2026) ----------------------------
   Кадр настоящего цеха под плотным зелёным слоем: фотография читается, текст
   поверх остаётся контрастным. Средняя карточка выделена, но без ярлыка
   «самый популярный» — такого факта у нас нет.
   -------------------------------------------------------------------------- */

.stages {
  position: relative;
  isolation: isolate;
  color: #fff;
  background:
    linear-gradient(rgba(59, 74, 71, .86), rgba(59, 74, 71, .92)),
    url("https://www.pharmaeurope.eu/wp-content/uploads/pe/photos/plant-coating-pan-cores-1600.jpg") center / cover no-repeat;
}
.stages__head { max-width: 46rem; margin-bottom: var(--s-8); }
.stages .kicker { color: rgba(255, 255, 255, .66); }
.stages .h-section, .stages .lead { color: #fff; }
.stages .lead { color: rgba(255, 255, 255, .84); }

.stages__grid { display: grid; gap: var(--s-5); }
@media (min-width: 880px) { .stages__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.stage {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  background: var(--pe-page);
  color: var(--pe-body);
  border-radius: var(--pe-r-lift);
  padding: clamp(1.5rem, 2.4vw, 2rem);
  box-shadow: var(--pe-shadow);
}
.stage h3 { font-size: 1.25rem; letter-spacing: -.015em; margin: 0; }
.stage__who { color: var(--pe-muted); font-size: .875rem; margin: 0; }
.stage__moq {
  margin: var(--s-2) 0 0;
  padding-top: var(--s-3);
  border-top: 1px solid var(--pe-hair);
  font-size: .9375rem;
}
.stage__moq strong { color: var(--pe-accent); }
.stage__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; flex: 1; }
.stage__list li {
  position: relative;
  padding-left: 26px;
  font-size: .875rem;
  line-height: 1.5;
  color: var(--pe-body);
}
.stage__list li::before {
  content: "";
  position: absolute;
  left: 2px; top: .45em;
  width: 13px; height: 7px;
  border-left: 2px solid var(--pe-accent);
  border-bottom: 2px solid var(--pe-accent);
  transform: rotate(-45deg);
}
.stage .btn { align-self: start; margin-top: var(--s-2); }
.stage--mid { outline: 2px solid var(--pe-accent); outline-offset: -2px; }

/* ---- блок «что вы получаете»: картинка слева, факты справа ------------------ */

.duo--start { align-items: center; }
.duo--start .figure { margin: 0; }
.ticks { list-style: none; margin: var(--s-5) 0 var(--s-6); padding: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 28px; line-height: 1.5; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 2px; top: .42em;
  width: 14px; height: 8px;
  border-left: 2.5px solid var(--pe-accent);
  border-bottom: 2.5px solid var(--pe-accent);
  transform: rotate(-45deg);
}

/* ---- подвал отделён цветом (21.09.2026) ------------------------------------
   Был в цвет страницы и сливался. Тёмный, как у конкурента: страница
   заканчивается, а не растворяется.
   -------------------------------------------------------------------------- */

.site-footer {
  background: #3B4A47;
  color: rgba(255, 255, 255, .72);
  border-top: 0;
}
.site-footer a { color: rgba(255, 255, 255, .82); }
.site-footer a:hover { color: #fff; }
.site-footer h3, .site-footer b, .site-footer strong { color: #fff; }
.site-footer .footer-col > span:first-child,
.site-footer .footer-grid > div > span:first-child { color: rgba(255, 255, 255, .5); }
.site-footer img { filter: brightness(0) invert(1); opacity: .92; }
.site-footer hr, .site-footer .footer-bottom { border-color: rgba(255, 255, 255, .14); }

/* ---- дорожка шагов: добавлена линия и фон, было слишком пусто --------------- */

.flow { position: relative; }



/* ---- дорожка шагов на кадре цеха (21.09.2026, вечер) -----------------------

   Гарри: «под каждый шаг нужна картинка в бекграунде, строгие картинки».
   Картинка одна и настоящая — кадр с линии капсулирования, — а шаги лежат
   поверх неё стеклянными плитками. Семь разных кадров поставить нечем: в
   съёмке клиента три сцены, и все три про производство. Подробности — в
   шапке скрипта, который это поставил.

   Две карточки с подписью заказчика остаются сплошным акцентом: на стекле
   они и должны выделяться, потому что это единственные два места, где
   останавливается всё.
   -------------------------------------------------------------------------- */

.band--flow {
  position: relative;
  isolation: isolate;
  color: #fff;
  background: #44544F;
}
.band--flow .kicker { color: rgba(255, 255, 255, .66); }
.band--flow .h-section, .band--flow .lead strong { color: #fff; }
.band--flow .lead { color: rgba(255, 255, 255, .84); }
.band--flow .table-note { color: rgba(255, 255, 255, .7); }

.band--flow .btn--ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, .5);
  background: rgba(255, 255, 255, .06);
}
.band--flow .btn--ghost:hover {
  background: rgba(255, 255, 255, .14);
  border-color: rgba(255, 255, 255, .8);
}

.band--flow .flow__item {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .16);
  -webkit-backdrop-filter: blur(10px) saturate(150%);
          backdrop-filter: blur(10px) saturate(150%);
  box-shadow: none;
}
.band--flow .flow__item:hover {
  background: rgba(255, 255, 255, .11);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .28);
}
.band--flow .flow__num { background: rgba(255, 255, 255, .16); color: #fff; }
.band--flow .flow__name { color: #fff; }
.band--flow .flow__note { color: rgba(255, 255, 255, .74); }

.band--flow .flow__item--sign {
  background: var(--pe-accent);
  border-color: rgba(255, 255, 255, .22);
}
.band--flow .flow__item--sign:hover { background: var(--pe-accent); }
.band--flow .flow__item--sign .flow__num { background: rgba(255, 255, 255, .2); }
.band--flow .flow__item--sign .flow__note { color: rgba(255, 255, 255, .82); }

@media (min-width: 1100px) {
  .band--flow .flow::before { background: rgba(255, 255, 255, .2); }
}

@media (prefers-reduced-transparency: reduce) {
  .band--flow .flow__item {
    background: rgba(16, 32, 26, .92);
    -webkit-backdrop-filter: none;
            backdrop-filter: none;
  }
}


/* ---- картинка под каждым шагом (21.09.2026, вечер) -------------------------
   Семь кадров сняты одним светом и одной палитрой, поэтому ряд читается как
   одна серия, а не как семь разных картинок. Текст лежит на плотной растяжке:
   внизу почти непрозрачной, вверху почти чистой — предмет виден, буквы держат
   контраст. Два шага с подписью заказчика получают тот же кадр, но зелёную
   растяжку и полосу акцента сверху: это единственные места, где всё встаёт.
   -------------------------------------------------------------------------- */

.band--flow .flow__item {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: clamp(11rem, 15vw, 13rem);
  background: #2F3C39;
}
.flow__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform var(--dur-slow) var(--ease);
}
.band--flow .flow__item::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top,
              rgba(28, 38, 36, .93) 0%,
              rgba(28, 38, 36, .80) 20%,
              rgba(28, 38, 36, .34) 46%,
              rgba(28, 38, 36, 0) 80%);
}
.band--flow .flow__item > .flow__num,
.band--flow .flow__item > .flow__name,
.band--flow .flow__item > .flow__note,
.band--flow .flow__item > .flow__sign { position: relative; z-index: 2; }

.band--flow .flow__item:hover .flow__media { transform: scale(1.05); }

.band--flow .flow__item--sign {
  border-color: rgba(166, 196, 188, .6);
  box-shadow: inset 0 0 0 1px rgba(166, 196, 188, .36);
}
.band--flow .flow__item--sign .flow__sign {
  background: #A6C4BC;
  color: #2F3C39;
  font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
  .flow__media, .band--flow .flow__item:hover .flow__media { transition: none; transform: none; }
}


/* 2. номер остаётся наверху, название с пояснением уходит вниз: между ними
   открывается кадр. Карточка — flex-колонка, поэтому работает margin-top:auto
   у названия, а не выравнивание содержимого. */
.band--flow .flow__item { padding: var(--s-4); }
.band--flow .flow__name { margin-top: auto; }


/* ---- каталог разделов (21.09.2026) -----------------------------------------
   Три оси в ряд: формат, тип покупателя, что приходит вместе с заказом.
   Устроен как подвал сайта, чтобы не приносить на страницу новый рисунок.
   -------------------------------------------------------------------------- */

.dir { display: grid; gap: var(--s-8); }
@media (min-width: 760px) { .dir { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-7); } }

.dir__h { margin: 0 0 var(--s-4); font-size: .6875rem; font-weight: 700; letter-spacing: .12em;
          text-transform: uppercase; color: var(--pe-muted); }
.dir__h a { color: inherit; text-decoration: none; }
.dir__h a:hover { color: var(--pe-accent); }

.dir__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.dir__list a {
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid var(--pe-hair);
  color: var(--pe-ink);
  font-size: 1.0625rem;
  letter-spacing: -.012em;
  text-decoration: none;
  transition: color var(--dur) var(--ease), padding-left var(--dur) var(--ease);
}
.dir__list a:hover { color: var(--pe-accent); padding-left: 6px; }

/* кнопки на странице с выравниванием по центру */
.center .btn-row { justify-content: center; }

/* подпись на кадре шапки: на широком экране её перекрывала полоса цифр */
@media (min-width: 900px) {
  .hero:not(.hero--inner) .hero__media figcaption { display: none; }
}

/* кнопка запуска ролика: появляется только если браузер отклонил автозапуск */
.hero__play {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px 12px 14px;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: var(--pe-r-pill);
  background: rgba(59, 74, 71, .62);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  color: #fff;
  font: inherit;
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--dur) var(--ease), transform var(--dur-press) var(--ease);
}
.hero__play svg { width: 18px; height: 18px; fill: currentColor; }
.hero__play:hover { background: rgba(59, 74, 71, .82); }
.hero__play:active { transform: translate(-50%, -50%) scale(.97); }
@media (min-width: 900px) {
  .hero:not(.hero--inner) .hero__play { left: auto; right: 12%; }
}

/* кадр в блоке «почему бренды выбирают нас»: левая колонка была пустой ниже
   заголовка, а правая шла плотным текстом — от этого блок читался как таблица */
.figure--person { margin: var(--s-6) 0 0; }
.figure--person img { border-radius: var(--pe-r-lift); }


/* ---- знаки форматов (21.09.2026, вечер) -----------------------------------
   Одна сетка на восемь фигур: квадрат 24, линия 1.6. Красятся цветом акцента,
   поэтому смена палитры перекрашивает весь набор разом.
   -------------------------------------------------------------------------- */

.grid--formats .fcard { grid-template-rows: auto auto 1fr auto; }
.fcard__icon {
  width: 38px;
  height: 38px;
  color: var(--pe-accent);
  margin-bottom: var(--s-1);
  transition: transform var(--dur) var(--ease);
}
.grid--formats .fcard:hover .fcard__icon { transform: translateY(-2px); }

@media (prefers-reduced-motion: reduce) {
  .fcard__icon, .grid--formats .fcard:hover .fcard__icon { transition: none; transform: none; }
}


/* ---- текстовый блок страниц «кому мы производим» --------------------------- */
.prose { max-width: 46em; }
.prose .h-section { font-size: clamp(1.35rem, 2.1vw, 1.75rem); margin-top: var(--s-8); }
.prose .h-section:first-child { margin-top: 0; }
.prose p { margin: var(--s-4) 0 0; }

/* Na kadre s etiketkami belyj list lezhit rovno tam, gde stoit nazvanie shaga,
   i belye bukvy na njom propadajut. Sdvigaem kadr vverh: v nizhnjuju tret
   prihodit tjomnyj stol, i nadpis snova chitaetsja. */
.flow__media[src*="step-4-label"] { object-position: 50% 50%; }
.flow__media[src*="step-1-enquiry"] { object-position: 50% 50%; }

/* ---- тёмные полосы убраны (21.09.2026, вечер) ------------------------------
   Гарри отметил галкой светлую полосу и крестом тёмную. Тёмный #3B4A47 уходит
   из трёх мест: блок «кому подходит», дорожка шагов и подвал.

   Тёмное на странице остаётся ровно там, где оно не заливка, а содержание:
   кадр в шапке и фотографии внутри карточек шагов. На светлой полосе они
   работают даже лучше — теперь контраст держат они, а не фон.

   Подвал не возвращается в цвет страницы: он был таким до 21.09 и растворялся,
   страница не заканчивалась. Плотная мята отделяет его, не утяжеляя.
   -------------------------------------------------------------------------- */

.stages { background: var(--pe-beige); color: var(--pe-body); }
.stages .kicker { color: var(--pe-muted); }
.stages .h-section { color: var(--pe-ink); }
.stages .lead { color: var(--pe-body); }
.stage { border: 1px solid var(--pe-hair); }

.band--flow { background: var(--pe-sand); color: var(--pe-body); }
.band--flow .kicker { color: var(--pe-muted); }
.band--flow .h-section, .band--flow .lead strong { color: var(--pe-ink); }
.band--flow .lead { color: var(--pe-body); }
.band--flow .table-note { color: var(--pe-muted); }
.band--flow .btn--ghost {
  color: var(--pe-ink);
  border-color: rgba(28, 38, 36, .22);
  background: transparent;
}
.band--flow .btn--ghost:hover { background: rgba(255, 255, 255, .6); border-color: var(--pe-ink); }
.band--flow .flow__item { border-color: rgba(28, 38, 36, .12); box-shadow: var(--pe-shadow-chip); }
.band--flow .flow__item:hover { box-shadow: var(--pe-shadow); }

.site-footer {
  /* #F0F4F7 — Гарри прислал образец, это наша же светлая полоса. Подвал был
     в цвет блока заявки над ним и сливался с ним в одно пятно. */
  background: var(--pe-beige);
  color: var(--pe-muted);
  border-top: 1px solid var(--pe-hair);
}
.site-footer a { color: var(--pe-body); }
.site-footer a:hover { color: var(--pe-accent); }
.site-footer h3, .site-footer b, .site-footer strong { color: var(--pe-ink); }
.site-footer img { filter: none; opacity: 1; }
.site-footer hr, .site-footer .footer-bottom { border-color: var(--pe-hair); }
.site-footer .footer-col > span:first-child,
.site-footer .footer-grid > div > span:first-child { color: var(--pe-muted); }

/* ---- широкая фотография внутри полосы (21.09.2026, вечер) ------------------
   Гарри: «фото опять не ставишь нормально, а затемняешь фоном». Верно: снимок
   под заливкой это фактура, а не фотография — рассмотреть на нём нечего.
   Здесь кадр стоит как кадр, в полную силу, со своей подписью.
   -------------------------------------------------------------------------- */

.figure--wide { margin: var(--s-8) 0 0; }
.figure--wide img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--pe-r-lift);
  box-shadow: var(--pe-shadow);
}
.figure--wide figcaption { margin-top: var(--s-3); }


/* ---- кадр без заливки, текст под ним (21.09.2026, вечер) -------------------
   Было: снимок на всю карточку и плотная растяжка поверх, чтобы читался белый
   текст. Стало: снимок сверху в полную силу, текст ниже на плашке. Заливка
   больше не нужна ни в одном из двух блоков.
   -------------------------------------------------------------------------- */

/* --- семь шагов --- */
.band--flow .flow__item {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  align-content: start;
  gap: 0;
  padding: 0;
  overflow: hidden;
  min-height: 0;
  background: var(--pe-card);
  border: 1px solid var(--pe-hair);
  -webkit-backdrop-filter: none;
          backdrop-filter: none;
}
.band--flow .flow__item::after { content: none; }
.flow__media {
  position: static;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
.band--flow .flow__item > .flow__num {
  position: absolute;
  top: 10px; left: 10px;
  z-index: 2;
  background: rgba(255, 255, 255, .92);
  color: var(--pe-ink);
  box-shadow: 0 1px 3px rgba(28, 38, 36, .18);
}
.band--flow .flow__item > .flow__name {
  margin: var(--s-4) var(--s-4) 0;
  color: var(--pe-ink);
}
.band--flow .flow__item > .flow__note {
  margin: 6px var(--s-4) var(--s-5);
  color: var(--pe-muted);
}
.band--flow .flow__sign {
  margin: 8px var(--s-4) 0;
  align-self: start;
  justify-self: start;
  background: var(--pe-accent);
  color: #fff;
}
.band--flow .flow__item--sign {
  border-color: var(--pe-accent);
  box-shadow: inset 0 0 0 1px var(--pe-accent);
}
.band--flow .flow__item:hover .flow__media { transform: none; }

/* --- четыре карточки с цифрами --- */
.stat {
  display: grid;
  grid-template-rows: auto auto;
  align-content: start;
  padding: 0;
  overflow: hidden;
  min-height: 0;
  background: var(--pe-card);
  box-shadow: var(--pe-shadow);
}
.stat::after { content: none; }
.stat__media {
  position: static;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}
.stat > span { padding: var(--s-4); }
.stat__value { color: var(--pe-ink); }
.stat__label { color: var(--pe-muted); }
.stat:hover .stat__media { transform: none; }

/* ---- кадр фоном блока, текст на плашке (21.09.2026, вечер) -----------------
   Гарри: «можно, чтобы фотка была фоном блока, а не вставкой». Можно — и без
   затемнения, если текст не лежит на снимке, а стоит на своей белой плашке.
   Тогда кадр показывается как есть, в полную силу, а читаемость держит
   плашка, а не заливка поверх фотографии.
   -------------------------------------------------------------------------- */

.band--photo {
  position: relative;
  isolation: isolate;
  background: url("https://www.pharmaeurope.eu/wp-content/uploads/pe/photos/capsule-inspection-line-1600.jpg") center / cover no-repeat;
  padding-block: clamp(3rem, 6vw, 6rem);
}
.band--photo > .wrap > .split {
  background: rgba(255, 255, 255, .95);
  -webkit-backdrop-filter: blur(2px);
          backdrop-filter: blur(2px);
  border-radius: var(--pe-r-lift);
  padding: clamp(1.5rem, 3.4vw, 3rem);
  box-shadow: var(--pe-shadow-lift);
}
@media (max-width: 720px) {
  .band--photo { background-position: 60% center; }
}

/* ---- второй блок на кадре: полка фоном (21.09.2026, вечер) -----------------
   Тот же приём, что и у блока про производство. Разница одна: там на плашке
   стоял текст в две колонки, здесь — заголовок и три карточки. Карточки
   пришлось увести со сплошного белого на светлую полосу, иначе на белой
   плашке они пропадают: белое на белом не карточка, а просто текст.
   -------------------------------------------------------------------------- */

.band--shelf { background-image: url("https://www.pharmaeurope.eu/wp-content/uploads/pe/photos/shelf-1600.jpg"); }
.band--shelf > .wrap {
  background: rgba(255, 255, 255, .95);
  -webkit-backdrop-filter: blur(2px);
          backdrop-filter: blur(2px);
  border-radius: var(--pe-r-lift);
  padding: clamp(1.5rem, 3.4vw, 3rem);
  box-shadow: var(--pe-shadow-lift);
  max-width: calc(var(--pe-max) - 4rem);
}
.band--shelf .grid--3 > * {
  background: var(--pe-beige);
  border: 1px solid var(--pe-hair);
  box-shadow: none;
}

/* звёздочка обязательного поля: видна, но не кричит */
.req { color: var(--pe-accent); font-weight: 700; }
.req-note {
  grid-column: 1 / -1;
  margin: 0;
  font-size: .75rem;
  color: var(--pe-muted);
}
.consent .req { margin-right: 2px; }


/* ---- меню: выпадающие списки и мобильная панель (21.09.2026) ---------------
   Раньше в шапке лежали шесть плоских ссылок, а страниц стало двадцать шесть:
   до большинства можно было добраться только из текста. И ниже 900 пикселей
   меню пряталось совсем — с телефона посетитель видел логотип и кнопку заявки,
   и уйти ему было некуда.
   -------------------------------------------------------------------------- */

.site-header__inner { position: relative; }

.nav__group { position: relative; }

/* полоска-мостик под пунктом: без неё список закрывается, пока мышь идёт к нему */
.nav__group::after {
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 10px;
}

.nav__top { display: inline-flex; align-items: center; gap: 5px; }
.nav__caret { flex: none; transition: transform .18s ease; }

.nav__sub {
  position: absolute;
  top: calc(100% + 8px);
  left: -8px;
  min-width: 252px;
  display: grid;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--pe-hair);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(28, 38, 36, .14);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
  z-index: 60;
}
.nav__group:hover .nav__sub,
.nav__group:focus-within .nav__sub { opacity: 1; visibility: visible; transform: none; }
.nav__group:hover .nav__caret,
.nav__group:focus-within .nav__caret { transform: rotate(180deg); }

.nav__sub a { white-space: nowrap; }
.nav [aria-current="page"] { color: var(--pe-accent); }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border: 1px solid var(--pe-hair);
  border-radius: 12px;
  background: transparent;
  color: var(--pe-ink);
  cursor: pointer;
}
.nav-toggle:hover { background: rgba(20, 32, 28, .05); }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }

  .nav {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--pe-hair);
    border-radius: 16px;
    box-shadow: 0 22px 48px rgba(28, 38, 36, .16);
    max-height: min(74vh, 620px);
    overflow: auto;
    z-index: 70;
  }
  .site-header[data-nav="open"] .nav { display: flex; }

  .nav__group { position: static; }
  .nav__group::after { content: none; }
  .nav__top { font-weight: 600; }
  .nav__caret { display: none; }

  .nav__sub {
    position: static;
    opacity: 1; visibility: visible; transform: none;
    min-width: 0;
    padding: 0 0 8px 14px;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .nav__sub a { white-space: normal; }
}

/* ---- четыре сертификата строками, а не одним предложением (21.09.2026) -----
   Раньше номера и сроки шли сплошным текстом, где жирное чередовалось с
   обычным через каждые два слова: читалось как рябь. Строка на сертификат
   читается глазом и вынимается машиной.
   -------------------------------------------------------------------------- */

.cert-list {
  display: grid;
  margin: var(--s-4) 0 0;
  border-top: 1px solid var(--pe-hair);
}
.cert-list > div {
  display: grid;
  grid-template-columns: 9.25rem 1fr;
  gap: 12px;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid var(--pe-hair);
}
.cert-list dt {
  font-size: .9375rem;
  font-weight: 600;
  color: var(--pe-ink);
  letter-spacing: -0.004em;
}
.cert-list dd {
  margin: 0;
  font-size: .9375rem;
  color: var(--pe-muted);
}
.cert-foot {
  margin: var(--s-3) 0 0;
  font-size: .8125rem;
  line-height: 1.5;
  color: var(--pe-muted);
}

@media (max-width: 560px) {
  .cert-list > div { grid-template-columns: 1fr; gap: 2px; }
}


/* ---- блог в оформлении сайта (21.09.2026) ---------------------------------
   Тридцать одна статья оставалась в старой теме: синие заголовки, чужой шрифт,
   старое меню. Это самое сильное, что есть на сайте для цитирования, и оно
   выглядело как другая компания.
   -------------------------------------------------------------------------- */

.bgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
  gap: clamp(1.25rem, 2.2vw, 1.75rem);
}
.bgrid--three { grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }

.bcard {
  display: grid;
  grid-template-rows: auto 1fr;
  align-content: start;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background: var(--pe-card, #fff);
  border: 1px solid var(--pe-hair);
  border-radius: 16px;
  transition: box-shadow .18s ease, transform .18s ease;
}
.bcard:hover {
  box-shadow: 0 14px 34px rgba(28, 38, 36, .12);
  transform: translateY(-2px);
}
.bcard__media {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.bcard__body {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: var(--s-4);
}
.bcard__name {
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.012em;
  color: var(--pe-ink);
}
.bcard__excerpt {
  font-size: .9375rem;
  line-height: 1.55;
  color: var(--pe-muted);
}
.bcard__date {
  font-size: .8125rem;
  color: var(--pe-muted);
  opacity: .85;
}

/* --- одна статья --- */

.wrap--article { max-width: 46rem; }

.crumbs {
  margin: 0 0 var(--s-3);
  font-size: .8125rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--pe-muted);
}
.crumbs a { color: var(--pe-accent); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs span { margin: 0 .4em; opacity: .5; }

.h-article {
  margin: 0;
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--pe-ink);
}

.prose { color: var(--pe-body); }
.prose > * + * { margin-top: var(--s-4); }
.prose p { font-size: 1.0625rem; line-height: 1.7; }
.prose h2 {
  margin-top: var(--s-7);
  font-size: clamp(1.4rem, 2.6vw, 1.85rem);
  line-height: 1.2;
  letter-spacing: -0.018em;
  color: var(--pe-ink);
}
.prose h3 {
  margin-top: var(--s-6);
  font-size: 1.1875rem;
  line-height: 1.3;
  color: var(--pe-ink);
}
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li + li { margin-top: 6px; }
.prose li { font-size: 1.0625rem; line-height: 1.65; }
.prose a { color: var(--pe-accent); }
.prose strong { color: var(--pe-ink); }
.prose img { max-width: 100%; height: auto; border-radius: 14px; }
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9375rem;
}
.prose th, .prose td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--pe-hair);
  vertical-align: top;
}
.prose th { color: var(--pe-ink); font-weight: 600; }
.prose blockquote {
  margin-left: 0;
  padding-left: var(--s-4);
  border-left: 2px solid var(--pe-accent);
  color: var(--pe-muted);
}

/* ---- телефон: логотип и баннер куки (21.09.2026) ---------------------------
   Логотип сплющивался на каждой странице: 83×32 при настоящей пропорции 6:1.
   Он гибкий элемент шапки, высота у него задана жёстко, а места в 390 пикселях
   на логотип, бургер и кнопку заявки не хватает — поэтому сжималась ширина,
   а высота держалась. Запрещаем сжимать его и снимаем ограничение ширины,
   а место освобождаем за счёт кнопки.
   -------------------------------------------------------------------------- */

.brand { flex: 0 0 auto; }
.brand img { flex: none; max-width: none; }

@media (max-width: 900px) {
  .site-header__inner { gap: 10px; }
  .brand img { height: 1.75rem; width: auto; }
  .site-header .btn--accent {
    padding: 10px 14px;
    font-size: .9375rem;
    white-space: nowrap;
  }
}

@media (max-width: 400px) {
  .brand img { height: 1.5rem; }
  .site-header .btn--accent { padding: 9px 12px; font-size: .8125rem; }
}

/* Окно настроек куки уходит далеко за края экрана — от минус 195 до 650
   пикселей при ширине 390. Плагин чужой, поэтому не переписываем его, а
   удерживаем в границах окна. */
.cky-modal, .cky-preference-center {
  max-width: calc(100vw - 24px) !important;
  left: auto !important;
  right: auto !important;
}
.cky-preference-center { overflow-x: hidden; }

/* ---- первый экран на телефоне (21.09.2026) ---------------------------------
   На широком экране съёмка цеха и так лежит фоном, а слева её гасит маска,
   чтобы текст читался. На узком это правило отключалось, фотография уезжала
   под сгиб, и первый экран телефона был плоской заливкой с четырьмя строками
   заголовка — ровно то, мимо чего пролистывают.

   Здесь она остаётся фоном, но занимает верх экрана и растворяется в цвет
   страницы, а текст начинается под ней. Затемнения нет вообще: тёмная плашка
   под заголовком на четыре строки — это то, что мы уже решили не делать.
   -------------------------------------------------------------------------- */

@media (max-width: 900px) {
  .hero:not(.hero--inner) .hero__media {
    position: absolute;
    inset: 0 0 auto 0;
    height: 44vh;
    min-height: 15rem;
    max-height: 22rem;
    z-index: -2;
    margin: 0;
  }
  .hero:not(.hero--inner) .hero__media img,
  .hero:not(.hero--inner) .hero__media video {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
    object-position: 58% center;
    -webkit-mask-image: linear-gradient(to bottom, #000 58%, transparent 100%);
            mask-image: linear-gradient(to bottom, #000 58%, transparent 100%);
  }
  .hero:not(.hero--inner) .hero__grid {
    min-height: 0;
    padding-top: calc(44vh - 3rem);
    align-items: start;
  }
  .hero:not(.hero--inner) .hero__media figcaption { display: none; }
}

@media (max-width: 400px) {
  .hero:not(.hero--inner) .hero__media { height: 38vh; }
  .hero:not(.hero--inner) .hero__grid { padding-top: calc(38vh - 2.5rem); }
}

/* ---- и почему фотография всё равно не было видно (21.09.2026) --------------
   На широком экране у секции есть своя система наложения — position: relative
   и isolation: isolate — поэтому подложка с z-index -2 ложится поверх её фона.
   На узком этих двух свойств не было, система наложения не создавалась, и
   фон секции закрашивал фотографию собой. Видна оставалась только полоска
   вверху, где фона секции ещё нет.
   -------------------------------------------------------------------------- */

@media (max-width: 900px) {
  .hero:not(.hero--inner) {
    position: relative;
    isolation: isolate;
  }
  .hero:not(.hero--inner) .hero__media { z-index: 0; }
  .hero:not(.hero--inner) .hero__grid { position: relative; z-index: 1; }
}

/* ---- телефон: обрезанные цифры и порядок картинки (21.09.2026) -------------

   1. Запрет переноса строк ломал карточку. У крупного числа стоял
      white-space: nowrap — ради коротких значений вроде «500 bottles». На
      «300 kg of finished blend» это давало 219 пикселей внутри карточки
      шириной 169, и текст обрезался. Так было на семи страницах: порошки,
      спортпит, шипучие, софтгели, капсулы, таблетки, примеры.

   2. На внутренних страницах фотография шла после текста, и на узком экране
      человек видел заголовок, описание, две кнопки — и только потом снимок.
      На главной мы это уже исправили; здесь то же самое.
   -------------------------------------------------------------------------- */

@media (max-width: 900px) {
  .stat__value {
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .stat > span { padding: var(--s-3); }

  .hero--inner .hero__media { order: -1; margin-bottom: var(--s-4); }
  .hero--inner .hero__grid { display: flex; flex-direction: column; }
}

/* Под 420 пикселей две колонки цифр становятся слишком узкими даже с
   переносом: «usual minimum, per product» разваливается на пять строк. */
@media (max-width: 420px) {
  .stats { grid-template-columns: 1fr; }
}

/* ---- настоящий кадр в шапке внутренней страницы (21.09.2026) ---------------
   Внутренние страницы открывались мелкой карточкой с нарисованным макетом
   белой банки. Главная открывается кадром настоящей линии во всю ширину, и
   читается это как другая компания. Здесь тот же приём: кадр во всю ширину,
   маска гасит его слева, чтобы текст лежал на чистом фоне без затемнения.
   -------------------------------------------------------------------------- */

.hero--inner.hero--photo { position: relative; isolation: isolate; }
.hero--inner.hero--photo .hero__media {
  position: absolute; inset: 0; z-index: 0; margin: 0; align-self: stretch;
}
.hero--inner.hero--photo .hero__media img {
  width: 100%; height: 100%; min-height: 0;
  aspect-ratio: auto; border-radius: 0; box-shadow: none;
  object-fit: cover;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 20%);
          mask-image: linear-gradient(to right, transparent 0, #000 20%);
}
.hero--inner.hero--photo .hero__grid {
  position: relative; z-index: 1;
  grid-template-columns: 1fr;
  min-height: min(56vh, 520px);
  align-items: center;
}
.hero--inner.hero--photo .hero__text { max-width: 42rem; }
.hero--inner.hero--photo figcaption { display: none; }

/* На телефоне маска слева бесполезна — текст идёт во всю ширину. Кадр
   занимает верх экрана и растворяется вниз, как на главной. */
@media (max-width: 900px) {
  .hero--inner.hero--photo .hero__media {
    inset: 0 0 auto 0; height: 40vh; min-height: 14rem; max-height: 20rem;
  }
  .hero--inner.hero--photo .hero__media img {
    -webkit-mask-image: linear-gradient(to bottom, #000 58%, transparent 100%);
            mask-image: linear-gradient(to bottom, #000 58%, transparent 100%);
  }
  .hero--inner.hero--photo .hero__grid {
    display: block; min-height: 0; padding-top: calc(40vh - 2.5rem);
  }
}


/* ---- поправка к кадру в шапке (21.09.2026) ---------------------------------
   С первого раза кадр остался внутри колонки и лёг поверх текста: на главной
   он лежит прямо в секции, а на внутренних страницах — внутри обёртки с
   ограниченной шириной, и inset: 0 считался от неё.

   Здесь он выпускается на всю ширину окна, а маска гасит его до середины,
   чтобы текст лежал на чистом фоне. Затемнения по-прежнему нет.
   -------------------------------------------------------------------------- */

.hero--inner.hero--photo .hero__media {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(50% - 50vw);
  width: 100vw;
  inset-inline: auto;
  z-index: 0;
  margin: 0;
}
.hero--inner.hero--photo .hero__media img {
  -webkit-mask-image: linear-gradient(to right, transparent 0, transparent 34%, #000 64%);
          mask-image: linear-gradient(to right, transparent 0, transparent 34%, #000 64%);
}
.hero--inner.hero--photo .hero__text { max-width: 34rem; }

@media (max-width: 900px) {
  .hero--inner.hero--photo .hero__media {
    top: 0; bottom: auto; height: 40vh;
  }
  .hero--inner.hero--photo .hero__media img {
    -webkit-mask-image: linear-gradient(to bottom, #000 58%, transparent 100%);
            mask-image: linear-gradient(to bottom, #000 58%, transparent 100%);
  }
  .hero--inner.hero--photo .hero__text { max-width: none; }
}

/* ---- и ещё одна поправка к кадру на телефоне (21.09.2026) ------------------
   Кадр упирался в края колонки вместо краёв экрана: более раннее правило уже
   задавало ему left, и ширина во всё окно до него не доезжала. Здесь то же
   самое сказано явно, в том же медиазапросе.
   -------------------------------------------------------------------------- */

@media (max-width: 900px) {
  .hero--inner.hero--photo .hero__media {
    left: calc(50% - 50vw);
    right: auto;
    width: 100vw;
  }
  /* хлебные крошки садились на нижний край кадра */
  .hero--inner.hero--photo .crumbs { margin-top: var(--s-2); }
}

/* ---- кадр полосой над заголовком по центру (21.09.2026) -------------------
   У десяти страниц шапка — текст по центру и ни одной картинки. Здесь кадр
   идёт полосой во всю ширину над текстом и растворяется в цвет страницы.
   Класть заголовок по центру поверх фотографии нельзя: под него пришлось бы
   вести тёмную подложку, а от неё мы отказались.
   -------------------------------------------------------------------------- */

.hero--center.hero--photo-top { position: relative; isolation: isolate; }
.hero--center.hero--photo-top .hero__media {
  position: absolute; top: 0; left: calc(50% - 50vw); width: 100vw;
  height: clamp(11rem, 26vh, 17rem); margin: 0; z-index: 0;
}
.hero--center.hero--photo-top .hero__media img {
  width: 100%; height: 100%; min-height: 0; object-fit: cover;
  border-radius: 0; box-shadow: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 56%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 56%, transparent 100%);
}
.hero--center.hero--photo-top > .wrap {
  position: relative; z-index: 1;
  padding-top: clamp(9rem, 22vh, 14rem);
}


/* ---- из статьи на страницу, где это делают (21.09.2026) -------------------
   Статьи ссылались друг на друга, но не на страницу, отвечающую на вопрос,
   который статья поднимает: из материала про оболочки капсул не было хода
   ни на капсулы, ни на минимальную партию, ни на оборудование.
   -------------------------------------------------------------------------- */

.dir { display: grid; border-top: 1px solid var(--pe-hair); margin-top: var(--s-4); }
.dir__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 16px;
  align-items: center;
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--pe-hair);
  text-decoration: none;
  color: inherit;
}
.dir__row:hover .dir__name { color: var(--pe-accent); }
.dir__row:hover .dir__arrow { transform: translateX(3px); }
.dir__name {
  font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.01em;
  color: var(--pe-ink); transition: color .16s ease;
}
.dir__note {
  grid-column: 1; font-size: .9375rem; line-height: 1.45; color: var(--pe-muted);
}
.dir__arrow {
  grid-row: 1 / span 2; grid-column: 2;
  color: var(--pe-accent); transition: transform .16s ease;
}

@media (max-width: 480px) {
  .dir__arrow { grid-row: 1; }
}
