/* Планер Eventie. Все стили внутри .ep-root, чтобы не задевать остальной сайт. */
.ep-root {
  --ep-ink: #2b0a10;
  --ep-wine: #5b1621;
  --ep-wine-deep: #3f0c15;
  --ep-cream: #f6efe8;
  --ep-gold: #b98d4f;
  --ep-text: #6f5a5c;
  --ep-muted: #a08c8e;
  --ep-line: #eadfd8;
  --ep-soft: #f6efe9;
  --ep-pink: #f2e2da;
  --ep-pink-ink: #8a2b38;
  --ep-ok: #3f8f5f;
  --ep-warn: #a3242f;
  --ep-serif: "Inter Tight", "Inter", -apple-system, sans-serif;
  --ep-mono: "Inter Tight", "Inter", -apple-system, sans-serif;
  --ep-radius: 20px;
  font-family: "Inter Tight", "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ep-ink);
  font-size: 15px;
  line-height: 1.45;
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 16px 64px;
  box-sizing: border-box;
}
/* Внутренняя обёртка: по её ширине подстраивается раскладка. Окна лежат вне её. */
.ep-wrap { container-type: inline-size; }
.ep-root *, .ep-root *::before, .ep-root *::after { box-sizing: border-box; }
.ep-loading, .ep-empty { color: var(--ep-muted); padding: 24px 0; }

/* Сброс оформления темы для полей и кнопок */
.ep-root input, .ep-root select, .ep-root textarea, .ep-root button {
  font-family: inherit; font-size: inherit; color: inherit;
  margin: 0; box-shadow: none; text-transform: none; letter-spacing: normal;
  min-height: 0; height: auto; line-height: 1.3;
}
.ep-root button { cursor: pointer; background: none; border: 0; padding: 0; }
.ep-root a { color: inherit; }

/* Типографика */
.ep-kicker { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--ep-muted); font-weight: 500; margin-bottom: 8px; }
.ep-h1 { font-size: clamp(28px, 4.4vw, 40px); font-weight: 500; line-height: 1.1; margin: 0 0 8px; color: var(--ep-ink); }
.ep-h2 { font-size: 24px; font-weight: 500; margin: 0 0 12px; color: var(--ep-ink); }
.ep-h3 { font-size: 17px; font-weight: 600; margin: 0; color: var(--ep-ink); }
.ep-h4 { font-size: 14px; font-weight: 600; margin: 20px 0 8px; }
.ep-lead { font-size: 17px; color: var(--ep-text); max-width: 560px; margin: 0 0 28px; }
.ep-text { color: var(--ep-text); margin: 8px 0 16px; }
.ep-note { color: var(--ep-muted); font-size: 13px; margin-top: 10px; }
.ep-label { display: block; font-size: 13px; color: var(--ep-text); margin-bottom: 6px; }
.ep-error { color: var(--ep-warn); margin: 0 0 12px; }

/* Кнопки */
.ep-root .ep-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border-radius: 1000px; padding: 14px 28px; font-weight: 500; font-size: 15px;
  text-decoration: none; transition: transform .15s, background .15s, opacity .15s; white-space: nowrap;
}
.ep-root .ep-btn:active { transform: scale(.97); }
.ep-root .ep-btn-dark { background: var(--ep-ink); color: #fff; }
.ep-root .ep-btn-dark:hover { background: #000; color: #fff; }
.ep-root .ep-btn-dark[disabled] { opacity: .5; }
.ep-root .ep-btn-ghost { background: var(--ep-soft); color: var(--ep-ink); }
.ep-root .ep-btn-ghost:hover { background: #e9e9e9; }
.ep-root .ep-btn-sm { padding: 10px 18px; font-size: 14px; }
.ep-root .ep-link { color: var(--ep-text); text-decoration: underline; text-underline-offset: 3px; font-size: 14px; }
.ep-root .ep-link:hover { color: var(--ep-ink); }
.ep-root .ep-link-danger { color: var(--ep-warn); font-size: 13px; text-decoration: underline; }
.ep-root .ep-x {
  width: 28px; height: 28px; flex: 0 0 28px; border-radius: 50%; color: var(--ep-muted);
  font-size: 18px; line-height: 28px; text-align: center; opacity: .6;
}
.ep-root .ep-x:hover { background: var(--ep-soft); color: var(--ep-warn); opacity: 1; }

/* Поля */
.ep-root .ep-input {
  width: 100%; border: 1px solid var(--ep-line); background: #fff; border-radius: 14px;
  padding: 13px 16px; outline: none; transition: border-color .15s;
}
.ep-root .ep-input:focus { border-color: var(--ep-ink); }
.ep-root .ep-input-sm { padding: 10px 14px; font-size: 14px; border-radius: 12px; }
.ep-root .ep-input-xs { width: 56px; padding: 4px 8px; font-size: 13px; border-radius: 8px; text-align: center; }
.ep-root .ep-inline {
  flex: 1; min-width: 0; width: 100%; border: 0; border-bottom: 1px dashed transparent; background: transparent;
  padding: 4px 0; outline: none; border-radius: 0;
}
.ep-root .ep-inline:hover { border-bottom-color: var(--ep-line); }
.ep-root .ep-inline:focus { border-bottom-color: var(--ep-ink); }
.ep-field { display: block; margin-bottom: 16px; }

/* Экран создания */
.ep-setup { max-width: 760px; }
.ep-types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ep-type {
  position: relative; display: flex; flex-direction: column; gap: 2px; padding: 16px; border-radius: 16px;
  background: var(--ep-soft); cursor: pointer; border: 1.5px solid transparent; transition: border-color .15s, background .15s;
}
.ep-type input { position: absolute; opacity: 0; pointer-events: none; }
.ep-type.ep-on { border-color: var(--ep-ink); background: #fff; }
.ep-type-emoji { font-size: 22px; }
.ep-type-title { font-weight: 600; }
.ep-type-hint { font-size: 12px; color: var(--ep-muted); }
.ep-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; margin-top: 8px; }
.ep-span2 { grid-column: 1 / -1; }
.ep-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.ep-danger { margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--ep-line); }

/* Шапка */
.ep-head { display: flex; justify-content: space-between; gap: 24px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 18px; }
.ep-meta { color: var(--ep-text); }
.ep-head-side { text-align: right; }
.ep-count { font-size: 15px; color: var(--ep-text); }
.ep-count b { font-size: 34px; font-weight: 500; color: var(--ep-ink); margin-right: 4px; }
.ep-save { font-size: 12px; color: var(--ep-muted); margin-top: 4px; min-height: 16px; }
.ep-save-error { color: var(--ep-warn); }
.ep-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  background: var(--ep-pink); border-radius: var(--ep-radius); padding: 16px 20px; margin-bottom: 18px; color: #5b3a3d;
}
.ep-banner > div { flex: 1 1 320px; }

/* Вкладки */
.ep-tabs {
  display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 4px; background: var(--ep-soft);
  border-radius: 1000px; margin-bottom: 24px; position: sticky; top: 0; z-index: 5;
}
.ep-tabs::-webkit-scrollbar { display: none; }
.ep-root .ep-tab { padding: 10px 20px; border-radius: 1000px; color: var(--ep-text); font-weight: 500; white-space: nowrap; flex: 1 0 auto; }
.ep-root .ep-tab.ep-on { background: #fff; color: var(--ep-ink); box-shadow: 0 1px 4px rgba(0, 0, 0, .08); }

/* Обзор */
.ep-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.ep-root .ep-card {
  display: flex; flex-direction: column; gap: 4px; text-align: left; padding: 18px; border-radius: var(--ep-radius);
  background: var(--ep-soft); transition: transform .15s;
}
.ep-root .ep-card:hover { transform: translateY(-2px); }
.ep-card-title { font-size: 13px; color: var(--ep-text); }
.ep-card-big { font-size: 26px; font-weight: 500; line-height: 1.15; word-break: break-word; }
.ep-card-small { font-size: 13px; color: var(--ep-muted); }
.ep-bar { display: block; height: 6px; background: rgba(0, 0, 0, .07); border-radius: 6px; overflow: hidden; margin-top: 8px; }
.ep-bar > span { display: block; height: 100%; background: var(--ep-ink); border-radius: 6px; transition: width .4s; }
.ep-bar-lg { height: 8px; }
.ep-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.ep-panel { background: #fff; border: 1px solid var(--ep-line); border-radius: var(--ep-radius); padding: 20px; margin-bottom: 16px; }
.ep-two .ep-panel { margin-bottom: 0; }
.ep-panel-pink { background: var(--ep-pink); border-color: transparent; }
.ep-panel .ep-h3 { margin-bottom: 10px; }
.ep-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.ep-root .ep-chip {
  display: inline-block; padding: 7px 14px; border-radius: 1000px; background: #fff; color: var(--ep-ink);
  font-size: 13px; text-decoration: none; border: 1px solid var(--ep-line); white-space: nowrap;
}
.ep-root .ep-chip:hover { border-color: var(--ep-ink); }
.ep-root .ep-chip-act { background: var(--ep-ink); color: #fff; border-color: var(--ep-ink); }
.ep-root .ep-chip-act:hover { background: #000; }
.ep-awards { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.ep-award { display: flex; align-items: center; gap: 8px; padding: 12px; border-radius: 14px; background: var(--ep-soft); color: var(--ep-muted); font-size: 13px; }
.ep-award.ep-on { background: var(--ep-pink); color: #5b3a3d; }
.ep-award-ico { font-size: 18px; }

/* Задачи */
.ep-progress { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.ep-progress .ep-bar { flex: 1 1 200px; margin: 0; }
.ep-seg { display: inline-flex; background: var(--ep-soft); border-radius: 1000px; padding: 3px; }
.ep-root .ep-seg button { padding: 6px 14px; border-radius: 1000px; font-size: 13px; color: var(--ep-text); }
.ep-root .ep-seg button.ep-on { background: #fff; color: var(--ep-ink); }
.ep-group { margin-bottom: 28px; }
.ep-group-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.ep-pill { display: inline-block; font-size: 12px; padding: 3px 10px; border-radius: 1000px; background: var(--ep-soft); color: var(--ep-text); white-space: nowrap; }
.ep-pill-warn { background: var(--ep-pink); color: var(--ep-pink-ink); }
.ep-task { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--ep-soft); }
.ep-root .ep-check {
  width: 24px; height: 24px; flex: 0 0 24px; border-radius: 8px; border: 1.5px solid #cfcfcf;
  color: #fff; font-size: 14px; line-height: 21px; text-align: center; transition: background .15s, border-color .15s;
}
.ep-task.ep-done .ep-check { background: var(--ep-ink); border-color: var(--ep-ink); }
.ep-task.ep-done .ep-inline { color: var(--ep-muted); text-decoration: line-through; }
.ep-root .ep-grow { resize: none; overflow: hidden; display: block; }
.ep-task-text { flex: 1; min-width: 0; padding: 3px 0; }
.ep-task.ep-done .ep-task-text { color: var(--ep-muted); text-decoration: line-through; }
.ep-add { margin-top: 10px; max-width: 520px; }

/* Бюджет */
.ep-budget-total { max-width: 320px; }
.ep-sum { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 20px; }
.ep-sum-cell { background: var(--ep-soft); border-radius: 16px; padding: 14px 16px; }
.ep-sum-cell span { display: block; font-size: 12px; color: var(--ep-text); }
.ep-sum-cell b { font-size: 19px; font-weight: 500; }
.ep-sum-cell.ep-strong { background: var(--ep-ink); color: #fff; }
.ep-sum-cell.ep-strong span { color: rgba(255, 255, 255, .65); }
.ep-sum-cell.ep-warn { background: var(--ep-pink); color: var(--ep-warn); }
.ep-bitems { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.ep-bitem { border: 1px solid var(--ep-line); border-radius: var(--ep-radius); padding: 14px 16px; }
.ep-bitem-top { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.ep-root .ep-bitem-title { font-weight: 600; }
.ep-bitem-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ep-mini span { display: block; font-size: 11px; color: var(--ep-muted); margin-bottom: 3px; }
.ep-root .ep-mini .ep-input { padding: 8px 10px; }
.ep-bitem-foot { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 12px; }
.ep-vendor { display: inline-flex; align-items: center; gap: 2px; background: var(--ep-pink); border-radius: 1000px; padding: 2px 4px 2px 12px; font-size: 13px; }
.ep-vendor a { text-decoration: none; }
.ep-root .ep-vendor .ep-x { width: 22px; height: 22px; flex-basis: 22px; line-height: 22px; font-size: 15px; }

/* Рассадка */
.ep-toolbar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.ep-tables { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.ep-table { border: 1px solid var(--ep-line); border-radius: var(--ep-radius); padding: 14px; }
.ep-table-head { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 8px; }
.ep-table-svg { width: 64px; height: 64px; flex: 0 0 64px; }
.ep-table-top { fill: var(--ep-soft); }
.ep-seat { fill: #fff; stroke: #cfcfcf; stroke-width: 1.5; }
.ep-seat-on { fill: var(--ep-ink); }
.ep-table-info { flex: 1; min-width: 0; }
.ep-root .ep-table-name { font-weight: 600; font-size: 16px; }
.ep-table-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--ep-text); margin-top: 4px; }
.ep-seats { display: inline-flex; gap: 6px; align-items: center; }
.ep-guests { margin-bottom: 8px; }
.ep-guest { display: flex; align-items: center; gap: 4px; border-bottom: 1px solid var(--ep-soft); }
.ep-root .ep-move {
  width: 34px; flex: 0 0 34px; border: 0; background: transparent; color: var(--ep-muted); padding: 2px; cursor: pointer;
  appearance: none; -webkit-appearance: none; text-align: center;
}
.ep-root .ep-move:hover { color: var(--ep-ink); }

/* Тайминг */
.ep-timeline { position: relative; padding-left: 4px; }
.ep-trow { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--ep-soft); }
.ep-root .ep-time { width: 110px; flex: 0 0 110px; padding: 8px 10px; font-weight: 600; }
.ep-trow-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ep-root .ep-trow-title { font-weight: 500; font-size: 16px; }
.ep-root .ep-trow-note { font-size: 13px; color: var(--ep-text); }

/* Окна */
.ep-modal-bg {
  position: fixed; inset: 0; background: rgba(20, 20, 20, .45); z-index: 99999; display: flex;
  align-items: center; justify-content: center; padding: 16px; animation: ep-fade .2s;
}
.ep-modal {
  position: relative; background: #fff; border-radius: 24px; padding: 28px; width: 100%; max-width: 560px;
  max-height: calc(100vh - 32px); overflow-y: auto; animation: ep-pop .25s;
}
.ep-root .ep-modal-x { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; font-size: 22px; background: var(--ep-soft); }
.ep-modal .ep-h2 { padding-right: 40px; }
.ep-vlist { display: flex; flex-direction: column; gap: 6px; margin: 12px 0; }
.ep-vcard { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 14px; background: var(--ep-soft); }
.ep-vcard img, .ep-vthumb { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; flex: 0 0 44px; background: #e4e4e4; }
.ep-vcard a { flex: 1; min-width: 0; font-weight: 500; text-decoration: none; }
.ep-hr { height: 1px; background: var(--ep-line); margin: 16px 0; }
.ep-row { display: flex; gap: 8px; }
.ep-manual { margin-bottom: 16px; }

/* Награда-уведомление */
.ep-toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%); z-index: 100000;
  background: #fff; border-radius: 22px; padding: 18px 26px; min-width: 260px; text-align: center;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .18); font-family: "Inter Tight", "Inter", sans-serif; color: #222;
  transition: transform .45s cubic-bezier(.2, 1.4, .4, 1);
}
.ep-toast.ep-in { transform: translate(-50%, 0); }
.ep-toast-kicker { font-size: 11px; text-transform: uppercase; letter-spacing: .14em; color: #9a9a9a; }
.ep-toast-title { font-size: 20px; font-weight: 600; margin: 4px 0 2px; }
.ep-toast-text { font-size: 13px; color: #707070; }
.ep-toast-yay { display: inline-block; margin-top: 10px; background: #ffe9e9; color: #c4626b; border-radius: 1000px; padding: 4px 14px; font-weight: 600; }

@keyframes ep-fade { from { opacity: 0; } }
@keyframes ep-pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }

/* Узкая колонка или телефон: подстраиваемся под ширину самого планера */
@media (max-width: 760px) {
  .ep-root { padding: 16px 16px 48px; }
  .ep-modal { padding: 22px 18px; }
}
@container (max-width: 760px) {
  .ep-cards { grid-template-columns: 1fr 1fr; }
  .ep-two, .ep-grid2 { grid-template-columns: 1fr; }
  .ep-types { grid-template-columns: 1fr 1fr; }
  .ep-head-side { text-align: left; }
  .ep-bitems { grid-template-columns: 1fr; }
  .ep-card-big { font-size: 21px; }
  .ep-root .ep-tab { padding: 8px 4px; font-size: 13px; }
  .ep-tabs { gap: 0; padding: 3px; }
  .ep-root .ep-time { width: 92px; flex-basis: 92px; }
}

/* Печать: только рассадка или тайминг */
@media print {
  body * { visibility: hidden; }
  .ep-body, .ep-body * { visibility: visible; }
  .ep-body { position: absolute; left: 0; top: 0; width: 100%; }
  .ep-toolbar, .ep-x, .ep-move, .ep-root [data-enter], .ep-sum { display: none !important; }
  .ep-table, .ep-trow { break-inside: avoid; }
}


/* ================================================================== */
/* Тема Eventie: винный, кремовый, золото, орнамент қошқар мүйіз        */
/* ================================================================== */
.ep-root .ep-h1, .ep-root .ep-h2, .ep-root .ep-h3 { font-weight: 600; letter-spacing: -.03em; }
.ep-root .ep-h3 { font-size: 20px; }
.ep-kicker { font-family: var(--ep-mono); font-weight: 400; color: var(--ep-gold); }
.ep-root .ep-btn-dark { background: var(--ep-wine); color: #fff; }
.ep-root .ep-btn-dark:hover { background: var(--ep-wine-deep); color: #fff; }
.ep-bar > span { background: linear-gradient(90deg, var(--ep-wine), #9c3a48); }
.ep-root .ep-tab.ep-on { color: var(--ep-wine); }
.ep-task.ep-done .ep-check, .ep-seat-on { background: var(--ep-wine); border-color: var(--ep-wine); fill: var(--ep-wine); }
.ep-sum-cell.ep-strong { background: var(--ep-wine); }
.ep-root .ep-chip-act { background: var(--ep-wine); border-color: var(--ep-wine); }
.ep-panel-pink { background: var(--ep-cream); border: 1px solid var(--ep-line); }
.ep-banner { background: var(--ep-cream); color: var(--ep-ink); border: 1px solid var(--ep-line); }
.ep-root .ep-card { background: var(--ep-cream); border: 1px solid var(--ep-line); }
.ep-card-big { font-weight: 500; letter-spacing: -.02em; }
.ep-award.ep-on { background: var(--ep-cream); color: var(--ep-wine); border: 1px solid #e3cfb2; }
.ep-award.ep-on .ep-award-ico { color: var(--ep-gold); }
.ep-pill-warn { background: #f6dfe0; color: var(--ep-warn); }

/* Шапка планера: винная, с орнаментом */
.ep-head {
  position: relative; overflow: hidden; align-items: center; padding: 30px 32px; border-radius: 28px;
  background: var(--ep-wine); color: var(--ep-cream);
}
.ep-head::before {
  content: ""; position: absolute; inset: 10px; border: 1px solid rgba(217, 182, 127, .45); border-radius: 20px; pointer-events: none;
}
.ep-head .ep-h1 { color: var(--ep-cream); }
.ep-head .ep-kicker { color: #d9b67f; }
.ep-head .ep-meta, .ep-head .ep-root .ep-link, .ep-root .ep-head .ep-link { color: rgba(246, 239, 232, .75); }
.ep-root .ep-head .ep-link:hover { color: #fff; }
.ep-head-side { display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; z-index: 1; }
.ep-head .ep-count {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  width: 124px; height: 124px; border-radius: 50%; border: 1px solid #d9b67f; color: rgba(246, 239, 232, .8);
  font-family: var(--ep-mono); font-size: 11px; line-height: 1.25; padding: 10px;
}
.ep-head .ep-count b { display: block; font-family: var(--ep-serif); font-weight: 400; font-size: 42px; color: var(--ep-cream); margin: 0 0 2px; line-height: 1; }
.ep-head .ep-save { color: rgba(246, 239, 232, .6); font-family: var(--ep-mono); }
.ep-head-orn { position: absolute; right: 24px; top: 18px; width: 70px; opacity: .5; }

/* Вдохновение внутри планера */
.ep-root .ep-inspo a { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--ep-ink); background: var(--ep-cream); transition: transform .2s; }
.ep-root .ep-inspo a[href]:hover { transform: translateY(-3px); }
.ep-inspo b { font-family: var(--ep-serif); font-weight: 400; font-size: 21px; }
.ep-inspo span { color: var(--ep-text); }
.ep-inspo em { font-style: normal; font-family: var(--ep-mono); font-size: 13px; color: var(--ep-wine); margin-top: 6px; }
.ep-inspo-ico { display: none !important; }
.ep-root .ep-back { display: inline-block; margin-bottom: 18px; }

/* Орнамент */
.ep-o-horn path, .ep-o-band path { fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; }
.ep-o-band { display: block; width: 100%; height: 30px; }
.ep-root .ep-o-icon { width: 96px; height: 96px; display: block; fill: none; stroke: var(--ep-wine); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }

/* ---------------- Витрина ---------------- */
.ep-root.ep-landing-mode { max-width: none; padding: 0; }
.ep-bleed { width: 100vw; margin-left: calc(50% - 50vw); }

/* Темы: «как на eventie.kz» и «винный с кремовым» */
.ep-theme-eventie {
  --l-ink: #222222; --l-text: #707070; --l-line: #e2e2e2;
  --l-hero: linear-gradient(180deg, #ffffff 0%, #f6f6f6 100%);
  --l-glow1: rgba(255, 233, 233, .95); --l-glow2: rgba(240, 240, 240, .9);
  --l-accent: #ffe9e9; --l-accent-ink: #b5545c; --l-accent-strong: #f4c7c7;
  --l-card: #f3f3f3; --l-blob: #f0f0f0;
  --l-tone-a: #f3f3f3; --l-tone-b: #fff3f3; --l-tone-c: #ffe9e9; --l-tone-d: #f6f6f6;
  --l-dark: #222222; --l-dark-ink: #ffffff;
  --l-bar1: #222222; --l-bar2: #b9b9b9;
  --l-final: #ffe9e9; --l-dots: rgba(255, 255, 255, .8);
  --l-photo: linear-gradient(135deg, #e9e9e9, #ffe9e9);
}
.ep-theme-wine {
  --l-ink: #2b0a10; --l-text: #6f5a5c; --l-line: #e2d5cc;
  --l-hero: linear-gradient(180deg, #f8f2ec 0%, #f2e8e0 100%);
  --l-glow1: rgba(232, 205, 196, .8); --l-glow2: rgba(246, 236, 226, .9);
  --l-accent: #f0dcd4; --l-accent-ink: #5b1621; --l-accent-strong: #e2bfb3;
  --l-card: #f6efe8; --l-blob: #efe3da;
  --l-tone-a: #f3e9e1; --l-tone-b: #f6efe8; --l-tone-c: #efdcd5; --l-tone-d: #f3e9e1;
  --l-dark: #5b1621; --l-dark-ink: #f6efe8;
  --l-bar1: #5b1621; --l-bar2: #c19a6b;
  --l-final: #5b1621; --l-dots: rgba(246, 239, 232, .18);
  --l-photo: linear-gradient(135deg, #e8d6cb, #c99a8f);
}
.ep-landing { color: var(--l-ink); }
.ep-landing em { font-style: italic; font-weight: 500; }
.ep-l-in { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.ep-l-center { text-align: center; }
.ep-l-sec { max-width: 1100px; margin: 0 auto; padding: 80px 16px; }

/* Кнопки */
.ep-root .ep-l-btns { display: flex; flex-direction: column; gap: 12px; max-width: 420px; margin: 0 auto; }
.ep-root .ep-l-btn { display: inline-flex; justify-content: center; align-items: center; border-radius: 1000px; padding: 18px 34px; font-size: 18px; font-weight: 500; transition: transform .15s, opacity .15s; text-decoration: none; }
.ep-root .ep-l-btn:active { transform: scale(.97); }
.ep-root .ep-l-btn-dark { background: var(--l-dark); color: var(--l-dark-ink); }
.ep-root .ep-l-btn-dark:hover { opacity: .9; color: var(--l-dark-ink); transform: translateY(-2px); }
.ep-root .ep-l-btn-line { border: 1.5px solid var(--l-ink); color: var(--l-ink); background: transparent; }
.ep-root .ep-l-btn-line:hover { background: var(--l-ink); color: #fff; }

/* Фото */
.ep-l-photo { background: var(--l-photo) center / cover no-repeat; }

/* Обложка */
.ep-l-hero { text-align: center; padding: 64px 0 40px; background: radial-gradient(55% 45% at 85% 25%, var(--l-glow1), transparent 70%), radial-gradient(45% 40% at 8% 75%, var(--l-glow2), transparent 70%), var(--l-hero); }
.ep-l-kicker { display: inline-block; font-size: 13px; letter-spacing: .08em; color: var(--l-text); background: rgba(255,255,255,.75); padding: 7px 16px; border-radius: 1000px; margin-bottom: 22px; }
.ep-l-title { font-size: clamp(40px, 7vw, 84px); line-height: 1; font-weight: 600; letter-spacing: -.04em; margin: 0 0 22px; color: var(--l-ink); }
.ep-l-sub { font-size: clamp(17px, 2vw, 21px); color: var(--l-text); max-width: 560px; margin: 0 auto 32px; line-height: 1.45; }

/* Коллаж */
.ep-l-collage { position: relative; height: 520px; max-width: 760px; margin: 56px auto 0; }
.ep-l-blob { position: absolute; inset: 40px 40px 0 120px; border-radius: 48px; background: var(--l-blob); }
.ep-l-card { position: absolute; background: #fff; border-radius: 30px; box-shadow: 0 20px 50px rgba(30, 20, 20, .10); }
.ep-l-card-photo { left: 0; top: 50px; width: 270px; height: 330px; padding: 10px; transform: rotate(-3deg); animation: ep-float 6s ease-in-out infinite; }
.ep-l-card-photo .ep-l-photo { width: 100%; height: 100%; border-radius: 22px; }
.ep-l-ok { position: absolute; bottom: -20px; left: 50px; width: 52px; height: 52px; border-radius: 50%; background: var(--l-dark); color: var(--l-dark-ink); border: 4px solid #fff; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; }
.ep-l-card-count { left: 280px; top: 0; width: 280px; padding: 26px; background: var(--l-card); border: 8px solid #fff; animation: ep-float 7s ease-in-out infinite .5s; }
.ep-l-count-label { font-size: 22px; margin-bottom: 14px; }
.ep-l-ring { width: 170px; height: 170px; margin: 0 auto; border-radius: 50%; border: 2px solid #fff; box-shadow: inset 0 0 0 1px var(--l-line); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ep-l-ring b { font-size: 56px; font-weight: 500; line-height: 1; }
.ep-l-ring span, .ep-l-ring small { font-size: 13px; color: var(--l-text); }
.ep-l-count-time { display: flex; gap: 6px; align-items: baseline; justify-content: center; margin-top: 16px; }
.ep-l-count-time b { font-size: 22px; font-weight: 500; }
.ep-l-count-time small { font-size: 11px; color: var(--l-text); margin-right: 10px; }
.ep-l-pill-float { position: absolute; right: 0; top: 300px; background: var(--l-accent); color: var(--l-accent-ink); border-radius: 1000px; padding: 12px 22px; font-weight: 500; font-size: 17px; box-shadow: 0 10px 24px rgba(30, 20, 20, .08); animation: ep-float 5s ease-in-out infinite 1s; }
.ep-l-card-tasks { left: 150px; right: 40px; bottom: 0; background: var(--l-dark); color: var(--l-dark-ink); display: grid; grid-template-columns: 1fr 1.4fr; gap: 20px; padding: 26px 28px; text-align: left; }
.ep-l-tasks-head small { display: block; font-size: 12px; opacity: .6; margin-bottom: 6px; }
.ep-l-tasks-head b { font-size: 26px; font-weight: 500; line-height: 1.1; }
.ep-l-card-tasks ul { list-style: none; margin: 0; padding: 0; }
.ep-l-card-tasks li { display: flex; align-items: center; gap: 10px; font-size: 14px; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.ep-l-card-tasks li small { margin-left: auto; opacity: .55; font-size: 11px; white-space: nowrap; }
.ep-l-card-tasks li i { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.5); flex: 0 0 18px; font-style: normal; font-size: 11px; display: flex; align-items: center; justify-content: center; }
.ep-l-card-tasks li i.on { background: var(--l-accent); border-color: var(--l-accent); color: var(--l-accent-ink); }

/* Заголовки секций */
.ep-l-h2 { font-size: clamp(32px, 5vw, 56px); line-height: 1.04; font-weight: 600; letter-spacing: -.035em; margin: 0 0 20px; color: var(--l-ink); }
.ep-l-h2-big { font-size: clamp(36px, 6vw, 66px); max-width: 820px; margin-left: auto; margin-right: auto; }
.ep-l-p { font-size: 19px; color: var(--l-text); line-height: 1.5; margin: 0 0 28px; }
.ep-l-tag { display: inline-block; border: 1.5px solid var(--l-line); border-radius: 1000px; padding: 8px 20px; font-size: 16px; color: var(--l-text); margin-bottom: 20px; }

/* Чипсы */
.ep-l-chips { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 12px; max-width: 760px; margin: 36px auto 0; }
.ep-l-chip { border: 1.5px solid var(--l-ink); border-radius: 1000px; padding: 12px 26px; font-size: 21px; font-weight: 500; white-space: nowrap; background: #fff; color: var(--l-ink); }
.ep-l-chip-white { border-color: transparent; }
.ep-l-sym { font-size: 30px; font-weight: 600; line-height: 1; }
.ep-l-photo.ep-l-dot { width: 64px; height: 64px; border-radius: 50%; flex: 0 0 64px; }
.ep-l-photo.ep-l-pillphoto { width: 150px; height: 64px; border-radius: 1000px; flex: 0 0 150px; }

/* Разделы с примерами */
.ep-l-feature { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.ep-l-feature.ep-l-rev .ep-l-mock { order: 2; }
.ep-l-mock { position: relative; min-height: 400px; border-radius: 40px; padding: 36px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: center; overflow: hidden; }
.ep-l-tone-a { background: var(--l-tone-a); }
.ep-l-tone-b { background: var(--l-tone-b); }
.ep-l-tone-c { background: var(--l-tone-c); }
.ep-l-tone-d { background: var(--l-tone-d); }
.ep-l-m { background: #fff; border-radius: 24px; padding: 20px; box-shadow: 0 14px 36px rgba(30, 20, 20, .08); text-align: left; font-size: 14px; color: var(--l-ink); }
.ep-l-m small { display: block; color: var(--l-text); font-size: 12px; }
.ep-l-m b { font-weight: 600; }
.ep-l-m-progress { width: 210px; text-align: center; transform: rotate(-3deg); }
.ep-l-ring-small { width: 130px; height: 130px; margin: 12px auto; }
.ep-l-ring-small b { font-size: 36px; }
.ep-l-m-budget { width: 250px; transform: rotate(2deg); }
.ep-l-m-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; }
.ep-l-mini-pill { background: var(--l-accent); color: var(--l-accent-ink); border-radius: 1000px; padding: 3px 10px; font-size: 11px; white-space: nowrap; }
.ep-l-bar-row { margin: 10px 0; font-size: 13px; }
.ep-l-bar-row i { display: block; height: 5px; border-radius: 5px; background: #f0eeee; margin-top: 5px; position: relative; overflow: hidden; }
.ep-l-bar-row i::after { content: ""; position: absolute; inset: 0; width: var(--w); background: linear-gradient(90deg, var(--l-bar1), var(--l-bar2)); border-radius: 5px; }
.ep-l-mini-btn { display: inline-block; background: var(--l-dark); color: var(--l-dark-ink); border-radius: 1000px; padding: 6px 14px; font-size: 12px; margin-top: 8px; white-space: nowrap; }
.ep-l-m-table { width: 200px; text-align: center; transform: rotate(-2deg); }
.ep-l-m-table svg { display: block; width: 130px; height: 130px; margin: 0 auto 6px; }
.ep-l-m-table b { display: block; }
.ep-l-m-table .top { fill: var(--l-card); }
.ep-l-m-table circle:not(.top) { fill: #fff; stroke: var(--l-line); stroke-width: 2; }
.ep-l-m-table circle.on { fill: var(--l-dark); stroke: var(--l-dark); }
.ep-l-m-timing { width: 240px; transform: rotate(2deg); }
.ep-l-t { display: flex; gap: 12px; padding: 8px 0; border-bottom: 1px solid #f1f1f1; font-size: 13px; }
.ep-l-t span { font-weight: 600; width: 42px; }
.ep-l-t.on { background: var(--l-accent); margin: 0 -10px; padding: 8px 10px; border-radius: 10px; border: 0; }

/* Награды */
.ep-l-confetti i { position: absolute; left: var(--x); top: var(--y); width: 12px; height: 5px; border-radius: 3px; transform: rotate(var(--r)); opacity: .8; animation: ep-float 4s ease-in-out infinite; background: var(--l-accent-strong); }
.ep-l-confetti i:nth-child(3n) { background: var(--l-dark); opacity: .5; animation-delay: .8s; }
.ep-l-confetti i:nth-child(3n+1) { background: #fff; animation-delay: 1.6s; }
.ep-l-award { position: relative; border-radius: 28px; text-align: center; padding: 26px 22px; background: #fff; box-shadow: 0 18px 40px rgba(30, 20, 20, .10); color: var(--l-ink); }
.ep-l-award small { display: block; font-size: 12px; color: var(--l-text); }
.ep-l-award b { display: block; font-size: 22px; font-weight: 600; margin: 4px 0; }
.ep-l-award-main { width: 250px; z-index: 2; }
.ep-l-award-main span { display: block; font-size: 13px; color: var(--l-text); }
.ep-l-award-main em { display: inline-block; margin-top: 14px; background: var(--l-dark); color: var(--l-dark-ink); font-style: normal; font-weight: 500; border-radius: 1000px; padding: 8px 24px; }
.ep-l-photo.ep-l-medal { width: 84px; height: 84px; margin: 0 auto 12px; border-radius: 50%; border: 4px solid #fff; box-shadow: 0 6px 18px rgba(30, 20, 20, .15); }
.ep-l-award-side { position: absolute; width: 160px; padding: 22px 16px; z-index: 1; background: var(--l-card); }
.ep-l-award-a { left: 4%; top: 22%; transform: rotate(-8deg); }
.ep-l-award-a b { font-size: 38px; }
.ep-l-award-b { right: 4%; top: 26%; transform: rotate(8deg); }
.ep-l-award-b b { font-size: 16px; }
.ep-l-plus { position: absolute; top: 22px; left: 50%; transform: translateX(-50%); background: #fff; border-radius: 1000px; padding: 6px 16px; font-size: 13px; font-weight: 600; white-space: nowrap; box-shadow: 0 6px 16px rgba(0,0,0,.06); }

/* Каталог */
.ep-l-m-catalog { width: 300px; }
.ep-l-vrow { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid #f3f0ee; }
.ep-l-photo.ep-l-vthumb { width: 38px; height: 38px; border-radius: 12px; flex: 0 0 38px; }
.ep-l-vrow b { flex: 1; }
.ep-l-vrow .ep-l-mini-btn { margin: 0; }
.ep-l-cats { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; width: 100%; }
.ep-root .ep-l-cat { background: #fff; border-radius: 1000px; padding: 8px 16px; font-size: 14px; text-decoration: none; color: var(--l-ink); box-shadow: 0 4px 12px rgba(0,0,0,.05); }
.ep-root .ep-l-cat:hover { background: var(--l-dark); color: var(--l-dark-ink); }

/* Вдохновение */
.ep-l-inspo { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 32px; }
.ep-root .ep-l-inspo-card { display: flex; flex-direction: column; gap: 8px; padding: 14px 14px 28px; border-radius: 32px; text-decoration: none; color: var(--l-ink); background: var(--l-card); transition: transform .2s; }
.ep-root .ep-l-inspo-card[href]:hover { transform: translateY(-4px); }
.ep-l-photo.ep-l-inspo-photo { height: 200px; border-radius: 22px; margin-bottom: 10px; }
.ep-l-inspo-card small, .ep-l-inspo-card b, .ep-l-inspo-card span, .ep-l-inspo-card em { padding: 0 14px; }
.ep-l-inspo-card small { color: var(--l-text); font-size: 13px; }
.ep-l-inspo-card b { font-size: 26px; font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }
.ep-l-inspo-card span { color: var(--l-text); font-size: 16px; }
.ep-l-inspo-card em { font-style: normal; font-weight: 600; margin-top: 6px; }

/* Цифры */
.ep-l-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.ep-l-stats b { display: block; font-size: clamp(44px, 6vw, 64px); font-weight: 500; letter-spacing: -.03em; }
.ep-l-stats span { color: var(--l-text); font-size: 16px; }

/* Вопросы */
.ep-l-faq { max-width: 860px; }
.ep-l-q { border-bottom: 1px solid var(--l-line); }
.ep-l-q:first-of-type { border-top: 1px solid var(--l-line); }
.ep-root .ep-l-q summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 0; font-size: 21px; font-weight: 500; color: var(--l-ink); }
.ep-l-q summary::-webkit-details-marker { display: none; }
.ep-l-q summary span { font-size: 32px; font-weight: 300; transition: transform .2s; }
.ep-l-q[open] summary span { transform: rotate(45deg); }
.ep-root .ep-l-q p { margin: -8px 0 24px; color: var(--l-text); font-size: 17px; line-height: 1.55; max-width: 680px; }

/* Финал: фото с тёмным винным затемнением */
.ep-l-final {
  position: relative; padding: 140px 0; margin-top: 40px; overflow: hidden;
  background: #3a0c13 center / cover no-repeat; color: #f6efe8;
}
.ep-l-final::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(43, 8, 14, .78), rgba(58, 12, 19, .88)); }
.ep-l-final .ep-l-in { position: relative; }
.ep-l-final-kicker { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: rgba(246, 239, 232, .7); margin-bottom: 22px; }
.ep-l-final .ep-l-h2, .ep-l-final .ep-l-p { color: #f6efe8; }
.ep-root .ep-l-final .ep-l-btn-dark { background: #f6efe8; color: #5b1621; }

@keyframes ep-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@media (prefers-reduced-motion: reduce) { .ep-landing * { animation: none !important; } }

/* Витрина на телефоне */
@media (max-width: 760px) {
  .ep-l-hero { padding: 40px 0 24px; }
  .ep-l-title { font-size: 40px; }
  .ep-l-sec { padding: 56px 16px; }
  .ep-l-collage { height: 560px; margin-top: 40px; }
  .ep-l-blob { inset: 60px 0 40px 30px; }
  .ep-l-card-photo { width: 46%; height: 250px; left: 0; top: 40px; }
  .ep-l-card-count { left: auto; right: 0; width: 52%; padding: 18px 14px; }
  .ep-l-card-count .ep-l-ring { width: 120px; height: 120px; }
  .ep-l-card-count .ep-l-ring b { font-size: 42px; }
  .ep-l-pill-float { top: 312px; font-size: 14px; padding: 10px 16px; }
  .ep-l-card-tasks { left: 0; right: 0; grid-template-columns: 1fr; gap: 10px; padding: 20px; }
  .ep-l-tasks-head b { font-size: 22px; }
  .ep-l-chip { font-size: 17px; padding: 10px 18px; }
  .ep-l-feature, .ep-l-inspo { grid-template-columns: 1fr; gap: 28px; }
  .ep-l-feature.ep-l-rev .ep-l-mock { order: 0; }
  .ep-l-feature .ep-l-ftext { text-align: center; }
  .ep-l-mock { min-height: 340px; padding: 24px 14px; border-radius: 32px; }
  .ep-l-award-side { width: 120px; padding: 16px 10px; }
  .ep-l-award-main { width: 210px; }
  .ep-l-stats { grid-template-columns: 1fr; gap: 24px; }
  .ep-root .ep-l-q summary { font-size: 18px; padding: 20px 0; }
  .ep-l-photo.ep-l-pillphoto { width: 96px; flex-basis: 96px; height: 52px; }
  .ep-l-final { padding: 96px 0; }
}

/* Мелкие правки */
.ep-root .ep-grow { resize: none; overflow: hidden; display: block; }

/* Уведомление о награде в цветах Eventie */
.ep-toast { background: var(--ep-cream, #f6efe8); border: 1px solid #e3cfb2; color: #2b0a10; }
.ep-toast-kicker { color: #b98d4f; }
.ep-toast-title { font-weight: 600; color: #5b1621; }
.ep-toast-yay { background: #5b1621; color: #f6efe8; font-weight: 500; }
.ep-head-orn { display: none; }

/* ================================================================== */
/* Чёрно-белая тема: звёздочки ✦ и орнамент қошқар мүйіз              */
/* ================================================================== */
.ep-root {
  --ep-ink: #111111; --ep-wine: #111111; --ep-wine-deep: #000000; --ep-cream: #f5f5f5;
  --ep-gold: #8a8a8a; --ep-text: #6b6b6b; --ep-muted: #9b9b9b; --ep-line: #e6e6e6;
  --ep-soft: #f3f3f3; --ep-pink: #f1f1f1; --ep-pink-ink: #111111; --ep-warn: #b3261e;
}
.ep-theme-mono {
  --l-ink: #111111; --l-text: #6b6b6b; --l-line: #e2e2e2;
  --l-hero: linear-gradient(180deg, #ffffff 0%, #f4f4f4 100%);
  --l-glow1: rgba(235, 235, 235, .9); --l-glow2: rgba(246, 246, 246, .9);
  --l-accent: #f0f0f0; --l-accent-ink: #111111; --l-accent-strong: #d9d9d9;
  --l-card: #f4f4f4; --l-blob: #efefef;
  --l-tone-a: #f4f4f4; --l-tone-b: #f7f7f7; --l-tone-c: #efefef; --l-tone-d: #f4f4f4;
  --l-dark: #111111; --l-dark-ink: #ffffff;
  --l-bar1: #111111; --l-bar2: #bdbdbd;
  --l-photo: linear-gradient(135deg, #e6e6e6, #cfcfcf);
}
.ep-l-final { filter: none; }
.ep-theme-mono .ep-l-final { background-color: #111; }
.ep-theme-mono .ep-l-final::before { background: linear-gradient(180deg, rgba(0, 0, 0, .74), rgba(0, 0, 0, .86)); }
.ep-root .ep-theme-mono .ep-l-final .ep-l-btn-dark { background: #fff; color: #111; }
.ep-theme-mono .ep-l-final[style] { filter: none; }

/* Звёздочки */
.ep-star { display: inline-block; font-style: normal; line-height: 1; }
.ep-l-title { position: relative; }
.ep-star-a, .ep-star-b, .ep-star-c, .ep-star-d { position: absolute; color: var(--l-ink); animation: ep-twinkle 3.6s ease-in-out infinite; }
.ep-star-a { font-size: .38em; left: -.3em; top: -.25em; }
.ep-star-b { font-size: .26em; right: -.2em; bottom: .15em; animation-delay: 1.2s; }
.ep-star-c { font-size: 34px; right: 8px; top: -6px; z-index: 3; animation-delay: .6s; }
.ep-star-d { font-size: 20px; left: 110px; bottom: 30px; z-index: 3; animation-delay: 1.8s; }
@keyframes ep-twinkle { 0%, 100% { opacity: 1; transform: scale(1) rotate(0); } 50% { opacity: .35; transform: scale(.75) rotate(20deg); } }
.ep-l-tag .ep-star { font-size: 13px; margin-right: 2px; }

/* Орнамент */
.ep-o-horn path, .ep-o-band path { fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; }
.ep-o-band { display: block; width: 100%; height: 30px; color: var(--l-ink, #111); }
.ep-l-blob { overflow: hidden; }
.ep-o-band-blob { position: absolute; inset: 0; height: 100%; opacity: .07; }
.ep-l-divider { max-width: 420px; margin: 0 auto; opacity: .35; }
.ep-o-band-final { position: absolute; left: 0; right: 0; top: 26px; color: #fff; opacity: .22; z-index: 1; }
.ep-o-horn-sm { width: 34px; color: #fff; opacity: .7; display: block; margin-bottom: 8px; }
.ep-l-final-kicker { letter-spacing: .14em; }

/* Мудборд на витрине */
.ep-l-moods { width: 100%; max-width: 380px; columns: 3; column-gap: 10px; }
.ep-l-photo.ep-l-mood { width: 100%; break-inside: avoid; margin-bottom: 10px; border-radius: 16px; height: 120px; }
.ep-l-mood-0, .ep-l-mood-4 { height: 170px !important; }
.ep-l-mood-2 { height: 90px !important; }

/* ---------------- Планер: чёрно-белый ---------------- */
.ep-head { background: #111; color: #fff; }
.ep-head::before { border-color: rgba(255, 255, 255, .25); }
.ep-head .ep-h1 { color: #fff; }
.ep-head .ep-kicker { color: rgba(255, 255, 255, .6); }
.ep-head .ep-count { border-color: rgba(255, 255, 255, .5); color: rgba(255, 255, 255, .75); }
.ep-head .ep-count b { color: #fff; }
.ep-root .ep-head .ep-link { color: rgba(255, 255, 255, .7); }
.ep-head-orn { display: block !important; color: #fff; opacity: .35; }
.ep-head::after { content: "✦"; position: absolute; left: 22px; bottom: 16px; font-size: 18px; color: #fff; opacity: .5; animation: ep-twinkle 4s ease-in-out infinite; }
.ep-bar > span { background: #111; }
.ep-root .ep-tab.ep-on { color: #111; }
.ep-award.ep-on { background: #111; color: #fff; border-color: #111; }
.ep-award.ep-on .ep-award-ico { color: #fff; }
.ep-toast { background: #fff; border: 1px solid #e6e6e6; }
.ep-toast-kicker { color: #8a8a8a; }
.ep-toast-title { color: #111; }
.ep-toast-yay { background: #111; color: #fff; }
.ep-toast-kicker::before { content: "✦ "; }
.ep-root .ep-inspo a { background: #f4f4f4; }
.ep-inspo em { color: #111; }
.ep-tabs { scroll-snap-type: x proximity; }
.ep-root .ep-tab { scroll-snap-align: start; }

/* Гости */
.ep-root .ep-select { border: 1px solid var(--ep-line); background: #fff; border-radius: 10px; padding: 7px 8px; font-size: 13px; max-width: 140px; }
.ep-glist { border-top: 1px solid var(--ep-line); }
.ep-gitem { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--ep-soft); flex-wrap: wrap; }
.ep-gitem .ep-gname { flex: 1 1 160px; font-weight: 500; }
.ep-gitem-yes .ep-status { background: #111; color: #fff; border-color: #111; }
.ep-gitem-no .ep-gname { color: var(--ep-muted); text-decoration: line-through; }
.ep-add-wide { max-width: none; margin: 0 0 16px; }
.ep-invite summary { cursor: pointer; list-style: none; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.ep-invite summary::-webkit-details-marker { display: none; }
.ep-invite summary::before { content: "✦"; }
.ep-invite summary span { color: var(--ep-muted); font-size: 13px; }
.ep-invite ol { list-style: none; margin: 14px 0 0; padding: 0; }
.ep-invite li { display: flex; gap: 12px; align-items: flex-start; padding: 9px 0; border-bottom: 1px solid var(--ep-soft); }
.ep-invite li span { flex: 0 0 26px; height: 26px; border-radius: 50%; border: 1px solid var(--ep-line); display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--ep-text); }

/* Тайминг по шагам и советы */
.ep-tw-times { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.ep-tw-time span { display: block; font-size: 12px; color: var(--ep-text); margin-bottom: 4px; }
.ep-tw-toggles { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.ep-toggle { cursor: pointer; }
.ep-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.ep-toggle span { display: inline-block; padding: 8px 14px; border-radius: 1000px; border: 1px solid var(--ep-line); font-size: 13px; }
.ep-toggle input:checked + span { background: #111; color: #fff; border-color: #111; }
.ep-toggle input:checked + span::before { content: "✓ "; }
.ep-tip { background: #111; color: #fff; border-color: #111; margin-top: 20px; }
.ep-tip-head { display: flex; justify-content: space-between; align-items: center; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.ep-root .ep-tip .ep-x { color: #fff; opacity: .8; }
.ep-root .ep-tip .ep-x:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.ep-tip b { display: block; font-size: 24px; font-weight: 600; letter-spacing: -.02em; margin: 10px 0 6px; }
.ep-tip p { margin: 0; color: rgba(255, 255, 255, .8); }

/* Напитки */
.ep-drink-set { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 18px; }
.ep-big { display: block; font-size: 34px; font-weight: 500; }
.ep-seg-wrap { flex-wrap: wrap; border-radius: 18px; gap: 2px; }
.ep-stepper { display: inline-flex; align-items: center; gap: 10px; }
.ep-root .ep-stepper button { width: 36px; height: 36px; border-radius: 50%; background: var(--ep-soft); font-size: 18px; }
.ep-root .ep-stepper button:hover { background: #e9e9e9; }
.ep-stepper span { min-width: 54px; text-align: center; }
.ep-stepper b { display: block; font-size: 20px; font-weight: 600; line-height: 1.1; }
.ep-stepper small { font-size: 11px; color: var(--ep-muted); }
.ep-drinks { border: 1px solid var(--ep-line); border-radius: var(--ep-radius); overflow: hidden; margin-bottom: 16px; }
.ep-drink { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--ep-soft); }
.ep-drink:last-child { border-bottom: 0; }
.ep-drink small { display: block; font-size: 12px; color: var(--ep-muted); }
.ep-drink-alc { background: #fafafa; }

/* Чек-листы */
.ep-mb { margin: 6px 0 10px; }
.ep-list summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 12px; }
.ep-list summary::-webkit-details-marker { display: none; }
.ep-list summary small { margin-left: auto; color: var(--ep-muted); }
.ep-list .ep-tasklist { margin-top: 12px; }
.ep-list .ep-link-danger { margin-top: 12px; }
.ep-ready-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.ep-root .ep-ready { display: flex; align-items: center; gap: 14px; text-align: left; padding: 16px 18px; border: 1px solid var(--ep-line); border-radius: 18px; background: #fff; transition: border-color .15s, transform .15s; }
.ep-root .ep-ready:hover { border-color: #111; transform: translateY(-2px); }
.ep-ready b { display: block; font-weight: 600; }
.ep-ready small { color: var(--ep-muted); font-size: 13px; }
.ep-ready i { margin-left: auto; font-style: normal; font-size: 20px; }
.ep-root .ep-ready.ep-added { opacity: .55; cursor: default; transform: none; }
.ep-shape { flex: 0 0 26px; width: 26px; height: 26px; background: #111; display: inline-block; }
.ep-shape-pin { border-radius: 50% 50% 50% 0; transform: rotate(-45deg); width: 22px; height: 22px; flex-basis: 22px; }
.ep-shape-doc { border-radius: 4px 10px 4px 4px; width: 20px; flex-basis: 20px; }
.ep-shape-sun { border-radius: 50%; box-shadow: 0 0 0 4px #fff, 0 0 0 5px #111; width: 18px; height: 18px; flex-basis: 18px; margin: 4px; }
.ep-shape-flower { border-radius: 40% 60% 40% 60%; }
.ep-shape-dots { background: radial-gradient(#111 2.6px, transparent 3px) 0 0 / 8.6px 8.6px; }
.ep-shape-cross { clip-path: polygon(35% 0, 65% 0, 65% 35%, 100% 35%, 100% 65%, 65% 65%, 65% 100%, 35% 100%, 35% 65%, 0 65%, 0 35%, 35% 35%); }
.ep-shape-gift { border-radius: 4px; box-shadow: inset 0 0 0 9px #111, inset 0 0 0 11px #fff; }
.ep-shape-star { background: none; font-size: 24px; line-height: 26px; text-align: center; }
.ep-shape-star::before { content: "✦"; color: #111; }
.ep-shape-leaf { border-radius: 0 60% 0 60%; }

/* Мудборд */
.ep-board-add { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.ep-root .ep-upload { cursor: pointer; }
.ep-board-head .ep-row { flex-wrap: wrap; }
.ep-board-head .ep-row .ep-input { flex: 1 1 220px; }
.ep-masonry { columns: 4 220px; column-gap: 12px; margin-top: 16px; }
.ep-pin { position: relative; break-inside: avoid; margin: 0 0 12px; border-radius: 18px; overflow: hidden; background: #f3f3f3; }
.ep-pin img { display: block; width: 100%; height: auto; }
.ep-pin figcaption { padding: 6px 12px 8px; background: #fff; }
.ep-pin figcaption .ep-inline { font-size: 13px; }
.ep-root .ep-pin-x { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff; font-size: 17px; opacity: 0; transition: opacity .15s; }
.ep-pin:hover .ep-pin-x, .ep-pin:focus-within .ep-pin-x { opacity: 1; }
.ep-pin-broken img { display: none; }
.ep-pin-broken::before { content: "Картинка не открылась: нужна ссылка на само изображение (правой кнопкой → «Копировать адрес изображения»)"; display: block; padding: 18px; font-size: 13px; color: var(--ep-text); }
@media (hover: none) { .ep-root .ep-pin-x { opacity: 1; } }
.ep-board-head + .ep-seg { margin-bottom: 4px; }

@media (max-width: 760px) {
  .ep-tw-times, .ep-drink-set { grid-template-columns: 1fr; }
  .ep-masonry { columns: 2; column-gap: 8px; }
  .ep-gitem .ep-select { flex: 1 1 30%; max-width: none; }
  .ep-star-d { left: 40px; }
}
@media print {
  .ep-tw, .ep-tip, .ep-invite { display: none !important; }
}
@container (max-width: 520px) {
  .ep-sum { grid-template-columns: 1fr 1fr; gap: 8px; }
  .ep-sum-cell { padding: 10px 12px; }
  .ep-sum-cell b { font-size: 17px; }
}

/* ================================================================== */
/* v1.5: меню разделов, орнаменты, советы-заметки                      */
/* ================================================================== */
:root { --ep-orn-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='30'%3E%3Cpath transform='translate%282 2%29' d='M20 26V15M20 15C20 7 13 2 8 4.5 3.5 7 4.5 13.5 9.5 13.2 12.8 13 13.2 9.5 10.6 9.2M20 15C20 7 27 2 32 4.5 36.5 7 35.5 13.5 30.5 13.2 27.2 13 26.8 9.5 29.4 9.2' fill='none' stroke='%23111' stroke-opacity='.16' stroke-width='1.1' stroke-linecap='round'/%3E%3C/svg%3E"); --ep-orn-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='30'%3E%3Cpath transform='translate%282 2%29' d='M20 26V15M20 15C20 7 13 2 8 4.5 3.5 7 4.5 13.5 9.5 13.2 12.8 13 13.2 9.5 10.6 9.2M20 15C20 7 27 2 32 4.5 36.5 7 35.5 13.5 30.5 13.2 27.2 13 26.8 9.5 29.4 9.2' fill='none' stroke='%23fff' stroke-opacity='.14' stroke-width='1.1' stroke-linecap='round'/%3E%3C/svg%3E"); --ep-corner: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 28'%3E%3Cpath d='M20 26V15M20 15C20 7 13 2 8 4.5 3.5 7 4.5 13.5 9.5 13.2 12.8 13 13.2 9.5 10.6 9.2M20 15C20 7 27 2 32 4.5 36.5 7 35.5 13.5 30.5 13.2 27.2 13 26.8 9.5 29.4 9.2' fill='none' stroke='%23111' stroke-opacity='.22' stroke-width='1.3' stroke-linecap='round'/%3E%3C/svg%3E"); }

/* Меню разделов: колонка слева на широком экране, сетка 3×3 на узком */
.ep-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; align-items: start; }
.ep-side { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 4px; padding: 10px; border: 1px solid var(--ep-line); border-radius: 22px; background: #fff; }
.ep-root .ep-side .ep-tab { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border-radius: 14px; font-size: 15px; font-weight: 500; color: var(--ep-text); text-align: left; box-shadow: none; flex: none; }
.ep-root .ep-side .ep-tab:hover { background: var(--ep-soft); color: #111; }
.ep-root .ep-side .ep-tab.ep-on { background: #111; color: #fff; box-shadow: none; }
.ep-tab-ico { width: 22px; height: 22px; flex: 0 0 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ep-side-band { height: 30px; margin-top: 8px; opacity: .5; }
.ep-tabs { display: none; }
@container (max-width: 860px) {
  .ep-layout { grid-template-columns: 1fr; gap: 16px; }
  .ep-side { position: static; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 8px; }
  .ep-root .ep-side .ep-tab { flex-direction: column; justify-content: center; gap: 6px; padding: 12px 4px; font-size: 13px; text-align: center; background: var(--ep-soft); }
  .ep-side-band { grid-column: 1 / -1; margin-top: 2px; height: 24px; }
}

/* Заголовок раздела с орнаментом */
.ep-sec-title { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.ep-sec-title .ep-h2 { margin: 0; font-size: 30px; white-space: nowrap; }
.ep-sec-band { flex: 1; height: 30px; opacity: .35; }

/* Орнамент в шапке и на карточках */
.ep-head { padding-bottom: 52px; }
.ep-head-band { position: absolute; left: 0; right: 0; bottom: 12px; height: 30px; color: #fff; opacity: .28; }
.ep-head-orn { position: absolute; right: 24px; top: 18px; width: 64px; color: #fff; opacity: .5; display: block !important; }
.ep-head::after { bottom: 50px; }
.ep-panel { position: relative; }
.ep-panel::before { content: ""; position: absolute; top: 14px; right: 16px; width: 34px; height: 24px; background: var(--ep-corner) no-repeat center / contain; pointer-events: none; }
.ep-o-horn path, .ep-o-band path { fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; }
.ep-o-band { display: block; width: 100%; }

/* Совет: листок из тетради в линейку со скрепкой */
.ep-tip {
  position: relative; margin: 26px 6px 10px; padding: 34px 26px 26px 58px; color: #222; border: 0;
  background-color: #fffdf8;
  background-image: linear-gradient(90deg, transparent 42px, rgba(220, 120, 120, .45) 42px, rgba(220, 120, 120, .45) 43px, transparent 43px),
    repeating-linear-gradient(180deg, transparent 0, transparent 31px, rgba(110, 140, 190, .28) 31px, rgba(110, 140, 190, .28) 32px);
  background-position: 0 0, 0 18px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 14px 30px rgba(0, 0, 0, .10);
  transform: rotate(-1deg); border-radius: 4px;
}
.ep-tip::before { content: ""; position: absolute; left: 14px; top: 26px; bottom: 26px; width: 12px; background: radial-gradient(circle, #f1efe9 4px, transparent 4.5px) 0 0 / 12px 32px repeat-y; }
.ep-clip { position: absolute; top: -26px; right: 46px; width: 22px; height: 60px; fill: none; stroke: #8f8f8f; stroke-width: 2.2; stroke-linecap: round; transform: rotate(8deg); filter: drop-shadow(1px 2px 1px rgba(0,0,0,.15)); }
.ep-tip-head { color: #9a9a9a; letter-spacing: .1em; }
.ep-root .ep-tip .ep-x { color: #555; opacity: .8; }
.ep-root .ep-tip .ep-x:hover { background: rgba(0, 0, 0, .06); color: #111; }
.ep-hand { font-family: "Caveat", "Marck Script", cursive; }
.ep-tip b.ep-hand { display: block; font-size: 34px; font-weight: 600; letter-spacing: 0; line-height: 32px; margin: 10px 0 0; color: #111; }
.ep-tip p.ep-hand { font-size: 25px; line-height: 32px; margin: 0; color: #2f3b55; }

/* Витрина: больше орнамента */
.ep-o-band-hero { position: absolute; left: 0; right: 0; top: 0; height: 100%; opacity: .05; pointer-events: none; }
.ep-l-hero { position: relative; }
.ep-l-hero > .ep-l-in { position: relative; }
.ep-l-divider { height: 30px; }
.ep-l-divider .ep-o-band { height: 30px; }
.ep-l-divider-sm { max-width: 260px; margin: 0 auto; opacity: .3; }
.ep-o-horn-title { display: block; width: 52px; margin-bottom: 14px; color: var(--l-ink); }
.ep-o-horn-center { margin: 0 auto 14px; }
.ep-l-kicker { background-image: none; }
.ep-l-mock::after { content: ""; position: absolute; left: 18px; bottom: 16px; width: 44px; height: 30px; background: var(--ep-corner) no-repeat center / contain; opacity: .9; }

@media (max-width: 760px) {
  .ep-sec-title .ep-h2 { font-size: 24px; }
  .ep-tip { padding: 30px 18px 22px 50px; }
  .ep-tip b.ep-hand { font-size: 30px; }
  .ep-tip p.ep-hand { font-size: 22px; }
}
@media print { .ep-side, .ep-sec-band { display: none !important; } .ep-layout { display: block; } }

/* ================================================================== */
/* Кружевная витрина: конверт в руке, цвет #3A0000                     */
/* ================================================================== */
@font-face { font-family: "Princess Diana"; src: url("fonts/princess-diana.ttf"); font-display: swap; }
.ep-root.ep-landing-mode { background: #F2F0ED; }
.lc { --wine: #3A0000; --bg: #F2F0ED; --paper: #FCFBF9; --soft: #6A4A48; color: var(--wine); font-family: "Montserrat", sans-serif; }
.lc section { background: var(--bg); }
.ep-root .lc-script { font-family: "Princess Diana", "Cormorant Garamond", cursive; font-weight: 400; letter-spacing: 0; }
.ep-root .lc-kk .lc-script { font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; font-weight: 600; }
.ep-root .lc-h2 { font-size: clamp(52px, 9vw, 84px); line-height: 1.05; text-align: center; margin: 0 0 28px; color: var(--wine); }
.lc-in { max-width: 1000px; margin: 0 auto; }
.lc-sec { padding: 72px 16px; }
.lc-sec.lc-sec-t0 { padding-top: 0; }
.lc-band { position: relative; z-index: 2; margin-top: -9px; height: 44px; background: var(--band) repeat-x left top / auto 44px; }
.lc-flip { transform: scaleY(-1); margin-top: 0; margin-bottom: -1px; }

/* Кнопки */
.ep-root .lc-btn { display: block; width: 100%; border-radius: 1000px; padding: 17px 22px; font: 600 22px/1 "Montserrat", sans-serif; text-align: center; cursor: pointer; border: 1.5px solid var(--wine); letter-spacing: 0; transition: opacity .15s; }
.ep-root .lc-btn:hover { opacity: .85; }
.ep-root .lc-btn-d { background: var(--wine); color: #FCFBF9; margin-bottom: 10px; }
.ep-root .lc-btn-l { background: transparent; color: var(--wine); }
.ep-root .lc-btn-w { display: inline-block; width: auto; background: #FBF8F5; color: var(--wine); border-color: #FBF8F5; padding: 17px 34px; }

/* Обложка */
.lc-hero { overflow: hidden; }
.lc-stage-box { position: relative; height: calc(1400px * var(--scale, 1)); }
.lc-stage { position: absolute; left: 50%; top: 0; width: 700px; height: 1400px; margin-left: -350px; transform: scale(var(--scale, 1)); transform-origin: 50% 0; }
.lc-rig { position: absolute; inset: 0; animation: lc-rise 1s cubic-bezier(.2, .8, .2, 1) both; }
.lc-sway { position: absolute; inset: 0; transform-origin: 350px 1400px; animation: lc-sway 3.4s 1.1s ease-in-out infinite alternate; }
.ep-root .lc-sway > img { position: absolute; max-width: none; height: auto; margin: 0; }
.ep-root .lc-hand, .ep-root .lc-thumb { left: 170px; top: 790px; width: 360px; }
.lc-hand { z-index: 0; } .lc-thumb { z-index: 6; pointer-events: none; }
.ep-root .lc-back, .ep-root .lc-flap, .ep-root .lc-flapc, .ep-root .lc-front { left: 52.5px; width: 595px; }
.ep-root .lc-back { top: 482.5px; z-index: 1; }
.ep-root .lc-flap { top: 244.5px; z-index: 2; transform-origin: 50% 255.5px; animation: lc-fo .34s 1.4s ease-out both; }
.ep-root .lc-flapc { top: 482.5px; z-index: 5; transform-origin: 50% 17.5px; animation: lc-fc .3s 1.1s ease-in both; pointer-events: none; }
.ep-root .lc-front { top: 482.5px; z-index: 4; pointer-events: none; }
.lc-clip { position: absolute; left: 70px; top: 0; width: 560px; height: 868px; overflow: hidden; z-index: 3; }
.lc-letter { position: absolute; left: 32px; top: 120px; width: 496px; height: 640px; background: var(--paper); box-shadow: 0 2px 20px rgba(58, 0, 0, .14); padding: 40px 34px; text-align: center; animation: lc-up 1s 1.62s cubic-bezier(.5, 0, .2, 1) both; }
.ep-root .lc-hello { font-size: 92px; line-height: 1; margin-bottom: 12px; color: var(--wine); }
.ep-root .lc-kk .lc-hello { font-size: 72px; }
.ep-root .lc-letter p { font: 500 27px/1.25 "Montserrat", sans-serif; letter-spacing: -.01em; margin: 0 0 22px; color: var(--wine); }
.ep-root .lc-kk .lc-letter p { font-size: 23px; margin-bottom: 16px; }
@keyframes lc-rise { from { transform: translateY(760px); } to { transform: none; } }
@keyframes lc-fc { to { transform: scaleY(0); } }
@keyframes lc-fo { from { transform: scaleY(0); } to { transform: none; } }
@keyframes lc-up { from { transform: translateY(400px); } to { transform: none; } }
@keyframes lc-sway { from { transform: rotate(-1.3deg); } to { transform: rotate(1.3deg); } }

/* Плашки */
.lc-pills { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.lc-pill { background: var(--wine); color: #FBF8F5; border-radius: 1000px; padding: 12px 24px; font-size: clamp(15px, 2.2vw, 19px); line-height: 1.2; font-weight: 500; letter-spacing: -.01em; text-align: center; }
.lc-go .lc-pill { animation: lc-pop .5s var(--d) ease-out both; }
@keyframes lc-pop { 45% { transform: scale(1.07); } }

/* Предметы падают в конверт */
.lc-drop-box { position: relative; height: calc(650px * var(--ds, 1)); margin-top: 48px; }
.lc-drop { position: absolute; left: 50%; top: 0; width: 560px; height: 650px; margin-left: -280px; transform: scale(var(--ds, 1)); transform-origin: 50% 0; }
.lc-drop-sway { position: absolute; inset: 0; transform-origin: 280px 620px; animation: lc-sway 3.4s ease-in-out infinite alternate; }
.ep-root .lc-drop-sway > img { position: absolute; max-width: none; height: auto; margin: 0; }
.ep-root .lc-dback, .ep-root .lc-dflap, .ep-root .lc-dfront { left: 25px; width: 510px; }
.ep-root .lc-dback { top: 275px; z-index: 1; } .ep-root .lc-dflap { top: 71px; z-index: 2; } .ep-root .lc-dfront { top: 275px; z-index: 5; }
.lc-card { position: absolute; left: 64px; top: 136px; width: 432px; height: 440px; z-index: 3; background: var(--paper); box-shadow: 0 2px 16px rgba(58, 0, 0, .13); }
.ep-root .lc-drop-sway > img.lc-item { width: 84px; z-index: 4; opacity: 0; transform: rotate(var(--r)); }
.ep-root .lc-go .lc-drop-sway > img.lc-item { animation: lc-fall .75s var(--d) cubic-bezier(.5, 0, .75, .5) both; }
@keyframes lc-fall {
  0% { opacity: 0; transform: translateY(-430px) rotate(calc(var(--r) * 4)); }
  12% { opacity: 1; }
  82% { transform: translateY(0) rotate(var(--r)); }
  91% { transform: translateY(-12px) rotate(var(--r)); }
  100% { opacity: 1; transform: translateY(0) rotate(var(--r)); }
}

/* Карточки-письма */
.lc-notes { display: grid; grid-template-columns: 1fr; gap: 20px; }
.lc-note { background: var(--paper); padding: 28px 24px 26px; box-shadow: 0 2px 16px rgba(58, 0, 0, .09); display: grid; grid-template-columns: 60px 1fr; gap: 6px 18px; align-items: start; }
.lc-note:nth-child(odd) { transform: rotate(-.6deg); } .lc-note:nth-child(even) { transform: rotate(.6deg); }
.ep-root .lc-note img { width: 60px; height: auto; grid-row: span 2; margin: 0; }
.ep-root .lc-note h3 { font-size: 38px; line-height: 1; margin: 0; color: var(--wine); }
.ep-root .lc-note p { font-size: 15px; line-height: 1.5; color: var(--soft); margin: 0; }
.ep-root .lc-link { display: block; text-decoration: none; color: var(--wine); }
.ep-root .lc-link h3 { margin-bottom: 8px; }
.lc-link em { display: block; margin-top: 12px; font-style: normal; font-weight: 600; font-size: 15px; }

/* Вопросы */
.lc-faq { max-width: 760px; margin: 0 auto; }
.lc-q { border-top: 1px solid rgba(58, 0, 0, .25); }
.lc-q:last-child { border-bottom: 1px solid rgba(58, 0, 0, .25); }
.ep-root .lc-q summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; font-weight: 500; font-size: 17px; color: var(--wine); }
.lc-q summary::-webkit-details-marker { display: none; }
.lc-q summary i { font-style: normal; font-size: 22px; line-height: 1; }
.lc-q[open] summary i { transform: rotate(45deg); }
.ep-root .lc-q p { padding-bottom: 18px; margin: 0; color: var(--soft); font-size: 15px; line-height: 1.5; }

/* Финал */
.lc .lc-final { background: var(--wine); color: #FBF8F5; text-align: center; padding: 72px 16px 80px; }
.ep-root .lc-final .lc-h2 { color: #FBF8F5; margin-bottom: 6px; }
.ep-root .lc-final p { font-size: 16px; margin: 0 0 26px; opacity: .85; color: #FBF8F5; }

@media (min-width: 760px) { .lc-notes { grid-template-columns: 1fr 1fr; } .lc-sec { padding: 96px 24px; } }
@media (prefers-reduced-motion: reduce) {
  .lc-rig, .ep-root .lc-flap, .ep-root .lc-flapc, .lc-letter { animation-duration: .01s; animation-delay: 0s; }
  .lc-sway, .lc-drop-sway, .lc-go .lc-pill { animation: none; }
  .ep-root .lc-drop-sway > img.lc-item, .ep-root .lc-go .lc-drop-sway > img.lc-item { opacity: 1; animation: none; }
}

/* Тема сайта задаёт свои шрифты заголовкам и кнопкам — на витрине оставляем свои */
.ep-root .lc h2.lc-script, .ep-root .lc h3.lc-script, .ep-root .lc .lc-script { font-family: "Princess Diana", "Cormorant Garamond", cursive !important; }
.ep-root .lc-kk h2.lc-script, .ep-root .lc-kk h3.lc-script, .ep-root .lc-kk .lc-script { font-family: "Cormorant Garamond", Georgia, serif !important; }
.ep-root .lc button.lc-btn { font-family: "Montserrat", sans-serif !important; }
.ep-root .lc-band.lc-flip { margin-bottom: -9px; }
.lc .lc-final { position: relative; z-index: 1; }
.lc-band.lc-flip { z-index: 2; }
