/* Витрина www.priglashu.online (templates/showcase.html). Светлая бумага, бордо и золото — как у приглашений.
   Шрифты только с ң ө ү: Cormorant Garamond (заголовки), Raleway (текст). Мобильная страница в первую очередь. */
:root {
  --bg: #f6efe4;
  --paper: #fffaf2;
  --ink: #2b211b;
  --muted: #7a6a5c;
  --accent: #7b1e2b;
  --accent-ink: #fff6ea;
  --gold: #b8995a;
  --line: #e6d9c4;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Raleway', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--sans); }
a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; margin: 0; }
h2 { font-size: clamp(30px, 6vw, 44px); text-align: center; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: 640px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.sub { max-width: 620px; margin: 12px auto 28px; text-align: center; color: var(--muted); }
section { padding: 64px 0; }
@media (min-width: 900px) {
  section { padding: 120px 0; }
  h2 { font-size: clamp(44px, 4.6vw, 64px); letter-spacing: -.005em; }
  .sub { font-size: 19px; margin-bottom: 40px; }
}

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border: 1px solid var(--accent); border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); font: 600 15px/1 var(--sans);
  text-decoration: none; cursor: pointer; transition: background .2s, color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--accent); }
.btn.ghost:hover { background: var(--accent); color: var(--accent-ink); }
.btn.small { padding: 10px 16px; font-size: 14px; }
.btn.wide { width: 100%; padding: 18px; font-size: 17px; }

/* Шапка */
.top { position: sticky; top: 0; z-index: 10; background: rgba(246, 239, 228, .92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; gap: 16px; height: 60px; }
.logo { font: italic 600 26px/1 var(--serif); color: var(--accent); text-decoration: none; letter-spacing: .01em; }
.nav { display: none; gap: 24px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--muted); font-size: 15px; }
.nav a:hover { color: var(--accent); }
.langs { display: flex; gap: 2px; margin-left: auto; font-size: 13px; font-weight: 600; }
.langs a { padding: 6px 8px; border-radius: 8px; text-decoration: none; color: var(--muted); }
.langs a.on { background: var(--paper); color: var(--accent); }
.top .btn.small { padding: 9px 14px; font-size: 13px; }
@media (min-width: 860px) { .nav { display: flex; } .langs { margin-left: 8px; } }
@media (max-width: 380px) { .top .btn.small { display: none; } }

/* Первый экран */
.hero { padding: 40px 0 56px; overflow: hidden; }
.hero-row { display: grid; gap: 40px; align-items: center; }
.kicker { margin: 0 0 12px; color: var(--gold); font-size: 13px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.hero h1 { font-size: clamp(38px, 9vw, 62px); }
.lead { margin: 18px 0 26px; font-size: 17px; color: var(--muted); max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 0; margin: 28px 0 0; list-style: none; color: var(--muted); font-size: 14px; }
.facts li::before { content: '✦'; margin-right: 8px; color: var(--gold); }
.hero-phones { position: relative; height: 560px; }
.hero-phones .phone { position: absolute; width: 250px; }
.hero-phones .front { left: 50%; top: 0; transform: translateX(-38%) rotate(3deg); z-index: 2; }
.hero-phones .back { left: 50%; top: 34px; transform: translateX(-66%) rotate(-7deg); opacity: .9; }
@media (min-width: 860px) {
  .hero { padding: 72px 0 88px; }
  .hero-row { grid-template-columns: 1.1fr .9fr; }
  .hero-phones { height: 640px; }
  .hero-phones .phone { width: 290px; }
}
@media (min-width: 1100px) {
  .hero { padding: 96px 0 120px; }
  .hero h1 { font-size: clamp(62px, 5.4vw, 80px); letter-spacing: -.01em; }
  .lead { font-size: 20px; max-width: 560px; }
  .hero .btn { padding: 16px 30px; font-size: 16px; }
  .hero-phones { height: min(760px, 78vh); }
  .hero-phones .phone { width: min(340px, calc(78vh * 390 / 844 - 8px)); border-radius: 48px; padding: 11px; }
  .hero-phones .phone img { border-radius: 38px; }
}

/* Телефон со скриншотом: рамка CSS, внутри картинка 390×844 (tools/visual/showcase.mjs) */
.phone {
  display: block; position: relative; aspect-ratio: 390 / 844; padding: 9px; border-radius: 40px;
  background: #1d1714; box-shadow: 0 24px 48px -18px rgba(60, 30, 20, .45), inset 0 0 0 2px #3b302a;
}
.phone::before { /* «чёлка» */
  content: ''; position: absolute; z-index: 1; top: 16px; left: 50%; width: 30%; height: 20px;
  transform: translateX(-50%); border-radius: 12px; background: #1d1714;
}
.phone img, .phone .blank { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 31px; }
.phone .blank {
  display: flex; align-items: center; justify-content: center; padding: 16px; text-align: center;
  background: radial-gradient(circle at 50% 30%, #9b3343, #4d0f19); color: #f3e3c3;
  font: italic 600 28px/1.1 var(--serif); text-decoration: none;
}

/* Каталог */
.catalog { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 auto 32px; }
.chip {
  padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg);
  color: var(--ink); font: 500 14px/1 var(--sans); cursor: pointer;
}
.chip.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
/* Каталог крупно, в первую очередь для телефона: карусель с прокруткой пальцем — телефон почти во всю ширину
   экрана (как живое приглашение), соседняя карточка выглядывает справа и подсказывает, что листается. На широком
   экране — тоже лента, но во всю ширину окна (как каталоги apple.com): начинается от края колонки, уходит за правый
   край, листается стрелками; телефон — по высоте окна, чтобы целиком помещался на экране. */
.cards {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(86vw, 380px); gap: 16px;
  margin: 0 -16px; padding: 4px 16px 18px; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-padding: 0 16px; overscroll-behavior-x: contain; scrollbar-width: none;
}
.cards::-webkit-scrollbar { display: none; }
.card { display: flex; flex-direction: column; align-items: center; text-align: center; scroll-snap-align: center; }
.card[hidden] { display: none; } /* шаблон не подходит к выбранному тою (showcase.js) */
.card .phone { width: 100%; text-decoration: none; transition: transform .25s; }
.card .phone:hover { transform: translateY(-4px); }
.card-body { display: flex; flex-direction: column; align-items: center; flex: 1; padding-top: 18px; }
.card h3 { font-size: 28px; }
.price { margin: 6px 0 0; color: var(--accent); font-weight: 600; font-size: 18px; }
.price.ask { color: var(--muted); font-weight: 500; font-size: 15px; }
.card .text { margin: 10px 0 0; color: var(--muted); font-size: 15px; max-width: 300px; }
.card-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: auto; padding-top: 16px; }
.swipe { margin: 4px 0 0; text-align: center; color: var(--muted); font-size: 13px; }
.rail-nav { display: none; }
@media (min-width: 900px) {
  .catalog { overflow-x: clip; } /* 100vw шире окна на полосу прокрутки */
  /* отступ ленты = край колонки .wrap (1120 − 2×16 = 1088) */
  .cards { --edge: max(32px, calc(50vw - 544px)); --ph: clamp(340px, calc(46vh - 20px), 430px);
    grid-auto-columns: var(--ph); gap: 40px; margin: 0 calc(50% - 50vw);
    padding: 12px var(--edge) 24px; scroll-padding: 0 var(--edge); scroll-behavior: smooth; }
  .card { scroll-snap-align: start; }
  .card .phone { width: var(--ph); border-radius: 48px; padding: 11px; }
  .card .phone img, .card .phone .blank { border-radius: 38px; }
  .card .phone:hover { transform: translateY(-6px); }
  .card h3 { font-size: 34px; }
  .card .text { max-width: 340px; }
  .swipe { display: none; }
  .rail-nav { display: flex; justify-content: flex-end; gap: 12px; margin-top: 8px; }
  .rail-btn { display: grid; place-items: center; width: 52px; height: 52px; border: 0; border-radius: 50%;
    background: #ece3d5; color: var(--ink); font: 400 30px/1 var(--serif); cursor: pointer; transition: background .2s, opacity .2s; }
  .rail-btn:hover { background: #e2d6c3; }
  .rail-btn:disabled { opacity: .35; cursor: default; }
}

/* Особенности — плитки разного размера (как сетки возможностей apple.com). Порядок плиток задан в разметке:
   3 колонки: конверт 2×2 + «два языка», «своя ссылка»; три обычных; таймер на две + «музыка». На телефоне — столбик. */
.grid { display: grid; gap: 14px; margin-top: 36px; }
.feature { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 200px;
  padding: 26px 24px; border-radius: 28px; background: var(--paper); overflow: hidden; }
.feature h3 { font-size: 28px; color: var(--ink); }
.feature p { margin: 8px 0 0; color: var(--muted); font-size: 16px; max-width: 420px; }
.f-art { margin-bottom: auto; padding-bottom: 22px; }
.f-big { font: 600 64px/1 var(--serif); color: var(--accent); letter-spacing: .02em; }
.f-big i { color: var(--gold); font-style: normal; }
.f-script { font: italic 500 46px/1.05 var(--serif); color: var(--accent); }
.f-rsvp { display: grid; gap: 8px; justify-items: start; }
.f-rsvp span { padding: 11px 18px; border-radius: 999px; font-size: 14px; font-weight: 600; }
.f-rsvp .yes { background: var(--accent); color: var(--accent-ink); }
.f-rsvp .no { border: 1px solid var(--line); color: var(--muted); }
/* тёмные плитки: конверт (бордо) и таймер */
.f-envelope, .f-countdown { color: var(--accent-ink); }
.f-envelope { background: radial-gradient(120% 90% at 50% 25%, #9b3343 0%, #6b1824 55%, #4d0f19 100%); min-height: 420px; }
.f-countdown { background: radial-gradient(120% 120% at 20% 0%, #3a2c24, #1d1714 70%); }
.f-envelope h3, .f-countdown h3 { color: #fff6ea; }
.f-envelope p, .f-countdown p { color: rgba(255, 246, 234, .72); }
.f-envelope .f-art { display: grid; place-items: center; flex: 1; margin: 0; }
/* конверт: бумага, клапан и сургуч */
.env { position: relative; display: block; width: min(300px, 76%); aspect-ratio: 3 / 2; border-radius: 10px;
  background: linear-gradient(160deg, #fbf3e4, #ead9bc); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .55); transform: rotate(-4deg); }
.env-flap { position: absolute; inset: 0 0 auto; height: 58%; background: linear-gradient(180deg, #f3e6cd, #e2cfae);
  clip-path: polygon(0 0, 100% 0, 50% 100%); border-radius: 10px 10px 0 0; }
.env-seal { position: absolute; left: 50%; top: 58%; width: 64px; height: 64px; display: grid; place-items: center;
  transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle at 35% 30%, #a83246, #6e1522 70%);
  box-shadow: 0 6px 14px rgba(60, 10, 20, .45), inset 0 0 0 4px rgba(0, 0, 0, .12); color: #e8c98a; font: italic 600 30px/1 var(--serif); }
/* «Ваша страница» — гости кружками; программа — время; музыка — звуковая волна */
.f-guests { display: flex; align-items: center; }
.f-guests i, .f-guests b { display: grid; place-items: center; width: 48px; height: 48px; margin-right: -10px; border-radius: 50%;
  border: 3px solid var(--paper); font: italic 600 22px/1 var(--serif); color: var(--accent-ink); }
.f-guests i:nth-child(1) { background: #7b1e2b; } .f-guests i:nth-child(2) { background: #b8995a; }
.f-guests i:nth-child(3) { background: #3a2c24; } .f-guests i:nth-child(4) { background: #9b3343; }
.f-guests b { width: auto; padding: 0 14px; border-radius: 999px; background: #efe5d4; color: var(--accent);
  font: 600 15px/1 var(--sans); height: 48px; }
.f-times { display: flex; gap: 10px; white-space: nowrap; font: 500 30px/1 var(--serif); color: var(--accent);
  font-variant-numeric: lining-nums tabular-nums; }
.f-times span + span::before { content: '·'; margin-right: 10px; color: var(--gold); }
.f-wave { display: flex; align-items: center; gap: 7px; height: 72px; }
.f-wave b { margin-right: 12px; font: 400 52px/1 var(--serif); color: var(--accent); }
.f-wave i { width: 7px; border-radius: 4px; background: var(--gold); }
.f-wave i:nth-child(odd) { height: 60%; } .f-wave i:nth-child(even) { height: 95%; }
.f-wave i:nth-child(3n) { height: 35%; } .f-wave i:nth-child(4n) { height: 75%; background: var(--accent); }
.f-count { display: flex; gap: 22px; }
.f-count span { display: grid; gap: 6px; }
.f-count b { font: 500 64px/1 var(--serif); color: #e8c98a; font-variant-numeric: lining-nums tabular-nums; }
.f-count i { font-style: normal; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 246, 234, .6); }
@media (min-width: 640px) {
  .grid { grid-template-columns: 1fr 1fr; }
  .f-envelope, .f-countdown { grid-column: span 2; }
}
@media (min-width: 900px) {
  .grid { grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
  .feature { min-height: 280px; padding: 34px 32px; }
  .f-envelope { grid-row: span 2; }
  .f-envelope h3 { font-size: 40px; }
  .f-countdown h3 { font-size: 34px; }
  .f-count b { font-size: 84px; }
  .f-count { gap: 34px; }
}

/* Шаги: крупные тонкие золотые номера, без рамок — только тонкая линия сверху */
.steps { background: var(--accent); color: var(--accent-ink); }
.steps ol { counter-reset: step; display: grid; gap: 20px; margin: 40px 0 0; padding: 0; list-style: none;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
/* на телефоне номер слева от текста (столбик короче), на широком — над текстом */
.steps li { counter-increment: step; display: grid; grid-template-columns: 64px 1fr; align-items: baseline; padding-top: 16px;
  border-top: 1px solid rgba(255, 246, 234, .25); font-size: 17px; line-height: 1.45; }
.steps li::before { content: counter(step, decimal-leading-zero); color: #e8c98a;
  font: italic 500 44px/1 var(--serif); font-variant-numeric: lining-nums; }
@media (min-width: 900px) {
  .steps ol { gap: 40px; margin-top: 64px; }
  .steps li { display: block; padding-top: 18px; font-size: 19px; }
  .steps li::before { display: block; margin-bottom: 14px; font-size: 84px; }
}

/* Вопросы: крупно, тонкие линии, стрелка вместо «+» */
.faq .wrap.narrow { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { margin-top: 32px; border-top: 1px solid var(--line); }
.faq summary { padding: 22px 40px 22px 0; position: relative; cursor: pointer; list-style: none; font-size: 18px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px; margin-top: -8px;
  border-right: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent); transform: rotate(45deg); transition: transform .25s; }
.faq details[open] summary::after { transform: translateY(5px) rotate(225deg); }
.faq details p { margin: 0 0 22px; color: var(--muted); font-size: 17px; max-width: 640px; }
@media (min-width: 900px) {
  .faq details:first-of-type { margin-top: 48px; }
  .faq summary { padding: 28px 48px 28px 0; font-size: 21px; }
}

/* Форма заявки */
.order { background: var(--paper); border-top: 1px solid var(--line); }
@media (min-width: 900px) { .order .wrap.narrow { max-width: 720px; } }
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; align-content: start; font-size: 14px; font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border: 1px solid transparent; border-radius: 14px; background: #f7f1e7;
  color: var(--ink); font: 16px/1.3 var(--sans); transition: border-color .15s, background .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); background: #fff; }
.field em { color: #b3261e; font-style: normal; font-size: 13px; }
.field.bad input { border-color: #b3261e; }
.two { display: grid; gap: 16px; }
@media (min-width: 560px) { .two { grid-template-columns: 1fr 1fr; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.thanks { margin: 28px 0 0; padding: 28px 22px; border-radius: 24px; background: #fff; text-align: center;
  box-shadow: 0 1px 2px rgba(60, 30, 20, .04), 0 12px 32px -20px rgba(60, 30, 20, .18); }
.thanks b { display: block; font: 600 26px/1.2 var(--serif); color: #24502a; }
.thanks p { margin: 10px 0 0; color: var(--muted); }

/* Подвал */
.foot { padding: 28px 0; border-top: 1px solid var(--line); font-size: 14px; }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.contacts { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.contacts a { color: var(--accent); font-weight: 600; text-decoration: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card .phone { transition: none; }
  .cards { scroll-behavior: auto; }
  .faq summary::after { transition: none; }
}

/* Подробная заявка: шаги-группы */
.step { margin: 0; padding: 22px 18px; border: 0; border-radius: 24px; background: #fff; display: grid; gap: 16px;
  box-shadow: 0 1px 2px rgba(60, 30, 20, .04), 0 12px 32px -20px rgba(60, 30, 20, .18); }
/* legend у fieldset без рамки ложится на край — float возвращает его внутрь плитки */
.step legend { float: left; width: 100%; padding: 0; margin-bottom: 2px; font: 600 24px/1.2 var(--serif); color: var(--ink); }
@media (min-width: 900px) { .step { padding: 32px 30px; gap: 18px; } .step legend { font-size: 28px; } }
.step textarea { width: 100%; padding: 14px 16px; border: 1px solid transparent; border-radius: 14px; background: #f7f1e7;
  color: var(--ink); font: 16px/1.4 var(--sans); }
.step textarea:focus { outline: none; border-color: var(--gold); background: #fff; }
.ev { display: grid; gap: 14px; }
.ev[hidden] { display: none; } /* скрыта группа другого тоя (showcase.js) */
.host-title { margin: 6px 0 -4px; font-weight: 600; font-size: 14px; color: var(--accent); }
/* Переключатель-сегмент (язык, семьи/люди): равные кнопки в одну строку, системный кружок спрятан — на iPhone
   таблетки с кружками переносились и выглядели криво. Выбор — input:checked + span (работает и без :has в старых iOS) */
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--bg); }
.seg label { position: relative; display: block; margin: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.seg input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer;
  -webkit-appearance: none; appearance: none; }
.seg span { display: flex; align-items: center; justify-content: center; min-height: 42px; padding: 6px 4px; border-radius: 10px;
  text-align: center; font-size: 14px; line-height: 1.2; color: var(--muted); transition: background .15s, color .15s; }
.seg input:checked + span { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.seg input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 1px; }
.photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.photo { position: relative; display: grid; gap: 6px; text-align: center; font-size: 13px; color: var(--muted); cursor: pointer; }
.photo input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.ph-img { aspect-ratio: 3 / 4; border: 1.5px dashed var(--gold); border-radius: 14px; background: var(--bg) center / cover no-repeat;
  display: grid; place-items: center; }
.ph-img::after { content: '+'; font: 300 34px/1 var(--sans); color: var(--gold); }
.photo.has .ph-img { border-style: solid; }
.photo.has .ph-img::after { content: none; }
.photo:focus-within .ph-img { outline: 2px solid var(--gold); outline-offset: 2px; }
.errors-top, .bad-text { color: #b3261e; font-weight: 500; }
.errors-top { margin: 0; padding: 12px 14px; border-radius: 12px; background: #fbeaea; }

/* Пошаговая форма заказа (мастер, showcase.js ставит .wiz) — как оформление покупки в Apple Store: один вопрос
   на экран, крупный заголовок-вопрос, плитки выбора вместо списков, тонкий прогресс, одна главная кнопка-«пилюля»,
   на телефоне — панель кнопок, прилипшая к низу, с размытым фоном. Без скрипта все шаги видны одной страницей. */
.step-sub { margin: -8px 0 4px; color: var(--muted); font-size: 15px; }
.field-q { margin: 0; font-size: 15px; font-weight: 600; color: var(--ink); }
.field small, .field-q small, .field span small { font-weight: 400; font-size: 13px; color: var(--muted); }
.field input[type=date], .field input[type=time] { min-height: 52px; }
.form [hidden] { display: none !important; } /* у .field, .tpl и др. свой display — атрибут hidden без этого не прятал */
.field.bad input, .field.bad textarea { border-color: #b3261e; background: #fff; }

/* Плитки выбора: radio спрятан, вид — у .tile-in; выбранная — рамка акцентом и галочка */
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.tiles.three { grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tile { position: relative; display: block; margin: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.tile input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer;
  -webkit-appearance: none; appearance: none; }
.tile-in { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 2px; height: 100%;
  min-height: 64px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 18px; background: #fff;
  transition: border-color .2s, box-shadow .2s, transform .2s; }
.tiles.three .tile-in { align-items: center; padding: 12px 6px; text-align: center; }
.tile-name { font-size: 15px; font-weight: 600; line-height: 1.25; }
.tile-note { font-size: 12.5px; color: var(--muted); line-height: 1.3; }
.tile:hover .tile-in { border-color: var(--gold); }
.tile input:checked + .tile-in { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.tile input:checked + .tile-in::after { content: ''; position: absolute; top: 10px; right: 10px; width: 20px; height: 20px;
  border-radius: 50%; background: var(--accent) no-repeat center / 12px
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.3 2.3 4.7-5' fill='none' stroke='%23fff6ea' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.tiles.three .tile input:checked + .tile-in::after { top: 6px; right: 6px; width: 16px; height: 16px; background-size: 10px; }
.tile input:focus-visible + .tile-in { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Шаблоны: скриншот сверху (верх страницы приглашения), название и цена; «Үлгүсү ↗» — под плиткой */
.tpl { display: grid; gap: 6px; align-content: start; }
.tpl[hidden] { display: none; }
.tpl .tile-in { justify-content: flex-start; padding: 8px 8px 12px; }
.tpl-img { display: block; aspect-ratio: 4 / 5; margin-bottom: 8px; overflow: hidden; border-radius: 12px; background: var(--bg); }
.tpl-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.tpl .tile-name, .tpl .tile-note { padding: 0 4px; }
.tpl-demo { justify-self: center; padding: 4px 8px; color: var(--accent); font-size: 13px; font-weight: 600; text-decoration: none; }

.hosts { display: grid; gap: 12px; padding-top: 6px; border-top: 1px solid var(--line); margin-top: 4px; }
.prog-list { margin: 0; padding: 14px 16px; border-radius: 14px; background: #f7f1e7; list-style: none; display: grid; gap: 6px; }
.prog-list li { display: grid; grid-template-columns: 52px 1fr; gap: 8px; font-size: 15px; }
.prog-list b { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--accent); }
.tiles-err { margin-top: -6px; color: #b3261e; font-style: normal; font-size: 13px; }

/* Сводка перед отправкой */
.review { display: grid; gap: 10px; margin-top: 8px; padding-top: 18px; border-top: 1px solid var(--line); }
.review[hidden] { display: none; }
.review dl { margin: 0; display: grid; }
.review .row { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.review .row:last-child { border-bottom: 0; }
.review dt { font-size: 13px; color: var(--muted); }
.review dd { grid-column: 1; margin: 0; font-size: 15px; white-space: pre-line; overflow-wrap: anywhere; }
.review dd.none { color: var(--muted); font-style: italic; }
.review .row button { grid-column: 2; grid-row: 1 / span 2; align-self: center; padding: 6px 0; border: 0; background: none;
  color: var(--accent); font: 600 14px/1 var(--sans); cursor: pointer; }

/* Мастер включён */
.wiz-bar { display: grid; gap: 8px; }
.wiz-bar[hidden] { display: none; }
.wiz-count { font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--muted); text-transform: uppercase; }
.wiz-progress { display: block; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.wiz-progress i { display: block; height: 100%; width: 0; border-radius: 3px; background: var(--accent); transition: width .35s ease; }
.wiz .step { display: none; }
.wiz .step.cur { display: grid; animation: step-in .3s ease both; }
.wiz .step legend { font-size: 30px; }
@media (min-width: 900px) { .wiz .step legend { font-size: 36px; } }
@keyframes step-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.wiz-nav { display: flex; gap: 10px; }
.wiz .wiz-nav { position: sticky; bottom: 0; z-index: 5; margin: 0 -16px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255, 250, 242, .82); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-top: 1px solid rgba(230, 217, 196, .7); }
.wiz-nav .btn { flex: 1; min-height: 52px; font-size: 16px; }
.wiz-nav .wiz-back { flex: 0 0 auto; padding-left: 22px; padding-right: 22px; }
.wiz-nav [hidden] { display: none; }
.privacy { text-align: center; }
@media (min-width: 900px) { .wiz .wiz-nav { position: static; margin: 0; padding: 0; background: none; backdrop-filter: none;
  -webkit-backdrop-filter: none; border: 0; } }
@media (prefers-reduced-motion: reduce) {
  .wiz .step.cur { animation: none; }
  .tile-in, .wiz-progress i { transition: none; }
}
