/*
Theme Name: B.B.C.B.
Theme URI: 
Author: Boris Barista Coffee Bar
Description: Персональный сайт выездного кофейного бара B.B.C.B.
Version: 1.0
License: Private
Text Domain: bbcb
*/
/* деплой проверен после переезда проекта: 2026-08-09 */

@import url('https://cdn.jsdelivr.net/npm/@tabler/icons-webfont@latest/tabler-icons.min.css');

/*
  =====================================================
  ШРИФТ: Panton (локальный, /fonts/) — единственная корпусная гарнитура.
  Сабсет латиница+кириллица, woff2 (современные) + woff (фолбэк).
  6 начертаний: Regular 400 / SemiBold 600 / Bold 700 × normal + italic.
  Пересобрано из otf 01.08.2026, набор однородный. Schibsted Grotesk убран
  (в нём не было кириллицы — русский текст проваливался в систему).
  Логотип Bb/cb и крупные h1 остаются на Playfair Display (см. header.php) —
  это осознанное исключение, Panton'ом НЕ заменяется.
  =====================================================
*/
@font-face {
  font-family: 'Panton';
  src: url('fonts/Panton-Regular.woff2') format('woff2'),
       url('fonts/Panton-Regular.woff') format('woff');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Panton';
  src: url('fonts/Panton-SemiBold.woff2') format('woff2'),
       url('fonts/Panton-SemiBold.woff') format('woff');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Panton';
  src: url('fonts/Panton-Bold.woff2') format('woff2'),
       url('fonts/Panton-Bold.woff') format('woff');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Panton';
  src: url('fonts/Panton-RegularItalic.woff2') format('woff2'),
       url('fonts/Panton-RegularItalic.woff') format('woff');
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Panton';
  src: url('fonts/Panton-SemiBoldItalic.woff2') format('woff2'),
       url('fonts/Panton-SemiBoldItalic.woff') format('woff');
  font-weight: 600; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Panton';
  src: url('fonts/Panton-BoldItalic.woff2') format('woff2'),
       url('fonts/Panton-BoldItalic.woff') format('woff');
  font-weight: 700; font-style: italic; font-display: swap;
}

/* === TOKENS === */
:root {
  --bg:       #FAF7F2;
  --ink:      #1E1C17;
  --mid:      #7A6F60;
  --rule:     #CD9D65;
  --card:     #F3EDE4;
  --accent:   #B85C38;
  --gold:     #C9933A;
  --font:     'Panton', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; }

/* === NAV === */
nav {
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 2rem;
  padding: 0 2.5rem;
  min-height: 80px;
  overflow: visible;
}

/* Отступ сверху под шапкой = 3rem на всех страницах, кроме главной (там hero вплотную
   по замыслу). Боевое, 06.08.2026, пункт 9 брифа.
   ПОЧЕМУ прошлая правка (margin-top:3rem на .page-hero/.events-page/.offer-page) не
   сработала: у .events-page и .offer-page ниже в файле стоит СВОЙ `margin: 0 auto`
   (шорткат сбрасывает margin-top обратно в 0), поэтому 3rem до них не доезжал. .page-hero
   (/about) конкурирующего шортката не имеет — только на нём отступ и был виден.
   .events-page при этом и так имел 3rem — из padding-top у .events-header; а .offer-page
   реального отступа не имел вовсе (его первый ребёнок .section-label без верхнего поля),
   и контент /offer лип к nav. Здесь оставляем только .page-hero; /offer чиним в его же
   правиле (margin: 3rem auto 0), а privacy/live/blog приводим к 3rem по месту. */
.page-hero {
  margin-top: 3rem;
}

.nav-logo {
  font-family: 'Playfair Display', serif !important;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1;
  display: flex;
  align-items: baseline;
  padding: 0.75rem 0;
  text-decoration: none;
}

.logo-bb {
  font-family: 'Playfair Display', serif !important;
  font-weight: 700 !important;
  color: #B85C38;
  letter-spacing: -0.02em;
  font-size: 1em !important;
}

.logo-sl {
  font-family: 'Playfair Display', serif !important;
  color: #C9933A !important;
  font-weight: 400 !important;
  font-size: 1.25em !important;
  margin: 0 2px;
  font-style: normal !important;
  line-height: 1;
}

.logo-cb {
  font-family: 'Playfair Display', serif !important;
  font-weight: 400 !important;
  font-style: italic !important;
  color: #B85C38;
  letter-spacing: 0.02em;
  font-size: 1em !important;
}

.nav-logo:hover .logo-bb,
.nav-logo:hover .logo-cb { color: #1E1C17; }

.nav-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0;
  padding: 0.75rem 0;
  overflow: visible;
  min-width: 0;
}

.nav-identity {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2px;
  margin-bottom: 8px;
}

.nav-fullname {
  font-size: clamp(9px, 1.2vw, 13px);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}

.nav-tagline {
  font-size: clamp(8px, 1vw, 11px);
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid);
  white-space: nowrap;
}

.nav-rule {
  width: 100%;
  height: 1px;
  background: var(--rule);
  margin-bottom: 8px;
}

.nav-links {
  display: flex;
  gap: 0;
  list-style: none;
  justify-content: center;
}

.nav-links a {
  font-size: clamp(9px, 1vw, 11px);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2C2A24;
  white-space: nowrap;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--accent); }

/* === FIX: nav-right ↔ hero-text alignment ===
   Правая часть шапки в той же колонке что hero-text (52%).
   Название, навигация и заголовок hero выровнены по одной вертикали.
*/
@media (min-width: 769px) {
  .nav-right {
    width: 52%;
    align-items: flex-start;
    padding-left: 3rem;
  }

  .nav-identity {
    align-items: flex-start;
  }

  .nav-links {
    justify-content: flex-start;
  }
}

/* === HERO === */
.hero {
  position: relative;
  min-height: 60vh;
  overflow: hidden;
}

.hero-photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: left center;
}

.hero-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent 25%, rgba(250,247,242,0.65) 48%, rgba(250,247,242,0.97) 68%);
}

.hero-text {
  position: relative;
  z-index: 1;
  margin-left: auto;
  width: 52%;
  min-height: 60vh;
  padding: 2.5rem 3rem 2.5rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
  color: var(--ink);
}

.hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

.hero-bio {
  font-size: 16px;
  line-height: 1.75;
  color: var(--mid);
  max-width: 38ch;
  margin-bottom: 1.25rem;
}

.hero-tagline {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink);
  max-width: 38ch;
  margin-bottom: 2.5rem;
  padding-left: 12px;
  border-left: 2px solid var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 13px 24px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
}

.btn:hover { background: var(--accent); }

.btn-arrow { font-size: 16px; line-height: 1; }



/* === SECTION BASE === */
section {
  padding: 4rem 2.5rem;
  }


.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 14px;
}

.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--rule);
}

.section-title {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
  color: var(--ink);
}

.section-sub {
  font-size: 15px;
  color: var(--mid);
  max-width: 52ch;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

/* === WORK === */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 2rem;
}

.work-card {
  background: var(--bg);
  border: 0.5px solid var(--rule);
  border-radius: 18px;
  overflow: hidden;
  transition: background 0.2s;
}

.work-card:hover { background: var(--card); }

.work-thumb {
  aspect-ratio: 4/3;
  background: var(--card);
  border-bottom: 0.5px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid);
  font-weight: 400;
}

.work-meta { padding: 1rem 1.2rem 1.3rem; }

.work-tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 5px;
}

.work-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: 4px;
}

.work-desc {
  font-size: 13px;
  color: var(--mid);
  line-height: 1.5;
}

/* === SERVICES === */
.service-single {
  margin-top: 2rem;
  border: 1px solid var(--rule);
}

.service-single-header {
  padding: 2rem 2rem 1.75rem;
  border-bottom: 1px solid var(--rule);
  background: var(--card);
}

.service-single-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 1.25rem;
  background: var(--card);
  border-radius: 0 0 2px 2px;
}

.service-feature {
  padding: 1.25rem 1.5rem;
  background: var(--bg);
  border-radius: 18px;
  border: 0.5px solid var(--rule);
  transition: background 0.2s;
}

.service-feature:hover { background: var(--card); }

.service-feature-icon {
  font-size: 20px;
  color: var(--accent);
  margin-bottom: 10px;
  display: block;
}

.service-feature-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.service-feature-desc {
  font-size: 14px;
  color: var(--mid);
  line-height: 1.7;
}

.service-num {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.service-name {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.service-single-lead {
  font-size: 15px;
  color: var(--mid);
  line-height: 1.7;
  max-width: 60ch;
}

/* === BLOG === */
.blog-list { margin-top: 2rem; }

.blog-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--rule);
  cursor: pointer;
  transition: padding-left 0.2s;
}

.blog-item:first-child { border-top: 1px solid var(--rule); }
.blog-item:hover { padding-left: 6px; }

.blog-left {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
}

.blog-date {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--mid);
  min-width: 72px;
}

.blog-headline {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.blog-tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--mid);
  padding: 3px 8px;
}

.blog-arrow { color: var(--gold); font-size: 18px; }

/* === CONTACT === */
.contact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  margin-top: 2rem;
}

.contact-blurb {
  font-size: 16px;
  line-height: 1.8;
  color: var(--mid);
}

.contact-blurb a {
  color: var(--accent);
  font-weight: 600;
}

.contact-socials {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-social-link {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid);
  transition: color 0.2s;
}

.contact-social-link:hover { color: var(--accent); }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-form input,
.contact-form textarea {
  font-family: var(--font);
  font-size: 14px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 18px;   /* единый радиус (эталон бенто), 06.08.2026 */
  padding: 11px 14px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--mid);
}

.contact-form textarea { min-height: 100px; }

/* Поля формы — вертикальным столбцом на всю ширину (иначе inline-input'ы
   текут в строку и textarea выпадает вбок). Проверено на 375px. */
#contactFormFields {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
/* :not([type=checkbox]) — иначе width:100% растягивает и чекбокс согласия
   (он тоже .contact-form input): его flex-бокс занимает всю строку, глиф встаёт
   по центру, а текст согласия выдавливается вправо за край. Исключаем чекбокс. */
.contact-form input:not([type="checkbox"]),
.contact-form textarea {
  width: 100%;
  box-sizing: border-box;
}
.field-error {
  display: none;
  color: var(--accent);
  font-size: 13px;
  margin-top: -4px;
}

/* === ABOUT === */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  margin-top: 2rem;
  align-items: start;
}

.about-lead {
  position: sticky;
  top: 100px;
}

.about-photo {
  width: 100%;
  aspect-ratio: 3/4;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.about-text {
  font-size: 15px;
  line-height: 1.8;
  color: var(--mid);
  margin-top: 1rem;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.about-item {
  background: var(--bg);
  padding: 1.25rem 1.5rem;
  border-radius: 18px;
  border: 0.5px solid var(--rule);
  transition: background 0.2s;
}

.about-item:hover { background: var(--card); }

.about-item-icon {
  font-size: 20px;
  color: var(--accent);
  margin-bottom: 10px;
  display: block;
}

.about-item-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.about-item-desc {
  font-size: 14px;
  color: var(--mid);
  line-height: 1.7;
}

/* === DIVIDER === */
.divider {
  height: 16px;
  background-color: #FAF7F2;
  background-image:
    linear-gradient(45deg, #1E1C17 25%, transparent 25%, transparent 75%, #1E1C17 75%),
    linear-gradient(45deg, #1E1C17 25%, transparent 25%, transparent 75%, #1E1C17 75%);
  background-size: 16px 16px;
  background-position: 0 0, 8px 8px;
}

/* === FOOTER === */
footer {
  padding: 1.5rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

footer p {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid);
}

/* === RESPONSIVE === */
/* === BURGER === */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 200;
}

.nav-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.3s, opacity 0.3s;
  transform-origin: center;
}

.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  nav {
    padding: 0 1.2rem;
    flex-wrap: wrap;
    min-height: 64px;
    align-items: center;
  }

  .nav-logo { font-size: 32px; }

  .nav-burger { display: flex; }

  .nav-right {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 0 0 1rem;
    border-top: 1px solid var(--rule);
    margin-top: 0;
    order: 3;
  }

  .nav-right.open { display: flex; }

  .nav-identity {
    align-items: flex-start;
    padding: 1rem 0 0.75rem;
  }

  .nav-fullname { font-size: 13px; }
  .nav-tagline { font-size: 11px; }

  .nav-links {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }

  .nav-links li { border-top: 1px solid var(--rule); }

  .nav-links a {
    display: block;
    padding: 0.75rem 0;
    font-size: 13px;
  }

  /* HERO */
  .hero { min-height: auto; display: flex; flex-direction: column; position: relative; overflow: hidden; }
  .hero-photo {
    position: relative;
    min-height: 360px;
    width: 100%;
    background-image: url('/assets/images/hero-mobile.jpg') !important;
    background-position: left center;
    background-size: cover;
  }
  .hero-photo::after {
    background: none;
  }
  .hero-text {
    position: relative;
    width: 100%;
    min-height: auto;
    padding: 1.75rem 1.5rem 2rem;
    background: var(--bg);
  }
  .hero-text h1 { color: var(--ink) !important; }
  .hero-text h1 em { color: var(--accent) !important; }
  .hero-text .hero-bio,
  .hero-text .hero-tagline { color: var(--mid); }
  .hero-label { color: var(--gold) !important; }
  .hero-text .btn { background: var(--ink); }

  /* SECTIONS */
  section { padding: 2.5rem 1.2rem; }

  /* ABOUT */
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-lead { position: static; }
  .about-features { grid-template-columns: 1fr; }

  /* WORK */
  .work-grid { grid-template-columns: 1fr; }

  /* SERVICES */
  .service-single-body { grid-template-columns: 1fr; }

  /* CONTACT */
  .contact-row { grid-template-columns: 1fr; gap: 2rem; }

  /* FOOTER */
  footer { flex-direction: column; gap: 6px; text-align: center; }
}

@media (max-width: 480px) {
  .nav-logo { font-size: 26px; }

  .hero-text { padding: 1.5rem 1rem; }

  .hero h1 { font-size: 36px; }

  section { padding: 2rem 1rem; }

  .section-title { font-size: 22px; }

  .service-single-header { padding: 1.25rem; }

  .about-item,
  .service-feature { padding: 1.1rem 1rem; }

  footer { padding: 1.2rem 1rem; }
}

/* === BLOG === */
#blog-archive {
  padding: 4rem 2.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.single-post {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 2.5rem;
}

.single-post-header {
  margin-bottom: 2.5rem;
}

.page-hero-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0.75rem 0 1.5rem;
  color: var(--ink);
}

.single-post-thumb {
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 2rem;
}

.single-post-thumb img {
  width: 100%;
  height: auto;
  display: block;
}

.single-post-content {
  font-size: 16px;
  line-height: 1.8;
  color: var(--mid);
}

.single-post-content p { margin-bottom: 1.25rem; }
.single-post-content h2 { font-size: 22px; font-weight: 600; color: var(--ink); margin: 2rem 0 0.75rem; }
.single-post-content h3 { font-size: 18px; font-weight: 600; color: var(--ink); margin: 1.5rem 0 0.5rem; }
.single-post-content img { width: 100%; border-radius: 18px; margin: 1.5rem 0; }
.single-post-content a { color: var(--accent); }

.single-post-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
}

.post-nav-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-decoration: none;
}

.post-nav-link:hover .blog-headline { color: var(--accent); }

.wp-pagenavi {
  display: flex;
  gap: 8px;
  margin-top: 2rem;
  font-size: 13px;
}

@media (max-width: 768px) {
  #blog-archive { padding: 2.5rem 1.2rem; }
  .single-post { padding: 2rem 1.2rem; }
  .single-post-nav { flex-direction: column; }
}

/* === ПОСТ — медиа и контент === */
.single-post-content video,
.single-post-content iframe,
.single-post-content .wp-block-video video {
  max-width: 480px;
  width: 100%;
  height: auto;
  display: block;
  margin: 1.5rem auto;
  border-radius: 18px;
}

.single-post-content .wp-block-video {
  max-width: 480px;
  margin: 1.5rem auto;
}

.single-post-content figure {
  max-width: 100%;
  margin: 1.5rem 0;
}

.single-post-content figcaption {
  font-size: 12px;
  color: var(--mid);
  text-align: center;
  margin-top: 6px;
  font-style: italic;
}

.single-post-content .wp-block-image img {
  border-radius: 18px;
  width: 100%;
  height: auto;
}

/* Вертикальное видео — ограничиваем ширину */
.single-post-content .wp-block-video.is-vertical video {
  max-width: 320px;
}

/* === EVENTS PAGE === */
.events-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0;
}

.events-header {
  padding: 3rem 2.5rem 2rem;
  border-bottom: 1px solid var(--rule);
}

.events-title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0.5rem 0 0.75rem;
}

.events-sub {
  font-size: 15px;
  color: var(--mid);
  max-width: 55ch;
  line-height: 1.7;
}

.events-timeline {
  padding: 2.5rem;
}

.events-year-group {
  margin-bottom: 3rem;
}

.events-year-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 12px;
}

.events-year-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--rule);
}

.events-year-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.event-card {
  background: var(--bg);
  border: 0.5px solid var(--rule);
  border-radius: 18px;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}

.event-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.event-card-thumb {
  position: relative;
}

.event-card-thumb img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.event-card-tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(184,92,56,0.1);
  padding: 3px 10px;
  border-radius: 99px;
  white-space: nowrap;
  display: inline-block;
  margin-bottom: 8px;
}

.event-card-tag--overlay {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(250,247,242,0.92);
  margin: 0;
}

.event-card-body {
  padding: 1.1rem 1.25rem 1.25rem;
}

.event-card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin-bottom: 6px;
}

.event-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin-bottom: 6px;
}

.event-meta-item {
  font-size: 12px;
  color: var(--mid);
}

.event-meta-sep {
  font-size: 12px;
  color: var(--rule);
}

.event-card-desc {
  font-size: 13px;
  color: var(--mid);
  line-height: 1.65;
  margin-top: 8px;
}

.event-card-desc p { margin: 0; }

.events-empty {
  padding: 4rem 2.5rem;
  text-align: center;
  color: var(--mid);
}

@media (max-width: 768px) {
  .events-header { padding: 2rem 1.2rem 1.5rem; }
  .events-timeline { padding: 1.5rem 1.2rem; }
  .events-year-cards { grid-template-columns: 1fr; }
}

/* === PORTFOLIO PAGE === */
.portfolio-page {
  max-width: 1100px;
  margin: 0 auto;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 12px;
  padding: 2.5rem;
}

.portfolio-card {
  background: var(--bg);
  border: 0.5px solid var(--rule);
  border-radius: 18px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.portfolio-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.07); }

.portfolio-card--large {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.portfolio-card--large .portfolio-card-img {
  aspect-ratio: unset;
  min-height: 280px;
}

.portfolio-card-img {
  aspect-ratio: 4/3;
  background-size: cover;
  background-position: center;
  background-color: var(--card);
}

.portfolio-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.portfolio-card-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin: 4px 0 0;
}

.portfolio-card-desc {
  font-size: 14px;
  color: var(--mid);
  line-height: 1.7;
}

.portfolio-cta {
  padding: 3rem 2.5rem;
  border-top: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.portfolio-cta-text {
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}

@media (max-width: 768px) {
  .portfolio-grid { grid-template-columns: 1fr; padding: 1.2rem; }
  .portfolio-card--large { grid-column: 1; display: block; }
  .portfolio-card--large .portfolio-card-img { min-height: 220px; }
  .portfolio-cta { flex-direction: column; align-items: flex-start; padding: 2rem 1.2rem; }
}

/* === HERO UPDATES === */
.hero-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.hero-link {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mid);
  text-decoration: none;
  transition: color 0.2s;
}

.hero-link:hover { color: var(--accent); }

/* === CONTACT FORM === */
.contact-success {
  background: rgba(46, 158, 107, 0.1);
  color: #0f6e56;
  padding: 1.25rem 1.5rem;
  border-radius: 12px;
  font-size: 15px;
  line-height: 1.6;
}

.contact-error {
  color: var(--accent);
  font-size: 13px;
  margin-bottom: 8px;
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* === POST MEDIA FIX === */
.single-post-content video,
.single-post-content .wp-block-video video {
  max-width: 420px;
  width: 100%;
  height: auto;
  display: block;
  margin: 1.5rem auto;
  border-radius: 18px;
}

.single-post-content .wp-block-video {
  max-width: 420px;
  margin: 1.5rem auto;
}

.single-post-content .wp-block-image {
  margin: 1.5rem 0;
}

.single-post-content .wp-block-image img {
  border-radius: 18px;
  width: 100%;
  height: auto;
}

.single-post-content figure {
  margin: 1.5rem 0;
}

.single-post-content figcaption {
  font-size: 12px;
  color: var(--mid);
  text-align: center;
  margin-top: 6px;
  font-style: italic;
}

.single-post-content .wp-block-embed {
  margin: 1.5rem 0;
}

/* === WORK CTA === */
.work-cta {
  padding: 1.5rem 2.5rem 2rem;
  display: flex;
  justify-content: flex-start;
}

@media (max-width: 768px) {
  .work-cta { padding: 1.2rem 1.2rem 1.5rem; }
}

/* === SECTION CTA LINKS === */
.about-more {
  padding: 1.5rem 2.5rem 2rem;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--ink);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 11px 22px;
  border: 1px solid var(--rule);
  border-radius: 2px;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

@media (max-width: 768px) {
  .about-more { padding: 1.2rem 1.2rem 1.5rem; }
}

/* === OFFER PAGE === */
.offer-page {
  max-width: 1100px;
  margin: 3rem auto 0;   /* пункт 9: 3rem под шапкой (первый ребёнок .section-label
                            своего верхнего поля не имеет — иначе контент лип к nav) */
}

/* Hero */
.offer-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  padding: 3rem 2.5rem;
  align-items: start;
  border-bottom: 1px solid var(--rule);
}

.offer-title {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: var(--ink);
  margin: 0.75rem 0 1rem;
}

.offer-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

.offer-lead {
  font-size: 16px;
  color: var(--mid);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  max-width: 38ch;
}

.offer-contacts {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.offer-contact-item {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.offer-contact-item:hover { color: var(--ink); }

.offer-logo-large {
  font-family: 'Playfair Display', serif;
  font-size: 64px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.offer-logo-large span {
  color: var(--gold);
  font-weight: 400;
}

.offer-includes {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.offer-includes li {
  font-size: 14px;
  color: var(--mid);
  line-height: 1.6;
  padding-left: 1rem;
  position: relative;
}

.offer-includes li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* Pricing */
.offer-pricing {
  padding: 3rem 2.5rem;
}

.offer-pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 2rem;
  margin-top: 1.5rem;
  align-items: start;
}

.offer-price-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.offer-price-card {
  background: var(--card);
  border: 0.5px solid var(--rule);
  border-radius: 18px;
  padding: 1.25rem 1.5rem;
}

.offer-price-card--main {
  background: #2A1506;
  border-color: #2A1506;
}

.offer-price-card--main .offer-price-num { color: #F2E0B0; }
.offer-price-card--main .offer-price-num span { color: var(--gold); }
.offer-price-card--main .offer-price-portions { color: #F2E0B0; opacity: 0.9; }
.offer-price-card--main .offer-price-desc { color: #F2E0B0; opacity: 0.7; }

.offer-price-num {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 4px;
}

.offer-price-num span { font-size: 22px; font-weight: 400; }

.offer-price-portions {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.offer-price-desc {
  font-size: 13px;
  color: var(--mid);
  line-height: 1.6;
}

.offer-price-note {
  font-size: 13px;
  color: var(--mid);
  line-height: 1.6;
  padding: 0.75rem 1rem;
  border-left: 2px solid var(--gold);
}

.offer-price-asterisk {
  font-size: 11px;
  color: var(--mid);
  font-style: italic;
  margin-top: 4px;
}

.offer-menu {
  background: var(--card);
  border: 0.5px solid var(--rule);
  border-radius: 18px;
  overflow: hidden;
}

.offer-menu-label {
  background: var(--ink);
  color: var(--bg);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 10px 1.5rem;
  text-align: center;
}

.offer-menu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 1.25rem 1.5rem;
  gap: 1.25rem;
}

.offer-menu-cat {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}

.offer-menu-cat span {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--mid);
}

.offer-menu-col ul {
  list-style: none;
}

.offer-menu-col ul li {
  font-size: 13px;
  color: var(--mid);
  line-height: 1.7;
  padding-left: 12px;
  position: relative;
}

.offer-menu-col ul li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* About */
.offer-about {
  padding: 3rem 2.5rem;
}

.offer-about-grid {
  display: grid;
  grid-template-columns: 1fr 0.6fr 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
  align-items: start;
}

.offer-section-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}

.offer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.offer-list li {
  font-size: 14px;
  color: var(--mid);
  line-height: 1.65;
  padding-left: 1rem;
  position: relative;
}

.offer-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
}

.offer-about-col--stats {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--card);
  border-radius: 18px;
  border: 0.5px solid var(--rule);
  text-align: center;
}

.offer-stat-big {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.offer-stat-num {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
}

.offer-stat-label {
  font-size: 13px;
  color: var(--mid);
}

.offer-stat-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(184,92,56,0.08);
  padding: 5px 14px;
  border-radius: 99px;
}

.offer-text {
  font-size: 14px;
  color: var(--mid);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.offer-brand-box {
  background: var(--card);
  border-radius: 18px;
  border-left: 3px solid var(--gold);
  padding: 1rem 1.25rem;
  margin-top: 1rem;
  font-size: 13px;
  color: var(--mid);
  line-height: 1.65;
}

.offer-brand-note {
  margin-top: 8px;
  font-style: italic;
  font-size: 12px;
  color: var(--mid);
  opacity: 0.8;
}

/* CTA */
.offer-cta-section {
  padding: 3rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.offer-cta-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

/* Mobile */
@media (max-width: 768px) {
  .offer-hero { grid-template-columns: 1fr; padding: 2rem 1.2rem; gap: 2rem; }
  .offer-pricing { padding: 2rem 1.2rem; }
  .offer-pricing-grid { grid-template-columns: 1fr; }
  .offer-about { padding: 2rem 1.2rem; }
  .offer-about-grid { grid-template-columns: 1fr; }
  .offer-cta-section { flex-direction: column; align-items: flex-start; padding: 2rem 1.2rem; }
  .offer-menu-grid { grid-template-columns: 1fr; }
  .offer-logo-large { font-size: 48px; }
}

/* === PHOTO STRIP === */
.photo-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  height: 260px;
  overflow: hidden;
}

.photo-strip-item {
  background-size: cover;
  background-position: center;
  transition: transform 0.4s ease;
}

.photo-strip-item:hover {
  transform: scale(1.03);
}

@media (max-width: 768px) {
  .photo-strip {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    height: 200px;
    gap: 4px;
  }

  .photo-strip-item {
    min-width: 70vw;
    flex-shrink: 0;
    scroll-snap-align: start;
  }
}

@media (max-width: 480px) {
  .photo-strip {
    height: 180px;
  }

  .photo-strip-item {
    min-width: 80vw;
  }
}

/* === UTP COMPARISON BLOCK === */
.utp-block {
  padding: 2rem 2.5rem;
  border-top: 1px solid var(--rule);
}

.utp-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 12px;
}

.utp-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--rule);
}

/* Мёртвый CSS двухколоночного блока (.utp-grid/.utp-col/.utp-item/.utp-icon)
   удалён 24.07.2026 — разметки под него в шаблонах нет; заодно ушёл тёмный
   остаток #2A1506 (тёмной секции нет и не будет). */

.utp-quote {
  background: var(--card);
  border-radius: 18px;
  border-left: 3px solid var(--gold);
  padding: 1rem 1.25rem;
  font-size: 14px;
  color: var(--mid);
  line-height: 1.7;
}

.utp-quote em {
  font-style: italic;
  color: var(--ink);
}

@media (max-width: 768px) {
  .utp-block { padding: 1.5rem 1.2rem; }
}

.utp-win {
  margin-top: 8px;
  padding: 0.75rem 1.25rem;
  font-size: 14px;
  color: var(--ink);
  font-weight: 500;
  font-style: italic;
  text-align: center;
  letter-spacing: 0.01em;
}

/* === PRINCIPLES GRID === */
.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 1.5rem 0 2rem;
}

.about-grid .principles-grid {
  grid-template-columns: repeat(2, 1fr);
  margin: 0;
}

.about-grid .principle-icon {
  display: none;
}

@media (max-width: 768px) {
  .about-grid .principles-grid {
    grid-template-columns: 1fr;
  }
  .about-grid .principle-icon {
    display: none;
  }
}

.principle-card {
  background: var(--bg);
  border: 0.5px solid var(--rule);
  border-radius: 18px;
  padding: 1.5rem;
  transition: background 0.2s;
}

.principle-card:hover { background: var(--card); }

.principle-icon {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.principle-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.principle-desc {
  font-size: 13px;
  color: var(--mid);
  line-height: 1.7;
}

@media (max-width: 768px) {
  .principles-grid { grid-template-columns: 1fr; }
}

@media (min-width: 480px) and (max-width: 768px) {
  .principles-grid { grid-template-columns: 1fr 1fr; }
}

/* === OFFER COMPARE === */
.off-compare {
  margin-top: 1rem;
  border: 0.5px solid var(--rule);
  border-radius: 18px;
  overflow: hidden;
}

.off-compare-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 1rem 1.5rem 0.5rem;
}

.off-compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--rule);
}

.off-compare-col { background: var(--bg); }

.off-compare-header {
  padding: 8px 1.25rem;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.off-compare-col--other .off-compare-header {
  background: var(--card);
  color: var(--mid);
}

.off-compare-col--us .off-compare-header {
  background: #2A1506;
  color: #F2E0B0;
}

.off-compare-body {
  padding: 10px 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.off-compare-item {
  display: flex;
  gap: 8px;
  font-size: 13px;
  line-height: 1.5;
}

.off-compare-col--other .off-compare-item { color: var(--mid); }
.off-compare-col--other .off-compare-item span { color: var(--mid); opacity: 0.4; font-weight: 600; }
.off-compare-col--us .off-compare-item { color: var(--ink); }
.off-compare-col--us .off-compare-item span { color: var(--gold); font-weight: 600; }

@media (max-width: 768px) {
  .off-compare-grid { grid-template-columns: 1fr; }
}

/* === PRINCIPLE HIGHLIGHT === */
.principle-card--highlight {
  border-color: var(--gold);
  background: linear-gradient(135deg, var(--card) 0%, var(--bg) 100%);
}

/* === STAND VALUE BLOCK === */
.off-stand {
  background: var(--card);
  border: 0.5px solid var(--rule);
  border-radius: 18px;
  overflow: hidden;
  margin-top: 1rem;
}

.off-stand-label {
  background: var(--ink);
  color: var(--bg);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 10px 1.75rem;
  text-align: center;
}

.off-stand-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--rule);
}

.off-stand-item {
  background: var(--bg);
  padding: 1.25rem 1.5rem;
  transition: background 0.2s;
}

.off-stand-item:hover { background: var(--card); }

.off-stand-num {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin-bottom: 6px;
}

.off-stand-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.off-stand-desc {
  font-size: 13px;
  color: var(--mid);
  line-height: 1.65;
}

@media (max-width: 768px) {
  .off-stand-grid { grid-template-columns: 1fr; }
  .principles-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .principles-grid { grid-template-columns: 1fr; }
}

/* === ABOUT FACTS === */
.about-facts {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 1.25rem;
}

.about-fact {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--ink);
  line-height: 1.5;
}

.about-fact-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 6px;
}

/* === SERVICES PHOTO === */
.services-photo {
  margin: 0 2.5rem 1.5rem;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
}

.services-photo-img {
  height: 280px;
  background-size: cover;
  background-position: center 60%;
}

.services-photo-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem 1.25rem;
  background: linear-gradient(to top, rgba(20,16,10,0.75) 0%, transparent 100%);
  font-size: 13px;
  color: rgba(250,247,242,0.85);
  font-style: italic;
}

/* === ABOUT PORTRAIT === */
.about-portrait {
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: 18px;
  border: 0.5px solid var(--rule);
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  .services-photo { margin: 0 1.2rem 1.2rem; }
  .services-photo-img { height: 200px; }
  /* Портрет Бориса (800×1200, вертикальный) на телефоне: было ландшафтное окно 4/3 —
     вертикальное фото резалось, над головой оставался пустой дверной проём, голова
     упиралась в край. Делаем окно квадратным и уводим фокус на лицо (оно в верхней
     трети), пустота над головой уходит из кадра. Десктоп (базовое 3/4) не трогаем. */
  .about-portrait {
    aspect-ratio: 1 / 1;
    background-position: center 35% !important;
  }
}

/* === GALLERY SLIDER === */
.gallery-slider {
  position: relative;
  padding: 1rem 0 1.5rem;
  overflow: hidden;
  background: var(--bg);
}

.gallery-track {
  display: flex;
  gap: 10px;
  padding: 0 2rem;
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-slide {
  min-width: calc(33.333% - 7px);
  height: 300px;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  border-radius: 18px;
  flex-shrink: 0;
  transition: transform 0.25s, box-shadow 0.25s, min-width 0.3s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  position: relative;
  overflow: hidden;
}

.gallery-slide:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.14);
}

.gallery-slide.is-expanded {
  min-width: calc(33.333% * 1.35 - 7px);
}

.gallery-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(250,247,242,0.92);
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 15px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.gallery-btn:hover { background: #fff; }
.gallery-btn--prev { left: 8px; }
.gallery-btn--next { right: 8px; }

.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
}

.gallery-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rule);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  border: none;
  padding: 0;
}

.gallery-dot--active {
  background: var(--accent);
  transform: scale(1.3);
}

@media (max-width: 768px) {
  .gallery-slide {
    min-width: calc(78% - 5px);
    height: 240px;
  }
  .gallery-slide.is-expanded { min-width: calc(78% * 1.15 - 5px); }
  .gallery-track { padding: 0 1rem; gap: 8px; }
}

/* UTP syrup photo */
.utp-syrup-photo {
  margin-bottom: 12px;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
}

.utp-syrup-photo img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: center 40%;
  display: block;
}

.utp-syrup-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem 1.25rem;
  background: linear-gradient(to top, rgba(20,16,10,0.8) 0%, transparent 100%);
  font-size: 14px;
  font-style: italic;
  color: rgba(250,247,242,0.9);
}

@media (max-width: 768px) {
  .gallery-slider { height: 260px; }
  .gallery-slide { min-width: 80%; }
  .utp-syrup-photo img { height: 220px; }
}

/* === LIGHTBOX === */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.lightbox.is-open {
  display: flex;
  animation: lbFadeIn 0.25s ease;
}

@keyframes lbFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.lightbox-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,8,5,0.92);
  cursor: pointer;
}

.lightbox-inner {
  position: relative;
  z-index: 2;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
  animation: lbImgIn 0.3s ease;
}

@keyframes lbImgIn {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  background: rgba(250,247,242,0.15);
  border: none;
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.lightbox-close:hover { background: rgba(250,247,242,0.3); }

/* === WORK MINI GALLERY === */
.work-gallery {
  position: relative;
  margin-bottom: 14px;
  border-radius: 18px;
  overflow: hidden;
}

/* === WORK MOMENTS GRID === */
.wm-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 1.5rem 0 2rem;
}
.wm-photo {
  height: 280px;
  background-size: cover;
  background-position: center;
  border-radius: 18px;
  background-color: var(--card);
}
/* Скрываем остатки старого слайдера */
.work-gallery-btn { display: none !important; }
.work-gallery-dots { display: none !important; }

/* Отступы между цитатами */
.utp-quote { margin-bottom: 1.5rem; }
.utp-win { margin-top: 1rem; }

@media (max-width: 768px) {
  .wm-grid { grid-template-columns: 1fr; }
  .wm-photo--hide-mobile { display: none; }
  .wm-photo { height: 240px; }
}

.work-gallery-track { position: relative; }

.work-gallery-slide {
  display: none;
  cursor: pointer;
  position: relative;
}

.work-gallery-slide.is-active { display: block; }

.work-gallery-img {
  height: 300px;
  background-size: cover;
  background-position: center;
  transition: opacity 0.3s;
}

.work-gallery-slide:hover .work-gallery-img { opacity: 0.92; }

.work-gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem 1.25rem;
  background: linear-gradient(to top, rgba(20,16,10,0.82) 0%, transparent 100%);
  font-size: 14px;
  font-style: italic;
  color: rgba(250,247,242,0.92);
}

.work-gallery-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(250,247,242,0.88);
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 14px;
  cursor: pointer;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: background 0.2s;
}

.work-gallery-btn:hover { background: #fff; }
.work-gallery-btn--prev { left: 10px; }
.work-gallery-btn--next { right: 10px; }

.work-gallery-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 8px 0 4px;
  background: var(--bg);
}

.work-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rule);
  cursor: pointer;
  border: none;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}

.work-dot--active {
  background: var(--accent);
  transform: scale(1.3);
}

@media (max-width: 768px) {
  .work-gallery-img { height: 220px; }
  .lightbox-img { max-width: 96vw; max-height: 80vh; }
}

/* === PRIVACY PAGE === */
.privacy-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem 20px 96px;   /* пункт 9: верх 64px → 3rem, как на остальных страницах */
  color: var(--ink);
}
.privacy-page h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.15;
  margin: 0 0 8px;
}
.privacy-page .privacy-updated {
  color: var(--mid);
  font-size: 0.95rem;
  margin: 0 0 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--rule);
}
.privacy-page h2 {
  font-size: 1.25rem;
  margin: 40px 0 12px;
}
.privacy-page p,
.privacy-page li {
  line-height: 1.65;
  color: var(--ink);
}
.privacy-page ul {
  padding-left: 22px;
  margin: 8px 0 16px;
}
.privacy-page .privacy-card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 18px;
  padding: 20px 24px;
  margin: 16px 0;
}
.privacy-page a {
  color: var(--accent);
}

/* === CONSENT CHECKBOX (forms) === */
.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 8px 0 4px;
  font-size: 13px;
  color: var(--mid);
  line-height: 1.5;
}

.consent-row input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--accent);
  flex-shrink: 0;
}

.consent-row a {
  color: var(--accent);
  text-decoration: underline;
}

/* ============================================================================
   В1 — влито из style-preview.css 24.07.2026 (В1 стал боевым видом).
   Раньше грузилось поверх по ?preview=v1; теперь это база. Правила идут
   последними — при конфликте выигрывает В1. Диагностика (красная полоса/фон)
   в слияние НЕ перенесена. Механику флага в head.php оставили рабочей вхолостую.
   ============================================================================ */

/* Навигация смелее — только десктоп (мобильные размеры нав-пунктов не трогаем). */
@media (min-width: 769px) {
  .nav-links a { font-size: 13px; letter-spacing: 0.05em; }
  .nav-fullname { font-size: 14px; letter-spacing: 0.07em; }
  .nav-tagline { font-size: 12px; letter-spacing: 0.07em; }
}

/* Лейблы секций/hero/eyebrow смелее (→13px). */
.hero-label,
.section-label,
.eyebrow,
.utp-label {
  font-size: 13px;
  letter-spacing: 0.14em;
}

/* Заголовки карточек крупнее (→18px) + больше воздуха. */
.service-feature-title,
.about-item-title,
.principle-title,
.work-title {
  font-size: 18px;
}
.service-feature,
.about-item {
  padding: 1.5rem 1.75rem;
}

/* Заголовки секций: верхняя граница clamp выше (→44px). */
.section-title {
  font-size: clamp(30px, 3.4vw, 44px);
}

/* «Как это работает» (utp-block) — самостоятельная светлая плита (замена
   отменённой тёмной секции). Фон #EDE1CC — на полшага темнее --card, без ухода в тёмное. */
.utp-block {
  background: #EDE1CC;
  border-top: none;
  max-width: 1040px;
  margin: 4rem auto;
  padding: 2.5rem;
  border-radius: 18px;
}
@media (max-width: 768px) {
  .utp-block {
    max-width: none;
    margin: 2.5rem 0;
    padding: 1.75rem 1.2rem;
    border-radius: 18px;
  }
}

/* Галерея-слайдер под hero: карточки ниже (ширина слайда не меняется). */
.gallery-slide { height: 230px; }
@media (max-width: 768px) {
  .gallery-slide { height: 200px; }
  .gallery-slider { height: 240px; }
}

/* Длина строки: длинные абзацы не размазываются вширь. */
.service-single-lead,
.service-feature-desc,
.utp-quote,
.utp-win {
  max-width: 62ch;
}

/* Единое левое выравнивание/паддинг у .utp-win внутри плиты. */
.utp-win {
  text-align: left;
  padding: 1rem 1.25rem;
}

/* ── Расшифровка B.B.C.B. «Boris Barista Coffee Bar» под логотипом (шапка) и
   рядом с копирайтом (подвал). Подпись, а не заголовок: мелкий кегль, тёплый
   --gold (как лейблы В1), БЕЗ капса и разрядки. Разметку выводит header.php/footer.php. */
.nav-logo-wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
/* прижимаем подпись к логотипу — снимаем его нижний отступ (задан inline в header.php) */
.nav-logo-wrap .nav-logo {
  padding-bottom: 0 !important;
  /* На узких экранах логотип НЕ уменьшаем ниже ширины подписи — иначе подпись
     торчит за буквы лого. Поднимаем нижнюю границу clamp (плавно, без скачка):
     лого сжимается с шириной, но держит пол. Широкий десктоп не меняется (6vw→72px). */
  font-size: clamp(46px, 6vw, 72px) !important;
}
.nav-decrypt {
  font-size: 12px;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.1;
  margin-top: 3px;
  /* по умолчанию (в т.ч. мобилка) — по левому краю; растяжка justify — только десктоп. */
  text-align: left;
  white-space: normal;
}
/* Растяжка подписи по ширине логотипа — ТОЛЬКО десктоп (раздвигаются пробелы,
   буквы не разрежаются). На узких экранах justify рвал строку — там его нет. */
@media (min-width: 769px) {
  .nav-decrypt {
    text-align: justify;
    text-align-last: justify;
  }
}
@media (max-width: 480px) {
  .nav-decrypt { font-size: 11px; line-height: 1.15; }
}
/* Заглавные подписи = инициалы B·B·C·B. На ховере логотипа чернеют (как буквы лого). */
.decrypt-cap { transition: color 0.15s; }
.nav-logo:hover ~ .nav-decrypt .decrypt-cap { color: var(--ink); }

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
/* перекрываем боевой `footer p` (11px, uppercase, --mid) — тут подпись, не копирайт */
.footer-decrypt {
  font-size: 12px;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0;
  text-transform: none;
  margin: 0;
}

/* ============================================================================
   Видеоблок (таймлапсы): превью-плитки с автоплеем + лайтбокс с полным видео.
   Добавлено 25.07.2026. Превью — muted/loop/playsinline, запуск по IntersectionObserver.
   ============================================================================ */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  grid-auto-rows: 150px;
  grid-auto-flow: dense;
  gap: 12px;
  margin: 1.5rem 0;
}
/* В галерее плитка заполняет ячейку сетки; вертикальные и квадрат занимают 2 ряда
   (место двух горизонтальных), не выбивая массив. */
.video-grid .video-tile { aspect-ratio: auto; height: 100%; }
.video-grid .video-tile--portrait { grid-row: span 2; }
/* Квадрат — в обычную (горизонтальную) ячейку: видео целиком по центру, мельче, с полями. */
.video-grid .video-tile--square { grid-row: span 1; }
.video-tile--square .video-preview { object-fit: contain; background: #000; }
.video-tile {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  background: #1E1C17;
  aspect-ratio: 16 / 9;
}
.video-tile .video-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.video-tile .video-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}
.video-tile:hover .video-play {
  background: rgba(0, 0, 0, 0.65);
  transform: scale(1.08);
}
.video-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.7rem 0.9rem;
  font-size: 13px;
  color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.65));
  /* auto (не none): чтобы инлайн-редактор мог выделить подпись как <p>.
     Обычный клик всё равно всплывает к .video-tile и открывает видео — UX не меняется. */
  pointer-events: auto;
}
.video-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
}
.video-lightbox.is-open { display: flex; }
.video-lightbox-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
}
.video-lightbox-inner {
  position: relative;
  z-index: 1;
  width: min(92vw, 1100px);
}
.video-lightbox-video {
  width: 100%;
  max-height: 84vh;
  border-radius: 8px;
  background: #000;
  display: block;
}
.video-lightbox-close {
  position: absolute;
  top: -46px;
  right: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
}
@media (max-width: 768px) {
  /* На мобиле /events — 2 колонки: горизонтальные по два в ряд, высота ряда ~16:9;
     вертикали занимают 2 ряда, квадрат — 1. (Главную не трогает — там .wm-grid.) */
  .video-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 27vw; }
  .video-lightbox-close { top: -42px; }
}
/* Видео в левом кадре мини-галереи «Как это работает» — заполняет ячейку как фото,
   а не по соотношению 16:9. */
.wm-grid .wm-video {
  aspect-ratio: auto;
  height: 280px;
}
.wm-grid .wm-video .video-preview {
  height: 100%;
}
@media (max-width: 768px) {
  .wm-grid .wm-video { height: 240px; }
}
/* Вертикальные/квадрат в галерее занимают 2 ряда — задаётся в .video-grid выше.
   (Плитка заполняется видео через object-fit: cover — заложено в .video-preview.) */
/*
  ============================================================================
  ПРОМОУШЕН ПРЕВЬЮ «В1/бенто по концептам КД» → БОЕВОЙ (06.08.2026).
  Ниже — правила, ранее жившие в style-preview.css (грузился при ?preview=v1).
  Стали боевыми: разметка в page-home.php / page-about.php / header.php тоже
  промоушена (ветки $pv/$preview сняты). style-preview.css опустошён, оставлен
  слотом под будущее превью; механика ?preview=v1 работает вхолостую.
  ============================================================================
*/

/* --- Пункт 1: в шапке одна строка про род занятий ---
   Справа было две строки: «выездной кофейный бар» (.nav-fullname под превью) и
   повтор «Кофейный кейтеринг» (.nav-tagline). Вторая дублирует первую — прячем её
   под превью. Боевой вид (без параметра) не трогается — правило живёт только здесь. */
.nav-tagline { display: none; }

/* --- Точки-разделители между пунктами меню шапки (боевой с 06.08.2026) ---
   «Обо мне · Мероприятия · Блог · Контакты». Точка — псевдоэлемент ::before у каждого
   пункта, кроме первого: она вне ссылки (не кликается), сами пункты цвет не меняют,
   по краям строки точек нет. Цвет — акцент (терракот). На десктопе пункты идут flex-
   строкой с gap 1.5rem; margin-right у точки зеркалит этот gap, точка садится по центру
   промежутка. На мобильной меню — вертикальный столбец с разделителями-линиями (боевой
   стиль); точки там лишние и ломали бы раскладку — прячем их.
   Пункт 7 (06.08.2026): глиф · крупнее пунктов и с оптическим весом — читается как
   разделитель, а не «пыль»; line-height:0 не даёт крупному кеглю растянуть строку меню.
   07.08.2026: кегль поднят 20→24px; при vertical-align:middle + line-height:0 глиф
   садился ниже оптического центра — поднимаем его к середине прописных сдвигом
   position:relative; top:-0.08em. line-height:0 по-прежнему держит высоту шапки. */
.nav-links li + li::before {
  content: "·";
  color: var(--accent);
  margin-left: 1.5rem;
  margin-right: 1.5rem;
  font-size: 24px;
  font-weight: 700;
  line-height: 0;
  vertical-align: middle;
  position: relative;
  top: -0.08em;
}
@media (max-width: 768px) {
  .nav-links li + li::before { content: none; }
}

/* --- Пункт 3: выключка по ширине только для связных абзацев от трёх строк ---
   В кириллице text-align: justify на коротких строках, подписях, пунктах списков
   и карточках раздвигает пробелы в «реки» — читается как дешёвая вёрстка. Поэтому
   justify включаем адресно: только длинная проза «Истории» на /about (.story-block p),
   и только на десктопе (на узкой колонке 375px justify тоже рвёт — как когда-то
   у подписи под логотипом). Всё остальное — по левому краю (боевой умолчательный).
   Подпись под логотипом (.nav-decrypt) со своим justify + text-align-last НЕ трогаем:
   там пробелы растянуты под ширину знака — это сознательный приём, не «река». */
@media (min-width: 769px) {
  .story-block p {
    text-align: justify;
    text-align-last: left; /* последняя строка абзаца не растягивается */
  }
}

/* --- Пункт 3: «живой блок» на /about теперь НАВЕРХУ (выход в настоящее первым) ---
   Разметку выводит page-about.php только под превью, первым блоком правой колонки.
   Раньше стоял внизу у рельса таймлайна (был margin-left под рельс) — теперь это
   самостоятельный верхний блок, выровнен по левому краю колонки, как «История» под ним. */
.about-now {
  margin-top: 0;
  margin-left: 0;
  margin-bottom: 1.75rem;
  background: #EDE1CC;
  border-radius: 18px;
  padding: 1.75rem 2rem;
}

.about-now-nums {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2.25rem;
  margin-bottom: 1.25rem;
}

.about-now-num {
  font-size: 13px;
  color: var(--mid);
  letter-spacing: 0.02em;
  line-height: 1.35;
}

.about-now-num b {
  display: block;
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 4px;
}

.about-now-line {
  font-size: 16px;
  color: var(--ink);
  line-height: 1.6;
  max-width: 48ch;
}

@media (max-width: 768px) {
  .about-now { margin-left: 0; padding: 1.5rem 1.2rem; }
}

/* Пункт 2 (таймлайн): свежее вверху, все периоды — обычными карточками .tl-card
   (боевые стили). Порядок/даты периодов заданы в разметке page-about.php.
   Карточки 2012/2011 несут многоабзацный текст: разделяем абзацы ритмом.
   На боевых карточках .tl-card-desc — простой текст без <p>, правило их не трогает. */
.tl-card-desc p { margin: 0 0 0.7rem; }
.tl-card-desc p:last-child { margin-bottom: 0; }

/* Пересборка блока «Путь» в вехи (06.08.2026). Ссылки внутри вех и в строке
   про мероприятия — как текстовые ссылки сайта (акцентный цвет, без новых приёмов).
   Только под превью — style-preview.css грузится лишь при ?preview=v1. */
.tl-card-desc a, .tl-more a { color: var(--accent); }

/* Строка-ссылка на /events под группой «События». Не карточка — простой текст,
   выровнен по левому краю колонки под рельс таймлайна, ритм как у .tl-card-desc. */
.tl-more {
  margin-left: 1.5rem;
  margin-top: 1.75rem;
  font-size: 13px;
  color: var(--mid);
  line-height: 1.65;
}

/* --- Пункт 4: «История» под кат (свёрнута по умолчанию, раскрытие по кнопке) ---
   Первый рассказ виден, дальше текст плавно затухает в цвет плашки (#EDE1CC) и обрезан;
   кнопка «Показать полностью» раскрывает (JS в page-about.php переключает .story--open).
   Только под превью — боевая история открыта целиком. */
.story--collapsed .story-clip { position: relative; }
.story--collapsed .story-body {
  max-height: 6rem;          /* ~3 строки-тизер (заголовок + пара строк), дальше затухание */
  overflow: hidden;
  transition: max-height 0.45s ease;
}
.story--collapsed.story--open .story-body { max-height: 4000px; }

.story-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2.5rem;
  background: linear-gradient(to bottom, rgba(237,225,204,0), #EDE1CC);
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.story--open .story-fade { opacity: 0; }

.story-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 1.25rem;
  padding: 0.55rem 1.1rem;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: transparent;
  border: 1px solid var(--accent);
  border-radius: 99px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.story-toggle:hover { background: var(--accent); color: #fff; }
.story-toggle-ico { font-size: 14px; line-height: 1; }

/*
  ============================================================================
  БЕНТО ГЛАВНОЙ по концептам КД (05.08.2026). Только ?preview=v1.
  Три блока: «О проекте» (.bento--about), «Что предлагаю» (.bento--offer),
  реплики «Как это работает» (.bento--voice). Разметка — ветками $pv в page-home.php.

  Три работающие вещи (по брифу):
  1. Тональные подложки — очень светлые, без плотных заливок: терракот у смысловых
     якорей, золото по крему у «качества», остальное на нейтральном креме.
  2. Неравные ячейки, в т.ч. на телефоне: пары карточек стоят в два столбца и на 375px.
  3. Раскладка текста: по центру облачка (вертикально), выключка по краям, переносы.

  ШРИФТЫ И СТИЛИСТИКА КАРТОЧЕК — как в оригинале (правка владельца 06.08.2026):
  антиквы (Playfair) в заголовках НЕТ, кегли/цвета/начертания повторяют боевые
  .principle-* / .service-feature-* / .about-fact / .utp-*. Меняются только раскладка
  (бенто), тональные подложки и скруглённое фото. «Дороже» — за счёт композиции, не шрифта.

  Собрано от мобильной раскладки (база — телефон), десктоп = её развитие в @media 769+.
  ============================================================================
*/

/* Тональные токены — очень светлые оттенки существующей палитры, новых цветов нет */
.bento {
  --pv-cream:      #F3EDE4;  /* нейтральный крем (= боевой --card) */
  --pv-terra:      #F5E6DD;  /* очень светлый терракот — смысловые якоря */
  --pv-terra-line: #E3C4B3;
  --pv-gold:       #F4ECD8;  /* золото по крему — «качество» */
  --pv-gold-line:  #E3CE9E;
  --pv-line:       #E7D8C3;  /* мягкая граница нейтральной ячейки */

  display: grid;
  grid-template-columns: 1fr 1fr;   /* база — телефон: две колонки */
  gap: 12px;
  align-items: start;               /* ячейки своей высоты, прижаты к ВЕРХУ ряда:
                                       ряд не выравнивается по самой высокой ячейке */
  margin: 1.5rem 0 0;
}
.bento--voice { margin-top: 1.25rem; }

/* Ячейка: заголовок и текст прижаты к ВЕРХУ облачка. justify-content:center из захода 1
   убран — из-за него заголовки в ряду висели на разной высоте и сетка не читалась.
   База телефона — каждая ячейка на всю ширину (span 2); пары ниже сужаются до span 1. */
.bento-cell {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  background: var(--pv-cream);
  border: 1px solid var(--pv-line);
  border-radius: 18px;
  padding: 1.4rem 1.5rem;
}
.bento-cell--pair { grid-column: span 1; }   /* пара — в два столбца и на телефоне */

.bento-cell--terra { background: var(--pv-terra); border-color: var(--pv-terra-line); }
.bento-cell--gold  { background: var(--pv-gold);  border-color: var(--pv-gold-line); }

/* Фото в «О проекте» — портрет 3/4 (телефон), тот же кроп center top,
   разница только в скруглённых углах — как у карточек (по просьбе владельца). */
.bento-photo {
  grid-column: span 2;
  aspect-ratio: 3 / 4;
  border-radius: 18px;
  border: 1px solid var(--rule);
  background-size: cover;
  background-position: center top;
  background-color: var(--card);
}

/* Заголовок ячейки — шрифт и стилистика как в оригинале карточек (по просьбе владельца):
   гротеск (Panton по умолчанию), тот же кегль/начертание/цвет, что у .principle-title
   и .service-feature-title на боевой. Антиквы (Playfair) в карточках НЕТ. */
.bento-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 0.5rem;
}
/* Лид оффера — как боевой .service-name (крупнее, но тот же гротеск) */
.bento-title--lg {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
}

/* Текст ячейки — как оригинальный .principle-desc / .service-feature-desc: гротеск,
   цвет --mid. Выключка по ЛЕВОМУ краю (justify снят везде: карточка на 2-3 строки
   в узкой колонке гонит «реки»; выключка по ширине — только в связной прозе от 3 строк).
   Мера ограничена max-width ~60 знаков — на широкой ячейке (w4/w6) строка всё равно
   короткая и прижата влево: ширина плитки и мера строки — разные вещи.
   hyphens по умолчанию ВЫКЛ (в двухколоночных мера 45-50, переносы рвут слова);
   включаются только в ячейках от 3 колонок — в @media desktop ниже. */
.bento-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--mid);
  text-align: left;
  max-width: 60ch;
  -webkit-hyphens: manual;
  hyphens: manual;
}

/* «Победный» блок реплик — как боевой .utp-win: --ink, курсив */
.bento-win .bento-desc { color: var(--ink); font-style: italic; }
/* Голоса гостей в кавычках — как боевой .utp-quote em */
.bento--voice em { font-style: italic; color: var(--ink); font-weight: 500; }

/* Реплики «Как это работает»: слева якорь «Каждый гость», справа гостевые полосы
   друг под другом; ниже — заключение (золото) + отзыв про «ангелов» (терракот) в
   отдельной под-сетке с лёгкой асимметрией долей (десктоп — ниже, в @media). */
.bento-voice-bottom {
  grid-column: 1 / -1;            /* нижняя пара — во всю ширину сетки реплик */
  display: grid;
  grid-template-columns: 1fr;    /* база/мобиле — стопкой друг под другом */
  gap: 12px;
}
.bento-voice-bottom .bento-cell { grid-column: auto; }   /* внутри под-сетки — по одной колонке */

/* Список фактов в «Кто я» — как боевой .about-fact: --ink, точка-маркер акцентом */
.bento-facts { display: flex; flex-direction: column; gap: 9px; }
.bento-fact {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
}
.bento-fact::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 7px;
}

/* --- Десктоп: неравные ячейки на 6-колоночной сетке (телефон = её свёртка).
   Раскладка идёт авто-потоком по DOM-порядку: ширину задаёт span, ряд — заполнение.
   «О проекте»: [фото 2][Кто я 4] / [—][Слушаю 2][Замечаю 2] / [Сосредоточен 3][Мобилен 3] /
   [Искренен 2][Узнаваем 2][Больше 2]. «Что предлагаю»: [Лид 6] / [Любой 3][Стабильно 3] /
   [Гости 2][Разворачиваюсь 4]. Реплики: [A 2][B1 2][B2 2] / [C 4]. --- */
@media (min-width: 769px) {
  .bento { grid-template-columns: repeat(6, 1fr); }

  .bento-cell--w2 { grid-column: span 2; }
  .bento-cell--w3 { grid-column: span 3; }
  .bento-cell--w4 { grid-column: span 4; }
  .bento-cell--w6 { grid-column: span 6; }

  /* Фото тянется на два ряда сетки (ряды 1-2) слева, заполняя их без зазора. */
  .bento--about .bento-photo {
    grid-column: span 2;
    grid-row: 1 / span 2;
    align-self: stretch;
    aspect-ratio: auto;
  }

  /* hyphens:auto только в ячейках от 3 колонок — на широкой мере переносы уместны;
     в двухколоночных остаются выключенными (базовое правило .bento-desc). */
  .bento-cell--w3 .bento-desc,
  .bento-cell--w4 .bento-desc,
  .bento-cell--w6 .bento-desc {
    -webkit-hyphens: auto;
    hyphens: auto;
    hyphenate-limit-chars: 6 3 3;   /* не рвать короткие слова */
  }

  /* Реплики: «Каждый гость» — левый якорь на два ряда (справа B1 над B2),
     заполняет высоту правой колонки без зазора, как фото в «О проекте». */
  .bento--voice .bento-voice-anchor {
    grid-row: span 2;
    align-self: stretch;
  }
  /* Нижняя пара: левый (заключение) чуть уже, правый (отзыв) чуть шире — высоты
     примерно совпадают, но не в ноль: асимметрия. Мера следует за шириной плитки. */
  .bento-voice-bottom {
    grid-template-columns: 2.6fr 3.4fr;
    align-items: start;
  }
  .bento-voice-bottom .bento-desc { max-width: none; }
}

/* --- Узкий телефон (320px): паре чуть меньше внутренних полей, чтобы текст
   не жался. Кегль заголовка родной (15px) — не трогаем. --- */
@media (max-width: 380px) {
  .bento-cell { padding: 1.2rem 1.15rem; }
  .bento-cell--pair { padding: 1.1rem 0.95rem; }
}

/* --- Пункт 3 (06.08.2026): ниже 350px пары в два столбца дают колонку 12–15 знаков —
   текст рассыпается в столбик по два слова. Здесь пары раскрываются на всю ширину сетки
   (span 2 = обе колонки), пар больше нет. Порог 350, а не 380: на 350–380 пары ещё
   читаемы, поэтому уменьшение полей выше остаётся на своём 380. Выключку по ширине
   не вводим (обсуждалось и отклонено). --- */
@media (max-width: 350px) {
  .bento-cell--pair { grid-column: span 2; }
}

/* === REVIEWS (09.08.2026, звёзды добавлены 10.08.2026) — блок на главной
   + страница /reviews === Карточка по образцу .work-card: радиус 18px
   (эталон бенто), только токены --bg/--ink/--mid/--rule/--card/--accent/--gold. */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 2rem;
}

.review-card {
  background: var(--bg);
  border: 0.5px solid var(--rule);
  border-radius: 18px;
  padding: 1.3rem 1.3rem 1.2rem;
}

.review-rating {
  font-size: 13px;
  line-height: 1;
  color: var(--gold);
  letter-spacing: 2px;
  margin-bottom: 0.6rem;
}

.review-text {
  font-size: 14px;
  color: var(--ink);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.review-sign {
  font-size: 12px;
  font-weight: 600;
  color: var(--mid);
}

.review-event {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--mid);
  margin-top: 2px;
}

.reviews-cta {
  padding: 1.5rem 0 0;
  display: flex;
  justify-content: flex-start;
}

/* Страница /reviews — обёртка по образцу .review-page (форма /review) */
.reviews-page {
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  padding: 3rem 2.5rem 4rem;
  flex: 1;
}

.reviews-page h1 {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.reviews-sub {
  font-size: 15px;
  color: var(--mid);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.reviews-empty {
  font-size: 14px;
  color: var(--mid);
  padding: 1.5rem 0;
}

@media (max-width: 768px) {
  .reviews-grid { grid-template-columns: 1fr; }
  .reviews-page { padding: 2rem 1.2rem 3rem; }
}
