/* Конструктор приглашений toimanager.app/create — общие цвета и шрифт в ../style.css */
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 600; font-display: swap; src: url(../inv/fonts/cormorant-garamond-cyrillic-600-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 600; font-display: swap; src: url(../inv/fonts/cormorant-garamond-cyrillic-ext-600-normal.woff2) format('woff2'); unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 600; font-display: swap; src: url(../inv/fonts/cormorant-garamond-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 500; font-display: swap; src: url(../inv/fonts/cormorant-garamond-cyrillic-500-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 500; font-display: swap; src: url(../inv/fonts/cormorant-garamond-cyrillic-ext-500-normal.woff2) format('woff2'); unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 500; font-display: swap; src: url(../inv/fonts/cormorant-garamond-latin-500-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* Палитра конструктора: слоновая кость, полночный синий и золото — как в самих приглашениях */
:root { --bg: #F8F2E8; --surface: #FFFFFF; --line: #E9DCC8; --line-2: #DDD3C2; --ink: #2B1D18; --muted: #6E5D52; --accent: #7A1E2C; --accent-dark: #5E1520; --accent-soft: #F6E6E2;
  --gold: #A9843F; --gold-2: #D9B877; --gold-soft: #F7F0E2; --tint: #F3EFE7; --tint-2: #FCFAF6; --ring: rgba(185, 147, 80, .24);
  --shadow: 0 1px 2px rgba(60, 30, 20, .04), 0 8px 22px rgba(60, 30, 20, .05); --shadow-2: 0 14px 32px rgba(60, 30, 20, .11);
  --serif: 'Cormorant Garamond', 'Prata', Georgia, serif; }
:root { --pv-w: 360px; --bar-h: 76px; --head-h: 60px; --danger: #B3263F; --danger-soft: #FBE9EC; --warn-soft: #FEF3DC; }
html { scroll-padding-top: calc(var(--head-h) + 16px); }
body { min-height: 100vh; min-height: 100dvh; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Шапка ---------- */
.head { position: sticky; top: 0; z-index: 30; height: var(--head-h); background: rgba(250, 247, 242, .88);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.head .in { max-width: 1180px; height: 100%; margin: 0 auto; padding: 0 max(16px, env(safe-area-inset-left)); display: flex; align-items: center; gap: 12px; }
.head .brand { margin-right: auto; font-size: 15px; }
.head .brand img { width: 34px; height: 34px; }
.save-state { font-size: 13px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.save-state i { width: 8px; height: 8px; border-radius: 50%; background: var(--success); }
.save-state.busy i { background: #E2A93B; animation: pulse 1s infinite; }
.save-state.err { color: var(--danger); } .save-state.err i { background: var(--danger); }
@keyframes pulse { 50% { opacity: .35; } }
.acct { position: relative; }
.acct > button { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 6px 0 4px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); cursor: pointer; max-width: 200px; }
.acct > button img, .acct > button .av { width: 30px; height: 30px; border-radius: 50%; flex: none; object-fit: cover; }
.acct > button .av { display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-dark); font-weight: 600; font-size: 14px; }
.acct > button span { font-size: 14px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-right: 6px; }
.menu { position: absolute; right: 0; top: 48px; min-width: 220px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-2); padding: 6px; z-index: 40; }
.menu a, .menu button { display: flex; width: 100%; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 10px; border: 0; background: none;
  text-decoration: none; color: var(--ink); font-size: 15px; cursor: pointer; text-align: left; }
.menu a:hover, .menu button:hover { background: var(--accent-soft); }
.menu .who { padding: 8px 12px 10px; font-size: 13px; color: var(--muted); border-bottom: 1px solid var(--line); margin-bottom: 4px; overflow-wrap: anywhere; }
@media (max-width: 520px) { .acct > button span { display: none; } .head .brand span { display: none; } }

/* ---------- Кнопки и поля ---------- */
.btn { display: inline-flex; width: auto; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 22px; border-radius: 14px; border: 1px solid transparent;
  font-size: 16px; font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .15s, transform .1s, border-color .15s; }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--accent); color: #fff; box-shadow: 0 6px 16px rgba(122, 30, 44, .22); }
.btn.primary:hover { background: var(--accent-dark); }
.btn.ghost { background: var(--surface); border-color: var(--line); color: var(--ink); }
.btn.ghost:hover { border-color: var(--line-2); background: var(--tint-2); }
.btn.soft { background: var(--accent-soft); color: var(--accent-dark); }
.btn.wa { background: #1FA855; color: #fff; }
.btn.wa:hover { background: #18914A; }
.btn.sm { min-height: 40px; padding: 0 14px; font-size: 14px; border-radius: 11px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: default; box-shadow: none; transform: none; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn.sm svg { width: 18px; height: 18px; }
.link { background: none; border: 0; padding: 0; color: var(--accent); font-weight: 600; cursor: pointer; text-decoration: none; font-size: 15px; }

.field { display: block; }
.field > span { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field > span em { font-style: normal; font-weight: 400; color: var(--muted); }
.field small { display: block; font-size: 13px; color: var(--muted); margin-top: 6px; line-height: 1.45; }
.input { width: 100%; min-height: 52px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); font: inherit; font-size: 16px; color: var(--ink);
  padding: 0 14px; transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; appearance: none; }
textarea.input { padding: 12px 14px; min-height: 120px; resize: vertical; line-height: 1.5; }
.input::placeholder { color: #ADA698; }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--ring); }
input[type="date"].input, input[type="time"].input { min-width: 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 380px) { .grid2.keep { grid-template-columns: 1fr; } }

.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg button { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); font-size: 15px; font-weight: 500; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }

.switch { display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 6px 0; cursor: pointer; }
.switch .t { flex: 1; min-width: 0; }
.switch .t b { display: block; font-weight: 600; font-size: 15px; }
.switch .t small { display: block; color: var(--muted); font-size: 13px; line-height: 1.4; margin-top: 2px; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch .k { width: 48px; height: 28px; border-radius: 999px; background: var(--line-2); position: relative; flex: none; transition: background .2s; }
.switch .k::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .2s; }
.switch input:checked + .k { background: var(--accent); }
.switch input:checked + .k::after { transform: translateX(20px); }
.switch input:focus-visible + .k { outline: 2px solid var(--accent); outline-offset: 2px; }
.sub { padding: 4px 0 8px 0; }

/* ---------- Раскладка ---------- */
.page { max-width: 1180px; margin: 0 auto; padding: 0 max(16px, env(safe-area-inset-left)) 40px; }
.editor-wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: start; }
@media (min-width: 980px) { .editor-wrap { grid-template-columns: minmax(0, 600px) var(--pv-w); justify-content: center; gap: 56px; } }
.panel { padding-bottom: calc(var(--bar-h) + 24px); }
@media (min-width: 980px) { .panel { padding-bottom: 40px; } }

/* Предпросмотр: на компьютере — телефон справа (место держит .pv-slot, рамка закреплена поверх);
   на телефоне — по кнопке на весь экран. Рамка одна, чтобы приглашение не перезагружалось. */
.pv-slot { display: none; }
@media (min-width: 980px) { .pv-slot { display: block; width: var(--pv-w); min-height: 600px; } }
.pv { position: fixed; top: calc(var(--head-h) + 24px); width: var(--pv-w); z-index: 5; }
.pv .phone { width: var(--pv-w); height: min(740px, calc(100vh - var(--head-h) - 110px)); border-radius: 44px; padding: 10px; background: #2B1D18;
  box-shadow: 0 30px 60px rgba(60, 30, 20, .22), 0 8px 18px rgba(60, 30, 20, .12); }
.pv iframe { width: 100%; height: 100%; border: 0; border-radius: 34px; background: #F3EADB; display: block; }
.pv .pv-tools { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.pv .pv-head { display: none; }
@media (max-width: 979px) {
  .pv { position: fixed; inset: 0; width: auto; z-index: 60; background: #1E070C; padding: env(safe-area-inset-top) 0 0; display: flex; flex-direction: column;
    transform: translateY(100%); visibility: hidden; transition: transform .3s cubic-bezier(.2, .8, .2, 1), visibility 0s .3s; }
  .pv.open { transform: none; visibility: visible; transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
  .pv .pv-head { display: flex; align-items: center; gap: 8px; height: 56px; padding: 0 12px 0 16px; color: #fff; }
  .pv .pv-head b { flex: 1; min-width: 0; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pv .pv-head button { white-space: nowrap; }
  .pv .pv-head button { min-height: 40px; border-radius: 10px; border: 0; background: rgba(255, 255, 255, .12); color: #fff; padding: 0 14px; font-weight: 600; cursor: pointer; }
  .pv .phone { width: 100%; height: auto; flex: 1; border-radius: 0; padding: 0; box-shadow: none; background: none; }
  .pv iframe { border-radius: 0; }
  .pv .pv-tools { display: none; }
}
@media (min-width: 980px) { .pv-open-btn { display: none !important; } }

/* Нижняя панель действий (телефон) */
.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; background: rgba(255, 255, 255, .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line); padding: 12px max(16px, env(safe-area-inset-left)) calc(12px + env(safe-area-inset-bottom)); }
.bar .in { max-width: 600px; margin: 0 auto; display: flex; gap: 10px; }
.bar .in .btn { flex: 1; }
.bar .in .btn.ghost { flex: 0 0 auto; }
@media (min-width: 980px) {
  .bar { position: static; background: none; border: 0; padding: 0; backdrop-filter: none; -webkit-backdrop-filter: none; margin-top: 28px; }
  .bar .in { max-width: none; }
  .bar .in .btn { flex: 0 0 auto; min-width: 180px; }
  .bar .in .spacer { flex: 1; }
}

/* ---------- Шаги ---------- */
.steps-top { padding: 22px 0 6px; }
.steps-top .meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 14px; color: var(--muted); }
.steps-top .meta b { color: var(--accent-dark); font-weight: 600; }
.progress { height: 6px; border-radius: 3px; background: var(--tint); overflow: hidden; margin-top: 10px; }
.progress i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--gold-2), var(--accent)); transition: width .35s; }
.chips { display: flex; gap: 6px; overflow-x: auto; padding: 14px 0 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.chips::-webkit-scrollbar { display: none; }
.chips button { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px 0 8px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); font-size: 14px; font-weight: 500; color: var(--muted); cursor: pointer; }
.chips button i { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 600;
  background: var(--tint); color: var(--muted); }
.chips button[aria-current="step"] { border-color: var(--accent); color: var(--accent-dark); background: var(--accent-soft); }
.chips button[aria-current="step"] i { background: var(--accent); color: #fff; }
.chips button.done i { background: var(--success-soft); color: var(--success); }

.wstep h1 { font-size: clamp(26px, 5vw, 32px); margin: 18px 0 6px; }
.wstep .lead2 { color: var(--muted); font-size: 16px; margin-bottom: 24px; max-width: 520px; }
.wstep .stack { gap: 18px; }
.group { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 18px; box-shadow: var(--shadow); }
.group + .group { margin-top: 14px; }
.group h3 { font-size: 16px; margin: 0 0 12px; }
.group .divider { height: 1px; background: var(--line); margin: 6px 0; }

/* Вид тоя */
.kinds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 640px) { .kinds { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.kind { position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; min-height: 72px; padding: 14px;
  border-radius: 16px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; text-align: left; transition: border-color .15s, box-shadow .15s, transform .1s; }
.kind:hover { border-color: var(--line-2); box-shadow: var(--shadow-2); }
.kind:active { transform: scale(.98); }
.kind b { font-size: 16px; font-weight: 600; line-height: 1.2; }
.kind small { font-size: 13px; color: var(--muted); line-height: 1.3; }
.kind svg { position: absolute; top: 12px; left: 14px; width: 26px; height: 26px; color: var(--accent); opacity: .9; }
.kind[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 3px var(--ring); background: var(--tint-2); }

/* Оформление */
.themes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.theme { border: 1px solid var(--line); border-radius: 16px; padding: 8px; background: var(--surface); cursor: pointer; text-align: center; transition: border-color .15s, box-shadow .15s; }
.theme .sw { height: 76px; border-radius: 11px; display: grid; place-items: center; position: relative; overflow: hidden; }
.theme .sw span { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 28px; line-height: 1; font-style: italic; }
.theme b { display: block; font-size: 14px; font-weight: 600; margin-top: 8px; }
.theme[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 3px var(--ring); }
.envs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.env { border: 1px solid var(--line); border-radius: 16px; padding: 8px; background: var(--surface); cursor: pointer; text-align: left; }
.env img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 30%; border-radius: 11px; display: block; background: #F3EADB; }
.env b { display: block; font-size: 14px; font-weight: 600; margin: 8px 4px 0; }
.env small { display: block; font-size: 12px; color: var(--muted); margin: 2px 4px 4px; }
.env[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 3px var(--ring); }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px;
  background: #FFE9A8; color: #6B4A00; }

/* Фото */
.hero-drop { position: relative; display: grid; place-items: center; text-align: center; gap: 8px; min-height: 220px; border: 2px dashed var(--line-2); border-radius: 18px;
  background: var(--tint-2); cursor: pointer; padding: 20px; overflow: hidden; }
.hero-drop:hover { border-color: var(--accent); }
.hero-drop svg { width: 36px; height: 36px; color: var(--accent); }
.hero-drop b { font-size: 16px; }
.hero-drop small { color: var(--muted); font-size: 13px; }
.hero-drop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-drop.has { border-style: solid; border-color: var(--line); min-height: 300px; }
.photo-tools { position: absolute; right: 10px; bottom: 10px; display: flex; gap: 6px; z-index: 2; }
.photo-tools button { min-height: 38px; padding: 0 12px; border-radius: 10px; border: 0; background: rgba(20, 16, 32, .72); color: #fff; font-size: 14px; font-weight: 600; cursor: pointer; }
.gal { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 420px) { .gal { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.gal .ph { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--tint); }
.gal .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gal .ph button { position: absolute; top: 4px; right: 4px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(20, 16, 32, .7); color: #fff;
  font-size: 18px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.gal .add { aspect-ratio: 1; border-radius: 12px; border: 2px dashed var(--line-2); background: var(--tint-2); display: grid; place-items: center; cursor: pointer; color: var(--accent); font-size: 28px; }
.gal .add:hover { border-color: var(--accent); }
.uploading { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(255, 255, 255, .7); font-size: 13px; font-weight: 600; color: var(--accent-dark); }

/* Программа */
.prog-row { display: grid; grid-template-columns: 104px minmax(0, 1fr) 44px; gap: 8px; align-items: center; }
.prog-row + .prog-row { margin-top: 8px; }
.icon-btn { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; display: grid; place-items: center; color: var(--muted); }
.icon-btn:hover { color: var(--danger); border-color: #F0C9D0; }
.icon-btn svg { width: 18px; height: 18px; }
.colors { display: flex; flex-wrap: wrap; gap: 10px; }
.colors button { width: 40px; height: 40px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line-2); cursor: pointer; }
.colors button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--accent); }

/* Текст приглашения */
.seg-tv { margin-bottom: 10px; }
.seg-tv button { min-height: 40px; padding: 0 14px; font-size: 14px; }
.auto-text { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 19px; line-height: 1.5; color: #3B2F22; background: #FBF7EF; border: 1px solid #EFE4CF;
  border-radius: 14px; padding: 14px 16px; }

/* ---------- Главная конструктора ---------- */
.landing { padding: 40px 0 24px; display: grid; gap: 32px; align-items: center; }
@media (min-width: 980px) { .landing { grid-template-columns: minmax(0, 1fr) 360px; gap: 64px; padding: 64px 0 40px; } }
.landing .eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-dark);
  font-size: 13px; font-weight: 600; margin-bottom: 18px; }
.landing h1 { hyphens: manual; -webkit-hyphens: manual; font-size: clamp(32px, 6vw, 52px); line-height: 1.08; letter-spacing: -0.03em; margin-bottom: 16px; }
.landing h1 em { font-style: normal; color: inherit; }
.landing .lead { font-size: 18px; color: var(--muted); max-width: 560px; line-height: 1.55; }
.landing .ticks { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 18px; font-size: 14px; color: var(--muted); font-weight: 500; }
.landing .ticks span::before { content: "✓"; color: var(--success); font-weight: 600; margin-right: 6px; }
.landing .demo { display: none; }
@media (min-width: 980px) { .landing .demo { display: block; } }
.demo .phone { width: 300px; aspect-ratio: 9 / 18.5; border-radius: 40px; padding: 9px; background: #2B1D18; box-shadow: 0 30px 60px rgba(60, 30, 20, .22); margin: 0 auto; }
.demo iframe { width: 100%; height: 100%; border: 0; border-radius: 32px; display: block; background: #F3EADB; }
.demo p { text-align: center; font-size: 14px; color: var(--muted); margin-top: 12px; }
.pick-title { font-size: 20px; margin: 8px 0 14px; }
.how { display: grid; gap: 14px; margin: 40px 0 8px; }
@media (min-width: 760px) { .how { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.how div { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.how b { display: block; font-size: 16px; margin: 10px 0 4px; }
.how p { color: var(--muted); font-size: 14px; line-height: 1.5; }
.how i { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-dark); font-style: normal; font-weight: 600; }
.compare { margin-top: 28px; }
.prices { display: grid; gap: 12px; margin-top: 14px; }
@media (min-width: 760px) { .prices { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.price-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.price-card.best { border-color: var(--accent); box-shadow: 0 0 0 3px var(--ring); }
.price-card .p { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; margin: 6px 0 8px; }
.price-card .p small { font-size: 15px; color: var(--muted); font-weight: 500; }
.price-card ul { margin: 0; padding: 0; list-style: none; font-size: 14px; color: var(--muted); }
.price-card li { padding-left: 22px; position: relative; margin: 6px 0; }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--success); font-weight: 600; }

/* Мои приглашения */
.mine { display: grid; gap: 12px; }
@media (min-width: 760px) { .mine { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.toi-card { display: flex; flex-direction: column; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px 16px 14px;
  text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: border-color .15s, box-shadow .15s; }
.toi-card:hover { border-color: var(--line-2); box-shadow: var(--shadow-2); }
.toi-card b { font-size: 17px; line-height: 1.3; }
.toi-card .sub2 { font-size: 14px; color: var(--muted); }
.toi-card .stats { display: flex; flex-wrap: wrap; gap: 6px; }
.pill2 { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px; border-radius: 999px; font-size: 13px; font-weight: 500; background: var(--tint); color: var(--muted); white-space: nowrap; }
.pill2.ok { background: var(--success-soft); color: var(--success-text); }
.pill2.warn { background: var(--warn-soft); color: var(--warn); }
.pill2.acc { background: var(--accent-soft); color: var(--accent-dark); }
.new-card { display: grid; place-items: center; gap: 6px; text-align: center; border: 2px dashed var(--line-2); border-radius: 18px; min-height: 140px; color: var(--accent-dark);
  font-weight: 600; text-decoration: none; background: var(--tint-2); cursor: pointer; }
.new-card:hover { border-color: var(--accent); }
.new-card span { font-size: 30px; line-height: 1; }

/* ---------- Вкладки тоя ---------- */
.toi-head { padding: 20px 0 4px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.toi-head .back { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500; }
.toi-head h1 { flex-basis: 100%; font-size: clamp(22px, 4.4vw, 28px); }
.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--tint); margin: 12px 0 4px; max-width: 600px; }
.tabs a { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; border-radius: 11px; text-decoration: none; color: var(--muted);
  font-size: 15px; font-weight: 600; white-space: nowrap; }
.tabs a[aria-current="page"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(60, 30, 20, .1); }
.tabs a .n { font-size: 12px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: #fff; display: inline-grid; place-items: center; }

/* Статус тарифа */
.status { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 18px; border: 1px solid; }
.status .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.status .ic svg { width: 22px; height: 22px; }
.status b { display: block; font-size: 16px; margin-bottom: 2px; }
.status p { font-size: 14px; color: var(--muted); line-height: 1.5; }
.status.trial { background: #FFF8F2; border-color: #F6DDC8; } .status.trial .ic { background: #FDE6D3; color: #A4501B; }
.status.paid { background: #F2FBF6; border-color: #CDEBDC; } .status.paid .ic { background: var(--success-soft); color: var(--success); }
.status.check { background: var(--tint-2); border-color: var(--line-2); } .status.check .ic { background: var(--accent-soft); color: var(--accent-dark); }
.status .btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

.linkbox { display: flex; gap: 8px; align-items: center; background: var(--tint); border: 1px solid var(--line); border-radius: 12px; padding: 6px 6px 6px 14px; }
.linkbox code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: inherit; font-size: 14px; color: var(--muted); }
.share-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
@media (min-width: 640px) { .share-row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- Гости ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 560px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; }
.kpi b { display: block; font-size: 24px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.kpi span { font-size: 13px; color: var(--muted); }
.meter { height: 6px; border-radius: 3px; background: var(--tint); overflow: hidden; margin-top: 8px; }
.meter i { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.meter.full i { background: #E2A93B; }
.gfilter { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px 0; }
.gfilter::-webkit-scrollbar { display: none; }
.gfilter button { flex: none; min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 14px; font-weight: 500;
  color: var(--muted); cursor: pointer; }
.gfilter button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.glist { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.g { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "nm acts" "sub acts" "st acts"; gap: 2px 12px; align-items: center; padding: 14px 14px 14px 16px; }
.g + .g { border-top: 1px solid var(--line); }
.g .nm { grid-area: nm; font-weight: 600; font-size: 16px; line-height: 1.3; overflow-wrap: anywhere; }
.g .sub3 { grid-area: sub; font-size: 14px; color: var(--muted); line-height: 1.35; }
.g .st { grid-area: st; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.g .acts { grid-area: acts; display: flex; gap: 6px; align-items: center; }
@media (max-width: 480px) {
  .g { grid-template-areas: "nm acts" "sub acts" "st st"; }
  .g .acts .btn.wa span { display: none; }
  .g .acts .btn.wa { width: 44px; padding: 0; min-height: 40px; }
}
.g .more { width: 40px; height: 40px; border-radius: 11px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; display: grid; place-items: center; color: var(--muted); }
.g .more svg { width: 20px; height: 20px; }
.empty { text-align: center; padding: 36px 20px; color: var(--muted); }
.empty b { display: block; color: var(--ink); font-size: 17px; margin-bottom: 6px; }

/* ---------- Окна ---------- */
.sheet-bg { position: fixed; inset: 0; z-index: 80; background: rgba(20, 16, 32, .45); display: flex; align-items: flex-end; justify-content: center; animation: fade .2s; }
@media (min-width: 640px) { .sheet-bg { align-items: center; padding: 24px; } }
.sheet { width: 100%; max-width: 520px; max-height: 92vh; max-height: 92dvh; overflow-y: auto; background: var(--surface); border-radius: 24px 24px 0 0;
  padding: 22px 20px calc(20px + env(safe-area-inset-bottom)); box-shadow: 0 -10px 40px rgba(0, 0, 0, .15); animation: up .28s cubic-bezier(.2, .8, .2, 1); }
@media (min-width: 640px) { .sheet { border-radius: 24px; padding: 26px 24px 24px; } }
.sheet h2 { font-size: 22px; margin: 0 0 6px; padding-right: 40px; }
.sheet .x { position: sticky; top: 0; float: right; margin: -6px -6px 0 0; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--tint); cursor: pointer;
  font-size: 22px; line-height: 1; display: grid; place-items: center; color: var(--muted); }
.sheet .lead3 { color: var(--muted); font-size: 15px; margin-bottom: 18px; }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }

.plan { display: block; width: 100%; text-align: left; border: 1px solid var(--line); border-radius: 18px; padding: 16px; background: var(--surface); cursor: pointer; position: relative; }
.plan + .plan { margin-top: 10px; }
.plan[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 3px var(--ring); background: var(--tint-2); }
.plan .top2 { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.plan .top2 b { font-size: 17px; }
.plan .top2 span { font-size: 22px; font-weight: 600; white-space: nowrap; }
.plan .top2 span small { font-size: 14px; color: var(--muted); font-weight: 500; }
.plan ul { margin: 8px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--muted); }
.plan li { padding-left: 20px; position: relative; margin: 4px 0; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--success); font-weight: 600; }
.plan .badge { position: absolute; top: -10px; right: 14px; }
.pay-amount { text-align: center; padding: 14px; border-radius: 16px; background: var(--tint); }
.pay-amount b { display: block; font-size: 34px; letter-spacing: -0.02em; }
.pay-amount span { font-size: 14px; color: var(--muted); }
.qr { display: block; width: 220px; max-width: 70%; height: auto; margin: 14px auto 6px; border-radius: 16px; border: 1px solid var(--line); background: #fff; }
.paysteps { margin: 14px 0 0; padding-left: 22px; font-size: 15px; line-height: 1.5; }
.paysteps li { margin: 6px 0; }
.note { background: var(--warn-soft); border-radius: 12px; padding: 12px 14px; font-size: 14px; line-height: 1.5; }
.err { color: var(--danger); font-size: 14px; margin-top: 8px; }
.ok-big { text-align: center; padding: 10px 0 4px; }
.ok-big svg { width: 64px; height: 64px; color: var(--success); }
.ok-big h2 { padding: 0; margin-top: 10px; }

.google { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 54px; border-radius: 14px; border: 1px solid #DADCE0; background: #fff;
  font-size: 16px; font-weight: 600; color: #1F1F1F; cursor: pointer; }
.google:hover { background: #F8F9FA; }
.google svg { width: 22px; height: 22px; }

/* Тост */
.toast { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 90; max-width: calc(100% - 32px);
  background: #2B1D18; color: #fff; padding: 12px 18px; border-radius: 14px; font-size: 15px; font-weight: 500; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); animation: up .25s; }
.toast.bad { background: var(--danger); }
@media (min-width: 980px) { .toast { bottom: 32px; } }

.skeleton { border-radius: 18px; background: linear-gradient(90deg, var(--tint) 0%, #F8F6FC 50%, var(--tint) 100%); background-size: 200% 100%; animation: sk 1.3s infinite; }
@keyframes sk { to { background-position: -200% 0; } }
.center-box { min-height: 50vh; display: grid; place-items: center; text-align: center; padding: 40px 0; }
.center-box p { color: var(--muted); margin-top: 8px; }

.foot { border-top: 1px solid var(--line); margin-top: 40px; padding: 24px 0 calc(24px + var(--bar-h)); font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot a { color: var(--muted); }
@media (min-width: 980px) { .foot { padding-bottom: 24px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

.demo-link { display: inline-flex; margin-top: 18px; }
@media (min-width: 980px) { .demo-link { display: none; } }


/* ================= Премиальный слой (21.11) ================= */
body { background: var(--bg); overflow-x: clip; }
.wstep h1, .sec-title, .toi-head h1, .sheet h2, .center-box h1, .pick-title { font-family: var(--serif); font-weight: 500; letter-spacing: 0; }
.wstep h1 { font-size: clamp(32px, 8vw, 40px); line-height: 1.05; margin-top: 14px; }
.toi-head h1 { font-size: clamp(28px, 6.4vw, 36px); line-height: 1.1; }
.sheet h2 { font-size: 28px; line-height: 1.1; }
.pick-title { font-size: 26px; }
.sec-title { font-size: clamp(30px, 7.4vw, 40px); line-height: 1.05; margin: 0 0 16px; }
.btn.primary { box-shadow: 0 8px 20px rgba(122, 30, 44, .22); }
.btn.gold { background: linear-gradient(180deg, #E6CB91 0%, #C9A35E 100%); color: #2B1D18; border-color: #B8924F; box-shadow: 0 10px 26px rgba(201, 163, 94, .3), inset 0 1px 0 rgba(255, 255, 255, .55); }
.btn.gold:hover { background: linear-gradient(180deg, #EBD29B 0%, #CFA964 100%); }
.btn.gold small { font-weight: 500; opacity: .72; font-size: 12.5px; }
.lbar .btn.gold { flex-direction: column; gap: 0; line-height: 1.2; min-height: 56px; }
.btn.ghost-light { background: rgba(255, 255, 255, .06); border-color: rgba(217, 184, 119, .38); color: #F4ECDD; }
.btn.ghost-light:hover { background: rgba(255, 255, 255, .1); }
.kind[aria-pressed="true"], .theme[aria-pressed="true"], .env[aria-pressed="true"], .plan[aria-pressed="true"] { border-color: var(--gold); box-shadow: 0 0 0 3px var(--ring); background: #FFFDF8; }
.price-card.best { border-color: var(--gold); box-shadow: 0 0 0 3px var(--ring); }
.tag { background: var(--gold-soft); color: #7A5A1E; border: 1px solid #EAD9B6; }
.kind svg { color: var(--gold); }
.kind:hover, .toi-card:hover { border-color: var(--gold-2); }
.progress { background: var(--tint); height: 4px; }
.progress i { background: linear-gradient(90deg, var(--gold-2), var(--gold)); }
.steps-top .meta b { color: var(--ink); }
.chips button[aria-current="step"] { border-color: var(--gold); background: #FFFDF8; color: var(--ink); }
.chips button[aria-current="step"] i { background: var(--accent); }
.how i { background: var(--gold-soft); color: #7A5A1E; font-family: var(--serif); font-size: 20px; }
.price-card li::before, .plan li::before { color: var(--gold); }
.group { border-radius: 22px; }
.input:focus { border-color: var(--gold); box-shadow: 0 0 0 4px var(--ring); }
.status.check { background: #F5F5FA; border-color: #E2E3EE; }
.pill2.acc { background: #ECEEF6; color: var(--accent); }
.tabs a .n { background: var(--gold); }
.gfilter button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); }
:focus-visible { outline-color: var(--gold); }

/* --- Первый экран: живой видео-конверт --- */
.hx { margin: 0 calc(50% - 50vw); padding: 30px max(20px, env(safe-area-inset-left)) 40px; color: #F4ECDD; position: relative; overflow: hidden;
  background: radial-gradient(120% 70% at 50% 0%, #5A1A26 0%, #2B0C12 52%, #1E070C 100%); border-bottom: 1px solid rgba(217, 184, 119, .35); }
.hx::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: radial-gradient(40% 30% at 50% 46%, rgba(217, 184, 119, .16), transparent 70%); }
.hx-in { position: relative; max-width: 1180px; margin: 0 auto; display: grid; gap: 22px; grid-template-areas: "head" "phone" "body"; }
.hx-head { grid-area: head; text-align: center; }
.hx-body { grid-area: body; text-align: center; }
.hx .eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--gold-2); font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 14px; }
.hx .eyebrow::before, .hx .eyebrow::after { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .6; }
.hx h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(40px, 11vw, 68px); line-height: 1; letter-spacing: -0.005em; color: #FBF5EA; margin: 0; hyphens: manual; }
.hx h1 em { font-style: inherit; font-weight: inherit; color: inherit; }
.hx .lead { color: rgba(244, 236, 221, .78); font-size: 16.5px; line-height: 1.55; max-width: 520px; margin: 0 auto; }
.hx-cta { display: grid; gap: 10px; margin: 22px auto 0; max-width: 420px; }
.hx .ticks { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin-top: 18px; font-size: 13.5px; color: rgba(244, 236, 221, .7); }
.hx .ticks span::before { content: "✓"; color: var(--gold-2); font-weight: 600; margin-right: 6px; }
.hx-phone { grid-area: phone; position: relative; display: block; width: min(230px, 62vw); aspect-ratio: 9 / 16; margin: 0 auto; border-radius: 26px; overflow: hidden;
  border: 1px solid rgba(217, 184, 119, .5); box-shadow: 0 30px 70px rgba(0, 0, 0, .5), 0 0 0 7px rgba(255, 255, 255, .04); background: #2B1D18; }
.hx-phone video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.hx-card { position: absolute; inset: 0; color: #8C6A31; opacity: 0; filter: blur(6px); transition: opacity 1.1s ease, filter 1.1s ease; pointer-events: none; }
.hx-card.on { opacity: 1; filter: none; }
.hx-card .t { position: absolute; left: 8%; right: 8%; bottom: 53%; text-align: center; }
.hx-card .d { position: absolute; left: 0; right: 0; top: 60.5%; text-align: center; font-family: var(--serif); font-weight: 500; font-size: 13px; letter-spacing: .28em; }
.hx-card small { display: block; font-size: 8.5px; letter-spacing: .24em; text-transform: uppercase; color: #6F6450; margin-bottom: 4px; }
.hx-card b { display: block; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 27px; line-height: 1.05; color: #9A7637; }
@media (min-width: 980px) {
  .hx { padding: 72px 24px 80px; }
  .hx-in { grid-template-columns: minmax(0, 1fr) 300px; grid-template-areas: "head phone" "body phone"; gap: 18px 72px; align-items: end; }
  .hx-head, .hx-body { text-align: left; }
  .hx-body { align-self: start; }
  .hx .lead { margin: 0; }
  .hx-cta { display: flex; margin: 26px 0 0; max-width: none; }
  .hx .ticks { justify-content: flex-start; }
  .hx-phone { width: 300px; border-radius: 34px; }
  .hx-card b { font-size: 30px; } .hx-card small { font-size: 9.5px; } .hx-card .d { font-size: 14px; }
}

/* --- Выбор тоя, шаги, цены, вопросы --- */
.pick { padding-top: 40px; scroll-margin-top: calc(var(--head-h) + 8px); }
.how div { border-radius: 20px; }
.faq { margin-top: 40px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 56px; padding: 12px 0; font-weight: 600; font-size: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; font-weight: 400; color: var(--gold); transition: transform .2s; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); font-size: 15px; line-height: 1.55; padding: 0 0 16px; }

/* Нижняя кнопка «Создать» на телефоне */
.lbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; padding: 10px max(16px, env(safe-area-inset-left)) calc(10px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(250, 247, 242, 0), rgba(250, 247, 242, .96) 30%); transform: translateY(110%); transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.lbar.on { transform: none; }
@media (min-width: 980px) { .lbar { display: none; } }

/* --- Мастер на телефоне: меньше служебного, больше места --- */
.kind-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; padding: 0; }
.kind-row::-webkit-scrollbar { display: none; }
@media (min-width: 700px) { .kind-row { flex-wrap: wrap; margin: 0 0 14px; padding: 0; } }
.kind-row button { flex: none; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); font-size: 14.5px; font-weight: 500; cursor: pointer; color: var(--muted); }
.kind-row button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.seg button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); }
.bar .in .btn.back-btn { flex: 0 0 52px; padding: 0; }
.bar .in .btn.back-btn span { display: none; }
.bar .in { gap: 8px; }
.bar .in .btn { padding: 0 14px; min-width: 0; }
.bar .in .btn.primary { flex: 1 1 0; }
.bar .in .btn.pv-open-btn { flex: 0 0 auto; }
.bar .in .btn.pv-open-btn span { font-size: 15px; }
@media (max-width: 360px) { .bar .in .btn.pv-open-btn span { display: none; } }
@media (min-width: 980px) { .bar .in .btn.back-btn { flex: 0 0 auto; padding: 0 22px; } .bar .in .btn.back-btn span { display: inline; } }
@media (max-width: 979px) { .steps-top .link { display: none; } }
@media (max-width: 699px) { .chips { display: none; } .steps-top { padding-top: 18px; } }
@media (max-width: 420px) { .pv .pv-head b { display: none; } .pv .pv-head { justify-content: flex-end; } }
.pv .pv-head { background: #1E070C; }
/* Приложение — «скоро»: цена приглушена, без выделения */
.price-card.soon { opacity: .62; }
.price-card.soon .tag { background: #F6E6E2; color: #7A1E2C; }

/* «Кто приглашает» — три равные кнопки в одну строку (текст переносится), а не столбиком */
.seg.seg3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.seg.seg3 button { min-height: 52px; padding: 6px 8px; font-size: 14px; line-height: 1.25; border-radius: 14px; text-align: center; }
/* Жених и невеста: на телефоне друг под другом — чтобы подсказка «Например, Азамат» помещалась целиком */
@media (max-width: 520px) { .grid2.names2 { grid-template-columns: 1fr; } }


.theme .sw.scene span { font-family: 'Great Vibes KG', 'Cormorant Garamond', serif; font-style: normal; text-shadow: 0 1px 8px rgba(0,0,0,.5); }
@font-face { font-family: 'Great Vibes KG'; font-display: swap; src: url(/inv/fonts/great-vibes-kg.woff2) format('woff2'); }

/* Выбор оформления: обложки как в каталоге */
.themes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (min-width: 560px) { .themes { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.theme .cover { display: block; width: 100%; aspect-ratio: 9 / 16; object-position: center 30%; object-fit: cover; border-radius: 12px; background: #EEE6DA; }
.hint2 { margin: -4px 0 12px; font-size: 13px; color: #6E5D52; line-height: 1.45; }
.themes-more { margin: 18px 0 10px; font: 600 13px/1.3 Inter, system-ui, sans-serif; color: #6E5D52; }
.themes-all { margin-top: 14px; }

/* 25.11: первый экран конструктора — светлый, как главная; в телефоне — обложка нового оформления */
.hx { color: #2B1D18; background: radial-gradient(60% 50% at 80% 10%, rgba(217, 184, 119, .25), transparent 70%), transparent; border-bottom: 1px solid #E5D6C1; }
.hx::before { display: none; }
.hx h1 { color: #2B1D18; }
.hx .eyebrow { color: #A9843F; }
.hx .lead { color: #6E5D52; }
.hx .ticks { color: #6E5D52; }
.hx .btn.gold { background: #7A1E2C; color: #FFF7EE; box-shadow: 0 10px 24px rgba(122, 30, 44, .22); border-color: #7A1E2C; }
.hx .btn.ghost-light { color: #7A1E2C; border-color: rgba(122, 30, 44, .35); background: transparent; }
.hx-phone { border: 6px solid #fff; box-shadow: 0 30px 60px rgba(60, 30, 20, .22); aspect-ratio: 1 / 2; }
.hx-phone img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.lbar .btn.gold { background: #7A1E2C; color: #FFF7EE; border-color: #7A1E2C; }

/* Музыка: выбор мелодии и своя песня */
.trks { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.trk { display: flex; align-items: stretch; gap: 8px; }
.trk-pick { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 14px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface); text-align: left; cursor: pointer; font: inherit; color: inherit; }
.trk-pick i { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line-2); }
.trk.on .trk-pick { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.trk.on .trk-pick i { border-color: var(--accent); background: radial-gradient(circle, var(--accent) 0 5px, transparent 6px); }
.trk-pick span { display: flex; flex-direction: column; min-width: 0; }
.trk-pick b { font-size: 15px; font-weight: 600; }
.trk-pick small { font-size: 13px; color: var(--muted, #6b6b6b); }
.trk-play { flex: none; width: 52px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface); font-size: 16px; cursor: pointer; color: var(--accent); }
.own-up { margin-top: 10px; display: flex; flex-direction: column; gap: 10px; }
.chk { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.4; cursor: pointer; }
.chk input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); }
.row-btns { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

/* Видео-приглашение */
.vid-box { width: min(100%, 300px); aspect-ratio: 9 / 16; margin: 6px auto 14px; border-radius: 18px; overflow: hidden; background: #1b1412; box-shadow: var(--shadow-2); }
.vid-box canvas, .vid-box video { display: block; width: 100%; height: 100%; object-fit: contain; background: #1b1412; }
.vid-box [hidden] { display: none; }
.vid-prog { text-align: center; }
.vid-prog p { margin: 6px 0 0; }
.vid-bar { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.vid-bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .3s linear; }
.vid-btns { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }

/* Режим приложения (конструктор внутри «Той Менеджер»): без шапки сайта, подвала и чата; стартовая страница не мелькает */
.tm-app .head .brand, .tm-app .head .lang, .tm-app .head .acct { display: none !important; }
:root.tm-app { --head-h: 0px; }
.tm-app .head { height: 0; border: 0; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; }
.tm-app .head .in { height: 0; }
.tm-app .save-state { position: fixed; top: 8px; right: 12px; z-index: 40; background: rgba(255,255,255,.92); border-radius: 999px; padding: 4px 10px; }
.tm-app #app:not(.ready) > * { display: none !important; }
.tm-app .foot, .tm-app body > jdiv { display: none !important; }
.tm-app .toi-head .back { display: none; }

/* Промо-код */
.promo-banner { display: flex; gap: 10px; align-items: center; padding: 10px 14px; margin-bottom: 12px; border-radius: 14px; background: #FFF6E5; border: 1px solid #F1DDB8; font-size: 14px; font-weight: 600; color: #6B4A12; }
.promo-banner svg { flex: none; width: 18px; height: 18px; color: #C49A4A; }
.status .btns .link { font-size: 14px; }
