/* =====================================================================
   EL Book Club — общий стиль всех страниц.
   Цвета и шрифты меняются в :root.
   ===================================================================== */
:root {
  --wine: #9E1C2C;          /* бордовый из логотипа */
  --wine-dark: #6E1220;
  --wine-soft: #F6E7E6;
  --copper: #A6764E;        /* коричневый «BOOK CLUB» */
  --paper: #FBF8F3;         /* фон */
  --cream: #F3ECE2;         /* фон секций */
  --ink: #2A1D1A;           /* текст */
  --ink-2: #4A3A34;
  --muted: #7A6A62;
  --line: #E6DCCF;
  --dark: #231816;          /* тёмные блоки */
  --f-serif: "Cormorant Garamond", Georgia, serif;
  --f-sans: "Manrope", system-ui, sans-serif;
  --f-script: "Marck Script", cursive;
  --hdr: 84px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { background: var(--paper); color: var(--ink); font: 16px/1.6 var(--f-sans); overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.sec { padding: 96px 0; }
.sec--cream { background: var(--cream); }
.sec--dark { background: var(--dark); color: #F5EEE6; }
h1, h2, h3 { font-family: var(--f-serif); font-weight: 600; line-height: 1.08; letter-spacing: -.01em; }
.title { font-size: clamp(34px, 4.6vw, 54px); }
.kicker { display: block; margin-bottom: 14px; font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--copper); }
.sec--dark .kicker { color: #D9A97F; }
.lead { font-size: 18px; color: var(--muted); max-width: 640px; }
.sec--dark .lead { color: #BFAFA5; }
.script { font-family: var(--f-script); color: var(--copper); }
.sec__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 44px; flex-wrap: wrap; }
.sec__head .lead { margin-top: 12px; }

/* пометка в макете: что заменить (удалить, когда наполните) */
.todo { display: inline-block; margin-top: 18px; padding: 6px 10px; border: 1px dashed #D9B800; border-radius: 6px; background: #FFF4C2; color: #6B5600; font-size: 12px; }

/* ===== Кнопки ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 28px; border: 0; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: 15px; white-space: nowrap; transition: transform .15s var(--ease), background-color .2s, color .2s, border-color .2s; }
.btn:active { transform: scale(.97); }
.btn--wine { background: var(--wine); color: #fff; }
.btn--wine:hover { background: var(--wine-dark); }
.btn--line { border: 1.5px solid currentColor; background: transparent; }
.btn--line:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.sec--dark .btn--line:hover { background: #fff; border-color: #fff; color: var(--ink); }
.btn--light { background: #fff; color: var(--wine); }
.btn--sm { padding: 11px 20px; font-size: 14px; }
.link { display: inline-flex; gap: 8px; color: var(--wine); font-weight: 600; transition: gap .2s; }
.link:hover { gap: 12px; }

/* ===== Шапка ===== */
.hdr { position: fixed; inset: 0 0 auto; z-index: 80; transition: background-color .3s, box-shadow .3s, height .3s; }
.hdr.is-scrolled, .hdr.is-menu { background: var(--paper); box-shadow: 0 1px 0 var(--line), 0 10px 30px -20px rgba(42, 29, 26, .25); }
.hdr__in { display: flex; align-items: center; gap: 28px; height: var(--hdr); transition: height .3s; }
.hdr.is-scrolled .hdr__in { height: 70px; }
.logo { display: inline-flex; flex-direction: column; align-items: flex-start; flex-shrink: 0; }
.logo img { height: 56px; width: auto; transition: height .3s; }
.hdr.is-scrolled .logo img { height: 46px; }
.nav { display: flex; align-items: center; gap: 30px; margin-left: auto; font-size: 15px; font-weight: 500; }
.nav a { position: relative; color: var(--ink-2); transition: color .2s; white-space: nowrap; }
.nav a:hover, .nav a.is-active { color: var(--wine); }
.nav a.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 2px; border-radius: 2px; background: var(--wine); }
.nav .btn { display: none; }
.burger { display: none; width: 44px; height: 44px; margin-left: auto; padding: 0; border: 0; border-radius: 12px; background: var(--cream); cursor: pointer; }
.burger span { display: block; width: 20px; height: 2px; margin: 4px auto; border-radius: 2px; background: var(--ink); transition: transform .3s, opacity .3s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ===== Главный экран (главная) ===== */
.hero { position: relative; padding: calc(var(--hdr) + 60px) 0 90px; overflow: hidden; }
.hero::before { content: ""; position: absolute; right: -180px; top: -120px; width: 620px; height: 620px; border-radius: 50%; background: radial-gradient(circle, rgba(158, 28, 44, .10), transparent 65%); pointer-events: none; }
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.hero h1 { font-size: clamp(48px, 7vw, 92px); }
.hero h1 em { color: var(--wine); }
.hero .script { display: block; margin: 10px 0 26px; font-size: 30px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }
.facts { display: flex; gap: 44px; margin-top: 54px; padding-top: 26px; border-top: 1px solid var(--line); }
.facts b { display: block; font: 700 40px/1 var(--f-serif); color: var(--wine); }
.facts span { font-size: 13px; color: var(--muted); }

/* Карточка «Сейчас читаем» */
.nowcard { position: relative; padding: 28px; border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: 0 40px 70px -40px rgba(110, 18, 32, .45); }
.nowcard__top { display: flex; gap: 20px; align-items: stretch; }
.cover { position: relative; flex-shrink: 0; display: flex; flex-direction: column; justify-content: flex-end; width: 130px; aspect-ratio: 2 / 3; padding: 14px; border-radius: 4px 10px 10px 4px; background: linear-gradient(160deg, #B8324A, var(--wine-dark)); color: #fff; box-shadow: inset 6px 0 0 rgba(0, 0, 0, .18), 0 16px 26px -14px rgba(0, 0, 0, .45); overflow: hidden; }
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover b { position: relative; font: 600 18px/1.1 var(--f-serif); }
.cover i { position: relative; margin-top: 4px; font-style: normal; font-size: 11px; opacity: .85; }
.nowcard h3 { font-size: 28px; }
.nowcard .by { color: var(--muted); font-size: 14px; }
.pill { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--wine-soft); color: var(--wine); font-size: 12px; font-weight: 700; }
.pill--live::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--wine); vertical-align: 1px; animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .25; } }
.bar { height: 8px; margin: 18px 0 8px; border-radius: 99px; background: var(--cream); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 99px; background: var(--wine); transition: width 1s var(--ease); }
.meta { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--muted); }
.qday { margin-top: 20px; padding: 18px 20px; border-radius: 16px; background: var(--paper); }
.qday small { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--copper); }
.qday p { margin-top: 6px; font: italic 500 21px/1.35 var(--f-serif); }

/* ===== Шапка внутренних страниц ===== */
.phero { padding: calc(var(--hdr) + 56px) 0 64px; background: var(--cream); }
.crumbs { display: flex; gap: 8px; list-style: none; margin-bottom: 22px; font-size: 13px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .5; }
.crumbs a:hover { color: var(--wine); }
.phero h1 { font-size: clamp(44px, 6.4vw, 80px); }
.phero h1 em { color: var(--wine); }
.phero .lead { margin-top: 16px; }

/* ===== Тизеры разделов на главной ===== */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.tile { display: flex; flex-direction: column; gap: 10px; padding: 30px 28px; border: 1px solid var(--line); border-radius: 22px; background: #fff; transition: transform .25s var(--ease), box-shadow .25s; }
.tile:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -28px rgba(42, 29, 26, .35); }
.tile b { font: 700 15px var(--f-serif); color: var(--copper); }
.tile h3 { font-size: 28px; }
.tile p { flex: 1; color: var(--muted); font-size: 15px; }

/* ===== Этапы книги ===== */
.stages { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 0; margin-top: 10px; counter-reset: st; }
.stage { position: relative; padding: 26px 18px 0 0; }
.stage::before { content: ""; position: absolute; top: 9px; left: 0; right: 0; height: 2px; background: #4A3A35; }
.stage::after { content: ""; position: absolute; top: 2px; left: 0; width: 16px; height: 16px; border: 2px solid #4A3A35; border-radius: 50%; background: var(--dark); }
.stage.is-done::before, .stage.is-now::before { background: var(--wine); }
.stage.is-done::after { background: var(--wine); border-color: var(--wine); }
.stage.is-now::after { border-color: #D9A97F; background: #D9A97F; box-shadow: 0 0 0 6px rgba(217, 169, 127, .2); }
.stage small { display: block; font-size: 12px; color: #9C8B82; }
.stage h4 { margin-top: 2px; font: 600 22px/1.15 var(--f-serif); color: #fff; }
.stage p { margin-top: 4px; font-size: 13px; color: #BFAFA5; }
.stage.is-now small { color: #D9A97F; font-weight: 700; }

.days { display: grid; grid-template-columns: repeat(10, 1fr); gap: 8px; }
.day { display: grid; place-items: center; aspect-ratio: 1; border: 1px solid #4A3A35; border-radius: 10px; color: #8F7F77; font-size: 13px; }
.day.is-done { background: var(--wine); border-color: var(--wine); color: #fff; }
.day.is-now { border: 2px solid #D9A97F; color: #fff; font-weight: 700; }

.read-grid { display: grid; grid-template-columns: 300px 1fr; gap: 60px; align-items: start; }
.read-grid .cover { width: 100%; padding: 26px; }
.read-grid .cover b { font-size: 36px; }
.read-grid .cover i { font-size: 14px; }
.panel { padding: 28px; border-radius: 20px; background: #33241F; }
.panel + .panel { margin-top: 20px; }
.panel h3 { margin-bottom: 18px; font-size: 26px; color: #fff; }
.qlist { display: grid; gap: 14px; list-style: none; }
.qlist li { padding: 18px 22px; border-left: 3px solid var(--wine); border-radius: 4px 14px 14px 4px; background: rgba(255, 255, 255, .04); }
.qlist li.is-today { border-color: #D9A97F; background: rgba(217, 169, 127, .1); }
.qlist small { font-size: 12px; color: #9C8B82; }
.qlist p { margin-top: 4px; font: italic 500 20px/1.4 var(--f-serif); color: #F5EEE6; }

/* ===== Встречи ===== */
.events { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.event { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.event__img { position: relative; aspect-ratio: 16 / 10; background: repeating-linear-gradient(-45deg, #EFE6DA 0 12px, #F6F0E8 12px 24px); display: grid; place-items: center; color: var(--muted); font-size: 13px; }
.event__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.event__date { position: absolute; top: 14px; left: 14px; z-index: 1; min-width: 62px; padding: 8px 10px; border-radius: 14px; background: #fff; text-align: center; box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .3); }
.event__date b { display: block; font: 700 28px/1 var(--f-serif); color: var(--wine); }
.event__date span { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.event__body { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 22px; }
.event__when { font-size: 13px; font-weight: 600; color: var(--wine); }
.event h3 { font-size: 26px; }
.event p { flex: 1; font-size: 14px; color: var(--muted); }
.event__foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; }
.event--past .event__img { filter: grayscale(.4); }
.empty { padding: 40px; border: 1.5px dashed var(--line); border-radius: 20px; text-align: center; color: var(--muted); }
.empty b { display: block; margin-bottom: 6px; font: 600 26px var(--f-serif); color: var(--ink); }

/* ===== Библиотека ===== */
.shelf { display: grid; grid-template-columns: repeat(5, 1fr); gap: 30px 22px; }
.book { cursor: pointer; text-align: left; border: 0; background: none; color: inherit; }
.book .cover { width: 100%; transition: transform .25s var(--ease); }
.book:hover .cover { transform: translateY(-6px) rotate(-1deg); }
.book .cover b { font-size: 20px; }
.book__info { margin-top: 12px; }
.book__info h3 { font-size: 20px; }
.book__info p { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.stars { color: var(--wine); letter-spacing: 1px; white-space: nowrap; }

/* ===== Окно (книга, запись на встречу) ===== */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(35, 24, 22, .55); opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
.modal.is-open { opacity: 1; visibility: visible; }
.modal__box { position: relative; width: min(760px, 100%); max-height: calc(100dvh - 40px); overflow: auto; padding: 40px; border-radius: 26px; background: var(--paper); transform: translateY(16px); transition: transform .3s var(--ease); }
.modal.is-open .modal__box { transform: none; }
.modal__x { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--cream); cursor: pointer; font-size: 22px; line-height: 1; }
.bookhead { display: flex; gap: 26px; margin-bottom: 26px; }
.bookhead .cover { width: 140px; }
.bookhead h2 { font-size: 36px; }
.bookhead p { color: var(--muted); }
.reviews { display: grid; gap: 12px; margin: 16px 0 26px; list-style: none; }
.reviews li { padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.reviews .who { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; font-weight: 700; }
.reviews p { margin-top: 6px; font-size: 15px; color: var(--ink-2); }
.demo { font-size: 11px; font-weight: 600; color: #B39500; }

/* ===== Формы ===== */
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; }
.form input, .form select, .form textarea { width: 100%; padding: 13px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); font: 15px var(--f-sans); }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--wine); outline-offset: 1px; }
.choice { display: flex; gap: 10px; flex-wrap: wrap; }
.choice label { display: flex; flex: 1; align-items: center; gap: 10px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; font-weight: 600; }
.choice label:has(input:checked) { border-color: var(--wine); background: var(--wine-soft); }
.choice input { width: auto; accent-color: var(--wine); }
.rate { display: flex; gap: 4px; flex-direction: row-reverse; justify-content: flex-end; }
.rate input { position: absolute; opacity: 0; width: 1px; }
.rate label { display: block; font-size: 30px; line-height: 1; color: var(--line); cursor: pointer; }
.rate input:checked ~ label, .rate label:hover, .rate label:hover ~ label { color: var(--wine); }
.note { font-size: 12px; color: var(--muted); }
.ok { padding: 18px; border-radius: 14px; background: #EAF5EC; color: #245C32; font-size: 14px; }
.ok b { display: block; margin-bottom: 4px; font-size: 16px; }

/* ===== Вступить ===== */
.join { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; padding: 56px; border: 1px solid var(--line); border-radius: 30px; background: #fff; }
.join .script { margin-top: 26px; font-size: 28px; }
.join__perks { display: grid; gap: 10px; margin-top: 26px; list-style: none; }
.join__perks li::before { content: "✦"; margin-right: 10px; color: var(--copper); }

/* ===== Основатель / о клубе ===== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.ph { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 5; padding: 20px; border-radius: 22px; background: repeating-linear-gradient(45deg, #E8DED1 0 14px, #EFE7DC 14px 28px); color: var(--muted); font-size: 14px; text-align: center; }
.prose p + p { margin-top: 16px; }
.bigquote { margin: 30px 0 8px; padding-left: 22px; border-left: 3px solid var(--wine); font: italic 500 28px/1.3 var(--f-serif); color: var(--wine); }
.timeline { display: grid; gap: 0; list-style: none; max-width: 760px; }
.timeline li { position: relative; padding: 0 0 34px 40px; border-left: 2px solid var(--line); }
.timeline li::before { content: ""; position: absolute; left: -9px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--wine); }
.timeline small { font-weight: 700; color: var(--copper); }
.timeline h3 { font-size: 26px; }
.timeline p { color: var(--muted); }

/* ===== Проекты ===== */
.pfacts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 48px 0; padding: 30px 0; border-top: 1px solid #4A3A35; border-bottom: 1px solid #4A3A35; }
.pfacts b { display: block; font: 700 44px/1 var(--f-serif); color: #F2C9A8; }
.pfacts span { font-size: 13px; color: #BFAFA5; }
.pparts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ppart { padding: 28px; border-radius: 20px; background: #33241F; }
.ppart small { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #D9A97F; }
.ppart h3 { margin: 10px 0 8px; font-size: 26px; color: #fff; }
.ppart p { font-size: 15px; color: #BFAFA5; }
.pgallery { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 16px; margin-top: 40px; }
.pgallery figure { position: relative; margin: 0; overflow: hidden; aspect-ratio: 4 / 5; border-radius: 18px; background: #33241F; }
.pgallery figure:first-child { grid-row: span 2; aspect-ratio: auto; }
.pgallery img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.pgallery figure:hover img { transform: scale(1.04); }
.pgallery figcaption { position: absolute; inset: auto 0 0; padding: 36px 16px 14px; font-size: 13px; line-height: 1.4; color: #fff; background: linear-gradient(transparent, rgba(20, 12, 10, .78)); }
.ph--dark { aspect-ratio: 4 / 3; background: repeating-linear-gradient(45deg, #33241F 0 14px, #3A2A25 14px 28px); color: #9C8B82; }
.ptimeline { margin-top: 64px; }
.ptimeline > h3 { margin-bottom: 30px; font-size: 32px; color: #fff; }
.timeline--dark li { border-color: #4A3A35; }
.timeline--dark h3 { color: #fff; }
.timeline--dark p { color: #BFAFA5; }
.timeline--dark small { color: #D9A97F; }
.partners { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 50px; padding: 24px 28px; border: 1px solid #4A3A35; border-radius: 18px; }
.partners span { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #9C8B82; }
.partners b { font: 600 22px var(--f-serif); color: #fff; }
.steps { display: grid; gap: 18px; list-style: none; }
.steps li { display: flex; gap: 20px; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.steps li > b { flex-shrink: 0; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--wine-soft); color: var(--wine); font: 700 22px var(--f-serif); }
.steps h3 { font-size: 24px; }
.steps p { margin-top: 4px; font-size: 15px; color: var(--muted); }
.soon { max-width: 760px; margin: 0 auto; text-align: center; }
.soon .lead { margin-left: auto; margin-right: auto; }

.founder { width: 100%; max-width: 520px; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 22%; border-radius: 22px; }

/* Проект на главной */
.feature { display: grid; grid-template-columns: 1.1fr .9fr; overflow: hidden; border-radius: 28px; background: var(--dark); color: #F5EEE6; }
.feature__body { padding: 52px; }
.feature__body .kicker { color: #D9A97F; }
.feature__body h2 { font-size: clamp(32px, 3.6vw, 46px); color: #fff; }
.feature__body p { margin-top: 16px; color: #BFAFA5; }
.feature__nums { display: flex; gap: 34px; margin: 28px 0 32px; }
.feature__nums b { display: block; font: 700 36px/1 var(--f-serif); color: #F2C9A8; }
.feature__nums span { font-size: 12px; color: #BFAFA5; }
.feature .ph { aspect-ratio: auto; min-height: 100%; border-radius: 0; }
.feature__img { display: block; width: 100%; height: 100%; min-height: 100%; object-fit: cover; }

/* ===== Вопросы ===== */
.faq { max-width: 840px; }
.faq details { padding: 24px 0; border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 20px; cursor: pointer; list-style: none; font: 600 25px/1.25 var(--f-serif); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex-shrink: 0; font-size: 30px; line-height: 1; color: var(--wine); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 12px; color: var(--muted); }

/* ===== Каналы связи ===== */
.channels { display: flex; gap: 12px; flex-wrap: wrap; }
.ch { display: inline-flex; align-items: center; gap: 12px; padding: 12px 20px 12px 12px; border: 1px solid var(--line); border-radius: 16px; background: #fff; font-weight: 600; transition: border-color .2s; }
.ch:hover { border-color: var(--wine); }
.ico { display: grid; place-items: center; flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; }
.ico svg { width: 56%; height: 56%; }
.ico--sm { width: 38px; height: 38px; transition: transform .2s var(--ease); }
.socials { display: flex; gap: 10px; margin: 10px 0 14px; }
.socials a { margin: 0; }
.socials a:hover .ico { transform: translateY(-2px); }
.ch small { display: block; font-size: 12px; font-weight: 500; color: var(--muted); }
.sec--dark .ch { background: #33241F; border-color: #4A3A35; color: #fff; }

/* ===== Подвал ===== */
.ftr { padding: 64px 0 36px; background: var(--dark); color: #BFAFA5; font-size: 14px; }
.ftr__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.ftr img { height: 58px; width: auto; margin-bottom: 16px; }
.ftr h4 { margin-bottom: 14px; font: 600 20px var(--f-serif); color: #fff; }
.ftr a { display: block; margin-bottom: 8px; }
.ftr a:hover { color: #fff; }
.ftr__copy { display: flex; justify-content: space-between; gap: 10px; margin-top: 50px; padding-top: 24px; border-top: 1px solid #3E2F2A; font-size: 12px; }

/* появление при прокрутке */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.rv.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; } * { transition: none !important; animation: none !important; } }

/* ===== Планшет и телефон ===== */
@media (max-width: 1080px) {
  .burger { display: block; }
  .nav { position: fixed; inset: var(--hdr) 0 0; flex-direction: column; align-items: stretch; gap: 0; padding: 16px 24px 32px; background: var(--paper); opacity: 0; visibility: hidden; transform: translateY(-10px); transition: opacity .2s, transform .2s, visibility .2s; overflow: auto; }
  .hdr.is-scrolled .nav { inset: 70px 0 0; }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav a { padding: 16px 0; border-bottom: 1px solid var(--line); font: 600 28px var(--f-serif); }
  .nav a.is-active::after { display: none; }
  .nav .btn { display: inline-flex; margin-top: 24px; padding: 16px; border-bottom: 0; font: 600 16px var(--f-sans); color: #fff; }
  .hdr__cta { display: none; }
  .hero__grid, .read-grid, .split, .join { grid-template-columns: 1fr; }
  .read-grid .cover { max-width: 260px; }
  .tiles, .events { grid-template-columns: 1fr 1fr; }
  .shelf { grid-template-columns: repeat(3, 1fr); }
  .ftr__grid { grid-template-columns: 1fr 1fr; }
  .stages { grid-auto-flow: row; }
  .pfacts { grid-template-columns: 1fr 1fr; }
  .pparts { grid-template-columns: 1fr; }
  .feature { grid-template-columns: 1fr; }
  .feature .ph { min-height: 220px; }
  .feature__img { height: 340px; }
  .pgallery { grid-template-columns: 1fr 1fr; }
  .pgallery figure:first-child { grid-column: span 2; grid-row: auto; aspect-ratio: 4 / 3; }
  .stage { padding: 0 0 22px 32px; }
  .stage::before { top: 0; bottom: 0; left: 7px; right: auto; width: 2px; height: auto; }
  .stage::after { top: 2px; }
}
@media (max-width: 640px) {
  :root { --hdr: 72px; }
  .wrap { padding: 0 16px; }
  .sec { padding: 68px 0; }
  .logo img { height: 46px; }
  .hdr.is-scrolled .logo img { height: 40px; }
  .hdr.is-scrolled .hdr__in { height: 62px; }
  .hdr.is-scrolled .nav { inset: 62px 0 0; }
  .hero { padding-top: calc(var(--hdr) + 36px); }
  .facts { gap: 24px; }
  .facts b { font-size: 32px; }
  .tiles, .events { grid-template-columns: 1fr; }
  .shelf { grid-template-columns: repeat(2, 1fr); }
  .days { grid-template-columns: repeat(5, 1fr); }
  .nowcard { padding: 20px; }
  .nowcard__top { gap: 16px; }
  .nowcard .cover { width: 100px; }
  .join { padding: 28px 20px; gap: 30px; }
  .modal__box { padding: 28px 20px; }
  .bookhead { flex-direction: column; }
  .ftr__grid { grid-template-columns: 1fr; }
  .ftr__copy { flex-direction: column; }
  .pgallery { gap: 10px; }
  .pgallery figcaption { padding: 28px 10px 10px; font-size: 12px; }
  .pfacts b { font-size: 34px; }
  .feature__body { padding: 30px 22px; }
  .feature__nums { gap: 22px; }
}

/* ---------- Обложки-фото ---------- */
.cover--img { padding: 0; }
.cover--img b, .cover--img i { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cover--img::after { content: ""; position: absolute; inset: 0; box-shadow: inset 5px 0 0 rgba(0, 0, 0, .14), inset 6px 0 6px -4px rgba(255, 255, 255, .35); border-radius: inherit; pointer-events: none; }

/* ---------- Фотоальбомы встреч ---------- */
button.link { padding: 0; border: 0; background: none; font: inherit; font-weight: 600; cursor: pointer; }
.event__links { display: inline-flex; flex-wrap: wrap; gap: 6px 16px; }
.event--album .event__img { cursor: zoom-in; filter: none; overflow: hidden; }
.event--album .event__img img { transition: transform .6s ease; }
.event--album .event__img:hover img { transform: scale(1.04); }
.event__count { position: absolute; right: 12px; bottom: 12px; padding: 6px 12px; border-radius: 999px; background: rgba(35, 24, 22, .72); color: #fff; font-size: 12px; font-weight: 600; backdrop-filter: blur(4px); }
.modal__box--wide { width: min(1080px, 100%); }
.album h2 { margin: 6px 0 18px; font-size: clamp(26px, 3vw, 36px); }
.album__stage { position: relative; margin: 0; overflow: hidden; border-radius: 18px; background: var(--dark); }
.album__stage img { display: block; width: 100%; height: min(64dvh, 640px); object-fit: contain; }
.album__stage figcaption { position: absolute; left: 14px; bottom: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(0, 0, 0, .5); color: #fff; font-size: 12px; }
.album__nav { position: absolute; top: 50%; width: 46px; height: 46px; margin-top: -23px; border: 0; border-radius: 50%; background: rgba(251, 248, 243, .9); color: var(--ink); font-size: 28px; line-height: 1; cursor: pointer; transition: background .2s; }
.album__nav:hover { background: #fff; }
.album__nav--prev { left: 12px; }
.album__nav--next { right: 12px; }
.album__thumbs { display: flex; gap: 8px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; }
.album__thumbs button { flex: 0 0 auto; width: 76px; height: 76px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: none; cursor: pointer; opacity: .6; transition: opacity .2s, border-color .2s; }
.album__thumbs button.is-on, .album__thumbs button:hover { opacity: 1; border-color: var(--wine); }
.album__thumbs img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 640px) {
  .album__stage img { height: 52dvh; }
  .album__nav { width: 38px; height: 38px; margin-top: -19px; font-size: 22px; }
  .album__thumbs button { width: 58px; height: 58px; }
}

/* ---------- Что вас ждёт ---------- */
.perks { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.perk { padding: 26px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.perk > span { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--cream); font-size: 24px; }
.perk h3 { margin: 16px 0 6px; font-size: 24px; }
.perk p { font-size: 14px; color: var(--muted); }

/* ---------- Отзывы ---------- */
.reviews time { display: block; margin-top: 8px; font-size: 12px; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.rfeed { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.rcard { display: flex; flex-direction: column; gap: 10px; padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: #fff; font: inherit; color: inherit; text-align: left; cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s; }
.rcard:hover { transform: translateY(-4px); box-shadow: 0 18px 30px -22px rgba(35, 24, 22, .45); }
.rcard__book { display: flex; gap: 12px; align-items: center; }
.rcard__book img { width: 40px; height: 60px; flex-shrink: 0; border-radius: 3px 6px 6px 3px; object-fit: cover; box-shadow: 0 6px 12px -8px rgba(0, 0, 0, .5); }
.rcard__book b { display: block; font: 600 19px/1.15 var(--f-serif); }
.rcard__book i { font-style: normal; font-size: 12px; color: var(--muted); }
.rcard p { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; font-size: 15px; color: var(--ink-2); }
.rcard__who { margin-top: auto; font-size: 13px; font-weight: 700; }

/* ---------- Без фото у встречи — логотип клуба ---------- */
.event__logo { width: 46%; height: 34%; background: url(../assets/logo-mark.png) center / contain no-repeat; opacity: .28; }

/* ---------- Телефоны ---------- */
.join > *, .split > *, .hero__grid > *, .read-grid > * { min-width: 0; }
.form select { max-width: 100%; text-overflow: ellipsis; }
@media (max-width: 640px) {
  /* 16px — иначе iPhone приближает страницу при вводе */
  .form input, .form select, .form textarea { font-size: 16px; }
  .hero__cta .btn { flex: 1 1 100%; justify-content: center; }
  .split { gap: 24px; }
  .channels { display: grid; grid-template-columns: 1fr; width: 100%; }
  .event__img { aspect-ratio: 16 / 9; }
  .feature__nums { flex-wrap: wrap; gap: 18px 26px; }
  .feature__nums b { font-size: 28px; }
  .feature__body .btn { width: 100%; justify-content: center; }
  .shelf[data-limit="5"] .book:nth-child(5) { display: none; }
  .join .btn--wine { width: 100%; justify-content: center; text-align: center; }
  .choice label { padding: 12px; }
  .rfeed { grid-template-columns: 1fr; }
  .perk { padding: 20px; }
  .bigquote { font-size: 22px; }
  .btn { white-space: normal; text-align: center; }
}
