/* Мировой сайт (webapp/templates/site/*). Ночное небо со звёздами — как у
   каталога ботов (/static/tk-stars.js), золото — акцент. Размеры в rem:
   на больших экранах и телевизоре растёт корневой размер шрифта, и вся
   страница крупнеет вместе с ним. Направление текста — логическими
   свойствами (inline-start/end): арабский, фарси и урду зеркалятся сами. */

@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url(/static/fonts/manrope-400-normal-latin.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: 'Manrope'; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url(/static/fonts/manrope-400-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url(/static/fonts/manrope-400-normal-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url(/static/fonts/manrope-400-normal-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url(/static/fonts/manrope-400-normal-vietnamese.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url(/static/fonts/playfair-display-400-normal-latin.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: 'Playfair Display'; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url(/static/fonts/playfair-display-400-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url(/static/fonts/playfair-display-400-normal-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url(/static/fonts/playfair-display-400-normal-vietnamese.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }

:root {
  --bg: #0b0916;
  --bg-2: #120f25;
  --ink: #f5f1ff;
  --muted: #aaa3c9;
  --faint: #7d779c;
  --line: rgba(255, 255, 255, .09);
  --card: rgba(255, 255, 255, .045);
  --card-2: rgba(255, 255, 255, .075);
  --gold-1: #f9e8bf;
  --gold-2: #dcae62;
  --gold-3: #b98638;
  --rose: #f3a2c4;
  --violet: #9078ff;
  --ok: #58d39b;
  --warn: #ffcf73;
  --bad: #ff8a8a;
  --radius: 1.4rem;
  --shadow: 0 1.6rem 4.5rem rgba(0, 0, 0, .5);
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans', 'Noto Sans Arabic',
          'Noto Sans Devanagari', Tahoma, sans-serif;
  --serif: 'Playfair Display', 'Noto Serif', Georgia, 'Times New Roman', 'Noto Naskh Arabic', serif;
  --gutter: clamp(1rem, 4vw, 2.5rem);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: var(--bg); color-scheme: dark; scroll-behavior: smooth; font-size: 16px; }
/* Чем больше экран, тем крупнее всё: на телевизоре читают с дивана. */
@media (min-width: 1600px) { html { font-size: 17px; } }
@media (min-width: 1900px) { html { font-size: 19px; } }
@media (min-width: 2400px) { html { font-size: 23px; } }
@media (min-width: 3200px) { html { font-size: 30px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font); color: var(--ink); line-height: 1.55;
  min-height: 100vh; overflow-x: hidden; -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
[dir="rtl"] body { font-family: var(--font); }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; border-radius: .4rem; }
.skip { position: absolute; inset-inline-start: -999px; top: .5rem; z-index: 100; background: var(--gold-2);
  color: #1b1304; padding: .5rem .9rem; border-radius: .6rem; }
.skip:focus { inset-inline-start: .5rem; }

.wrap { width: 100%; max-width: 76rem; margin: 0 auto; padding-inline: var(--gutter); }
.wrap.narrow { max-width: 50rem; }
.center { text-align: center; }

/* ---- Кнопки ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 2.9rem; padding: .7rem 1.35rem; border-radius: 999px; font-weight: 700;
  text-decoration: none; letter-spacing: .01em; white-space: nowrap; line-height: 1.15;
  transition: transform .18s ease, box-shadow .25s ease, background-color .25s ease, border-color .25s ease;
}
.btn:active { transform: scale(.97); }
.btn-gold {
  color: #241703; background: linear-gradient(135deg, var(--gold-1) 0%, var(--gold-2) 55%, #f2d290 100%);
  box-shadow: 0 .7rem 1.8rem rgba(220, 174, 98, .28), inset 0 1px 0 rgba(255, 255, 255, .6);
}
.btn-gold:hover { box-shadow: 0 .9rem 2.4rem rgba(220, 174, 98, .42), inset 0 1px 0 rgba(255, 255, 255, .6); transform: translateY(-1px); }
.btn-ghost { background: rgba(255, 255, 255, .06); border: 1px solid var(--line); color: var(--ink); }
.btn-ghost:hover { background: rgba(255, 255, 255, .11); border-color: rgba(255, 255, 255, .18); }
.btn-link { padding-inline: .4rem; min-height: auto; color: var(--muted); }
.btn-link.danger { color: var(--bad); }
.btn-lg { min-height: 3.4rem; padding: .9rem 1.8rem; font-size: 1.06rem; }
.btn-sm { min-height: 2.35rem; padding: .45rem .95rem; font-size: .9rem; }
.arr { transition: transform .2s ease; display: inline-block; }
.btn:hover .arr { transform: translateX(3px); }
[dir="rtl"] .arr { transform: scaleX(-1); }
[dir="rtl"] .btn:hover .arr { transform: scaleX(-1) translateX(3px); }

/* ---- Фон ---- */
/* Сияние вверху страницы стоит на месте, пока страница едет. Раньше это был
   фон body с background-attachment: fixed — такой фон браузер перерисовывает
   на каждом кадре прокрутки; теперь это отдельный неподвижный слой, который
   видеокарта просто не трогает. Под ним же раньше крутился холст звёздного
   неба (/static/tk-stars.js) — невидимый (его закрывал фон body), но
   тридцать раз в секунду занимавший главный поток: на компьютере прокрутка
   дёргалась именно от него (владелец, 2026-10-03). Его на сайте больше нет. */
.sky { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(120rem 60rem at 50% -20rem, #1d1640 0%, var(--bg) 60%), var(--bg); }

/* ---- Шапка ---- */
/* Без размытия под шапкой: размытое «стекло» над прокручиваемой страницей
   (а в ней — живые превью) браузер пересчитывает на каждом кадре прокрутки,
   и на компьютере это было заметное подёргивание (владелец, 2026-10-03).
   Почти непрозрачный фон на тёмной странице выглядит так же. */
.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 9, 22, .94); border-bottom: 1px solid var(--line);
}
.top-in { max-width: 76rem; margin: 0 auto; padding: .7rem var(--gutter); display: flex; align-items: center; gap: 1.2rem; }
.logo { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; font-weight: 800; font-size: 1.12rem; letter-spacing: .02em; }
.logo-mark {
  display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: .75rem; font-size: 1rem;
  color: #241703; background: linear-gradient(135deg, var(--gold-1), var(--gold-2));
  box-shadow: 0 .4rem 1.2rem rgba(220, 174, 98, .35);
}
.logo-word { font-family: var(--serif); font-weight: 700; font-size: 1.25rem; letter-spacing: .01em; }
.nav { display: flex; gap: .3rem; margin-inline-start: 1rem; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: .95rem; padding: .45rem .8rem; border-radius: 999px; }
.nav a:hover, .nav a[aria-current] { color: var(--ink); background: rgba(255, 255, 255, .06); }
.nav-mobile-only, .nav-login { display: none; }
.top-act { display: flex; align-items: center; gap: .6rem; margin-inline-start: auto; }
.lang { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: .4rem; min-height: 2.35rem; padding: .35rem .8rem;
  border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .05); font-weight: 600; font-size: .9rem;
}
.lang-btn:hover { background: rgba(255, 255, 255, .1); }
.caret { font-size: .7rem; opacity: .7; }
.lang-pop {
  position: absolute; inset-inline-end: 0; top: calc(100% + .5rem); z-index: 60;
  display: grid; grid-template-columns: repeat(2, minmax(9.5rem, 1fr)); gap: .15rem;
  padding: .6rem; border-radius: 1rem; background: #17132e; border: 1px solid var(--line); box-shadow: var(--shadow);
  max-height: min(70vh, 30rem); overflow: auto;
}
.lang-pop[hidden] { display: none; }
.lang-pop a { text-decoration: none; padding: .5rem .7rem; border-radius: .6rem; font-size: .92rem; color: var(--muted); }
.lang-pop a:hover { background: rgba(255, 255, 255, .07); color: var(--ink); }
.lang-pop a[aria-current] { color: var(--gold-1); background: rgba(220, 174, 98, .12); }
.me { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; padding: .25rem .8rem .25rem .25rem;
  border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .05); font-weight: 600; font-size: .9rem; }
[dir="rtl"] .me { padding: .25rem .25rem .25rem .8rem; }
.me img, .me-i { width: 1.9rem; height: 1.9rem; border-radius: 50%; object-fit: cover; }
.me-i { display: grid; place-items: center; background: linear-gradient(135deg, var(--violet), var(--rose)); font-weight: 800; color: #fff; }
.burger { display: none; width: 2.6rem; height: 2.6rem; border-radius: .8rem; border: 1px solid var(--line); flex-direction: column; justify-content: center; align-items: center; gap: .28rem; }
.burger span { display: block; width: 1.1rem; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .25s ease, opacity .25s ease; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(.42rem) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-.42rem) rotate(-45deg); }

/* ---- Подсказка «вы в Узбекистане» ---- */
.uz-hint { background: linear-gradient(90deg, rgba(31, 141, 98, .22), rgba(41, 109, 214, .22)); border-bottom: 1px solid var(--line); }
.uz-hint[hidden] { display: none; }
.uz-hint-in { max-width: 76rem; margin: 0 auto; padding: .55rem var(--gutter); display: flex; align-items: center; gap: .8rem; font-size: .92rem; }
.uz-hint-in > span { flex: 1; }
.uz-x { font-size: 1.4rem; line-height: 1; width: 2rem; height: 2rem; border-radius: 50%; color: var(--muted); }
.uz-x:hover { background: rgba(255, 255, 255, .08); color: var(--ink); }

/* ---- Сияние фона ---- */
.aurora {
  position: absolute; inset: -10rem -20% auto; height: 46rem; pointer-events: none; z-index: 0; will-change: transform;
  background:
    radial-gradient(28rem 18rem at 18% 40%, rgba(144, 120, 255, .30), transparent 70%),
    radial-gradient(26rem 18rem at 78% 30%, rgba(243, 162, 196, .22), transparent 70%),
    radial-gradient(30rem 16rem at 55% 75%, rgba(220, 174, 98, .16), transparent 70%);
  animation: aurora 18s ease-in-out infinite alternate;
}
.aurora.soft { height: 28rem; opacity: .7; }
@keyframes aurora { from { transform: translate3d(-2%, 0, 0) scale(1); } to { transform: translate3d(2%, 2%, 0) scale(1.06); } }

/* ---- Первый экран ---- */
.hero { position: relative; overflow: hidden; padding-block: clamp(2.5rem, 6vw, 5.5rem) clamp(2rem, 5vw, 4.5rem); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.eyebrow { display: inline-block; font-weight: 700; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-1);
  padding: .35rem .85rem; border-radius: 999px; background: rgba(220, 174, 98, .1); border: 1px solid rgba(220, 174, 98, .25); }
.hero h1 {
  margin-top: 1.1rem; font-family: var(--serif); font-weight: 700; letter-spacing: -.01em;
  font-size: clamp(2.15rem, 4.3vw, 4rem); line-height: 1.1;
  background: linear-gradient(115deg, #ffffff 0%, #f7ecd2 45%, var(--gold-2) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
[lang="ar"] .hero h1, [lang="fa"] .hero h1, [lang="ur"] .hero h1, [lang="hi"] .hero h1 { line-height: 1.35; }
.lead { margin-top: 1.1rem; font-size: clamp(1.02rem, 1.35vw, 1.2rem); color: var(--muted); max-width: 38rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.6rem; }
.chips li { font-size: .88rem; font-weight: 600; padding: .4rem .8rem; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: #ddd7f3; }
.proof { margin-top: 1.4rem; color: var(--muted); font-size: .95rem; }
.proof b { color: var(--gold-1); }

.hero-phones { position: relative; height: clamp(26rem, 44vw, 40rem); }
.phone {
  position: absolute; top: 50%; left: 50%; display: block; text-decoration: none;
  width: clamp(10.5rem, 16.5vw, 15rem); aspect-ratio: 9 / 19; padding: .5rem; border-radius: 2.2rem;
  background: linear-gradient(160deg, #2a2540, #0b0a12 40%, #1a1729);
  box-shadow: 0 2.5rem 5rem rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .08), inset 0 0 0 1px rgba(255, 255, 255, .06);
  animation: float 8s ease-in-out infinite;
}
.phone-1 { translate: -122% -47%; rotate: -9deg; animation-delay: -2s; }
.phone-2 { translate: -50% -52%; scale: 1.1; z-index: 2; animation-delay: -4s; }
.phone-3 { translate: 22% -46%; rotate: 9deg; animation-delay: -6s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-.8rem); } }
.phone-screen { position: relative; display: block; width: 100%; height: 100%; border-radius: 1.75rem; overflow: hidden; background: #1b1830; }
.phone-screen.loaded { background: #120f1f; }
.phone-screen iframe { position: absolute; top: 0; left: 0; border: 0; transform-origin: top left; pointer-events: none; opacity: 0; transition: opacity .5s ease; }
.phone-screen iframe.on { opacity: 1; }
.phone-notch { position: absolute; top: .9rem; left: 50%; translate: -50% 0; width: 32%; height: .9rem; border-radius: 999px; background: #05050a; z-index: 3; }
/* Блик «загружается» — отдельным слоем, который едет transform'ом: его
   двигает видеокарта, а не главный поток. Прежний сдвиг background-position
   перерисовывал каждую ещё пустую карточку на каждом кадре — ровно тогда,
   когда их листают. */
.phone-screen::before, .mini::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent 25%, rgba(255, 255, 255, .07) 50%, transparent 75%);
  transform: translateX(-100%); animation: tk-shimmer 1.8s linear infinite; }
.phone-screen.loaded::before, .mini.loaded::before { display: none; }
@keyframes tk-shimmer { to { transform: translateX(100%); } }

/* ---- Разделы ---- */
.sec { position: relative; padding-block: clamp(2.6rem, 6vw, 5rem); }
.sec.tight { padding-top: 0; }
.sec-head { margin-bottom: clamp(1.4rem, 3vw, 2.4rem); }
.sec-head.row { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.sec-head h2, .page-head h1, .empty-box h2 { font-family: var(--serif); font-weight: 700; font-size: clamp(1.7rem, 3vw, 2.6rem); line-height: 1.15; letter-spacing: -.005em; }
.sec-head p { margin-top: .5rem; color: var(--muted); font-size: 1.02rem; }
.more { flex-shrink: 0; text-decoration: none; font-weight: 700; color: var(--gold-1); }
.more:hover { text-decoration: underline; }
.page-head { overflow: hidden; padding-block: clamp(2rem, 5vw, 3.6rem) 1.6rem; }
.page-head .wrap { position: relative; z-index: 1; }

/* ---- Поводы ---- */
.occ-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr)); gap: 1rem; }
.occ {
  position: relative; display: grid; gap: .3rem; padding: 1.4rem 1.3rem; border-radius: var(--radius); text-decoration: none;
  background: var(--card); border: 1px solid var(--line); overflow: hidden; transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.occ::before { content: ""; position: absolute; inset: auto -30% -60% auto; width: 12rem; height: 12rem; border-radius: 50%; opacity: .35; filter: blur(30px); }
.occ-wedding::before { background: var(--rose); }
.occ-kids::before { background: #7cc8ff; }
.occ-birthday::before { background: #ffb357; }
.occ-anniversary::before { background: var(--violet); }
.occ-tabrik::before { background: #ff8fb1; }
.occ-other::before { background: #57d1c4; }
.occ:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, .2); background: var(--card-2); }
.occ-emoji { font-size: 2.2rem; line-height: 1; }
.occ-label { margin-top: .6rem; font-weight: 800; font-size: 1.15rem; }
.occ-count { color: var(--muted); font-size: .92rem; }
.occ-arr { position: absolute; top: 1.2rem; inset-inline-end: 1.2rem; color: var(--muted); }
[dir="rtl"] .occ-arr { transform: scaleX(-1); }

/* ---- Карточки дизайнов ---- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 14.5rem), 1fr)); gap: clamp(.8rem, 1.6vw, 1.3rem); }
.card { display: flex; flex-direction: column; text-decoration: none; border-radius: var(--radius); overflow: hidden;
  background: var(--card); border: 1px solid var(--line); transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.card:hover { transform: translateY(-4px); border-color: rgba(220, 174, 98, .35); box-shadow: 0 1.4rem 3rem rgba(0, 0, 0, .45); }
.mini { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; background: #1b1830; }
.mini.loaded { background: #120f1f; }
.mini iframe { position: absolute; top: 0; left: 0; width: 375px; height: 500px; border: 0; transform-origin: top left;
  transform: scale(var(--tk-mini-scale, .6)); pointer-events: none; opacity: 0; transition: opacity .4s ease; }
[dir="rtl"] .mini iframe { left: auto; right: 0; transform-origin: top right; }
.mini iframe.on { opacity: 1; }
/* Карточка картинкой (services/card_shots.py) — мягко проявляется один раз. */
.mini-shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block;
  opacity: 0; transform: scale(1.04); transition: opacity .45s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.mini.loaded .mini-shot { opacity: 1; transform: none; }
/* ▶ на карточке-картинке: внутри приглашение живое. */
.shot-play { position: absolute; bottom: .6rem; inset-inline-end: .6rem; z-index: 2; width: 1.75rem; height: 1.75rem;
  border-radius: 50%; background: rgba(10,8,20,.6); box-shadow: 0 2px 8px rgba(0,0,0,.3); pointer-events: none; }
.shot-play::after { content: ""; position: absolute; left: 42%; top: 50%; transform: translate(-50%, -50%);
  border-style: solid; border-width: .36rem 0 .36rem .56rem; border-color: transparent transparent transparent #fff; }
.shots-note { display: flex; gap: .5rem; align-items: flex-start; margin: 0 0 1rem; font-size: .85rem; line-height: 1.45; opacity: .78; }
.shots-note .shots-ic { flex: none; width: 1.15rem; height: 1.15rem; margin-top: .1rem; border-radius: 50%; background: #8b6cff;
  color: #fff; font-size: .5rem; line-height: 1.15rem; text-align: center; }
.badge { position: absolute; top: .6rem; inset-inline-start: .6rem; z-index: 2; font-size: .74rem; font-weight: 800; padding: .25rem .6rem;
  border-radius: 999px; background: rgba(12, 10, 24, .86); border: 1px solid rgba(255, 255, 255, .14); }
.badge-hot { background: rgba(228, 52, 72, .85); }
.card-meta { display: grid; gap: .25rem; padding: .85rem 1rem 1rem; }
.card-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: .45rem; font-size: .95rem; }
.card-price b { color: var(--gold-1); }
.card-price s, .plan-price s { color: var(--faint); font-weight: 500; }
.likes { margin-inline-start: auto; color: var(--muted); font-size: .85rem; }
.card-promo { font-size: .8rem; color: var(--ok); font-weight: 600; }

/* ---- Шаги ---- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; counter-reset: step; }
.steps li { position: relative; padding: 1.6rem 1.4rem; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.step-n { display: grid; place-items: center; width: 2.8rem; height: 2.8rem; border-radius: 50%; font-weight: 800; font-size: 1.15rem;
  color: #241703; background: linear-gradient(135deg, var(--gold-1), var(--gold-2)); box-shadow: 0 .5rem 1.4rem rgba(220, 174, 98, .3); }
.steps h3, .screen-card h3 { margin-top: 1rem; font-size: 1.2rem; font-weight: 800; }
.steps p, .screen-card p { margin-top: .4rem; color: var(--muted); }

/* ---- Экраны ---- */
.screens { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.screen-card { padding: 1.6rem 1.4rem; border-radius: var(--radius); background: linear-gradient(160deg, rgba(144, 120, 255, .12), rgba(255, 255, 255, .03));
  border: 1px solid var(--line); }
.screen-ico { font-size: 2.4rem; line-height: 1; }

/* ---- Цены ---- */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13.5rem), 1fr)); gap: 1rem; }
.plan { position: relative; display: flex; flex-direction: column; gap: .45rem; padding: 1.6rem 1.3rem 1.3rem; border-radius: var(--radius);
  text-decoration: none; background: var(--card); border: 1px solid var(--line); transition: transform .25s ease, border-color .25s ease; }
.plan:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, .2); }
.plan.rec { border-color: rgba(220, 174, 98, .6); background: linear-gradient(170deg, rgba(220, 174, 98, .14), rgba(255, 255, 255, .03));
  box-shadow: 0 1.2rem 3rem rgba(220, 174, 98, .12); }
.plan-badge { position: absolute; top: -.75rem; inset-inline-start: 1.2rem; font-size: .76rem; font-weight: 800; padding: .25rem .7rem; border-radius: 999px;
  color: #241703; background: linear-gradient(135deg, var(--gold-1), var(--gold-2)); }
.plan-name { font-weight: 800; font-size: 1.2rem; }
.plan-pitch { color: var(--muted); font-size: .92rem; min-height: 2.6em; }
.plan-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem; margin-top: .4rem; }
.plan-price small { flex-basis: 100%; color: var(--faint); font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.plan-price b { font-size: 1.9rem; font-weight: 800; color: var(--gold-1); letter-spacing: -.01em; }
.plan-promo { color: var(--ok); font-size: .86rem; font-weight: 600; }
.plan-count { color: var(--faint); font-size: .86rem; }
.plan-btn { margin-top: auto; align-self: flex-start; }
.pay-note { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; flex-wrap: wrap; margin-top: 1.4rem; padding: 1.2rem 1.4rem;
  border-radius: var(--radius); background: rgba(88, 211, 155, .06); border: 1px solid rgba(88, 211, 155, .22); }
.pay-note p { color: var(--muted); margin-top: .25rem; max-width: 44rem; }
.nets { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; }
.nets li { font-size: .84rem; font-weight: 700; padding: .3rem .7rem; border-radius: 999px; background: rgba(255, 255, 255, .07); border: 1px solid var(--line); }

/* ---- Вопросы ---- */
.faq { display: grid; gap: .7rem; }
.faq details { border-radius: 1.1rem; background: var(--card); border: 1px solid var(--line); overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; padding: 1.05rem 1.3rem; font-weight: 700; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold-1); font-size: 1.3rem; line-height: 1; transition: transform .25s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 1.3rem 1.15rem; color: var(--muted); }

.cta-band .wrap { position: relative; padding-block: clamp(2.2rem, 5vw, 3.6rem); border-radius: 2rem; overflow: hidden;
  background: radial-gradient(40rem 20rem at 50% 0%, rgba(220, 174, 98, .22), transparent 70%), linear-gradient(160deg, #1d1838, #120f24);
  border: 1px solid rgba(220, 174, 98, .25); }
.cta-band h2 { font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.4rem); }
.cta-band p { color: var(--muted); margin: .5rem 0 1.4rem; }

/* ---- Фильтры ---- */
.filters { display: grid; gap: .6rem; margin-top: 1.4rem; }
.chip-row { display: flex; flex-wrap: wrap; gap: .45rem; }
.fchip { text-decoration: none; padding: .45rem .95rem; border-radius: 999px; font-weight: 700; font-size: .92rem; background: var(--card);
  border: 1px solid var(--line); color: #ddd7f3; transition: background .2s ease, border-color .2s ease; }
.fchip.small { font-size: .84rem; padding: .35rem .8rem; }
.fchip:hover { background: var(--card-2); }
.fchip.on { color: #241703; background: linear-gradient(135deg, var(--gold-1), var(--gold-2)); border-color: transparent; }
.empty { color: var(--muted); padding: 2rem 0; }

/* ---- Вход ---- */
.auth { min-height: calc(100vh - 14rem); display: grid; place-items: center; overflow: hidden; }
.auth-card { position: relative; z-index: 1; width: min(100%, 30rem); margin-inline: var(--gutter); padding: clamp(1.6rem, 4vw, 2.6rem);
  border-radius: 1.8rem; text-align: center; background: rgba(23, 19, 46, .92); border: 1px solid var(--line);
  box-shadow: var(--shadow); }
.auth-mark { display: inline-grid; place-items: center; width: 3.4rem; height: 3.4rem; border-radius: 1.1rem; font-size: 1.5rem; color: #241703;
  background: linear-gradient(135deg, var(--gold-1), var(--gold-2)); box-shadow: 0 .8rem 2rem rgba(220, 174, 98, .35); }
.auth-card h1 { margin-top: 1rem; font-family: var(--serif); font-size: 2rem; }
.auth-card .lead { margin-inline: auto; }
.auth-btns { display: grid; justify-items: center; gap: .9rem; margin-top: 1.6rem; min-height: 2.8rem; }
.gbtn { min-height: 2.8rem; }
.auth-err { margin-top: 1rem; color: var(--bad); font-weight: 600; }
.auth-err[hidden] { display: none; }
.fine { margin-top: 1.4rem; font-size: .82rem; color: var(--faint); }
.fine a { color: var(--muted); }
.note { text-align: start; padding: 1rem 1.1rem; border-radius: 1rem; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); margin-top: 1.2rem; }
.note.warn { background: rgba(255, 207, 115, .08); border-color: rgba(255, 207, 115, .3); }
.note p { color: var(--muted); font-size: .92rem; margin-top: .3rem; }
.note-act { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .8rem; }
.note .btn { margin-top: .8rem; }

/* ---- Мои приглашения ---- */
.my-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.my-act { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.invs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); gap: 1.1rem; }
.inv { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; padding: 1rem; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.inv-thumb { position: relative; display: block; border-radius: 1rem; aspect-ratio: 3 / 4; background: #1b1830 center / cover no-repeat;
  box-shadow: inset 0 0 0 1px var(--line); }
.inv-status { position: absolute; bottom: .4rem; inset-inline-start: .4rem; font-size: .72rem; font-weight: 800; padding: .2rem .55rem; border-radius: 999px;
  background: rgba(12, 10, 24, .8); }
.st-published { color: var(--ok); }
.st-draft { color: var(--warn); }
.st-expired { color: var(--faint); }
.inv-body { min-width: 0; display: flex; flex-direction: column; gap: .35rem; }
.inv-body h3 { font-size: 1.08rem; font-weight: 800; overflow-wrap: anywhere; }
.inv-sub, .inv-hint { color: var(--muted); font-size: .88rem; }
.inv-stats { list-style: none; display: flex; gap: .9rem; color: var(--muted); font-size: .9rem; }
.inv-act { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: auto; padding-top: .4rem; }
/* Подпись кнопки длиннее колонки (по-русски «Посмотреть и оплатить») —
   переносится внутри кнопки, а не выталкивает карточку за экран. */
.inv-act .btn { max-width: 100%; white-space: normal; text-align: center; }
.empty-box { text-align: center; padding: 3rem 1rem; border-radius: 1.6rem; background: var(--card); border: 1px dashed rgba(255, 255, 255, .15); }
.empty-box > span { font-size: 3rem; }
.empty-box p { color: var(--muted); margin: .6rem 0 1.4rem; }
.empty-box h1 { font-family: var(--serif); font-weight: 700; font-size: clamp(1.7rem, 3vw, 2.6rem); line-height: 1.15; }
.hero-cta.center { justify-content: center; }

/* ---- Правила ---- */
.legal { display: grid; gap: 1rem; color: #ddd7f3; }
.legal ul, .legal ol { display: grid; gap: .7rem; padding-inline-start: 1.3rem; }
.legal li::marker { color: var(--gold-2); }
.legal-contact { color: var(--muted); }

/* ---- Подвал ---- */
.foot { margin-top: clamp(2rem, 5vw, 4rem); padding-block: 2.6rem 2rem; border-top: 1px solid var(--line); background: rgba(0, 0, 0, .18); }
.foot-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 2rem; }
.foot-brand p { margin-top: .8rem; color: var(--muted); font-size: .92rem; max-width: 22rem; }
.foot-col { display: grid; gap: .5rem; align-content: start; }
.foot-col b { font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: var(--faint); }
.foot-col a { text-decoration: none; color: var(--muted); font-size: .94rem; }
.foot-col a:hover { color: var(--ink); }
.foot-langs { display: flex; flex-wrap: wrap; gap: .3rem .9rem; margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.foot-langs a { text-decoration: none; color: var(--faint); font-size: .85rem; }
.foot-langs a:hover, .foot-langs a[aria-current] { color: var(--gold-1); }
.foot-copy { margin-top: 1.2rem; color: var(--faint); font-size: .82rem; }

/* ---- Появление при прокрутке ---- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js [data-reveal].revealed, .reveal-all [data-reveal] { opacity: 1; transform: none; }

/* ---- Короткое сообщение ---- */
.tk-toast { position: fixed; left: 50%; bottom: max(1.4rem, env(safe-area-inset-bottom)); z-index: 90; translate: -50% 1rem; opacity: 0;
  padding: .7rem 1.2rem; border-radius: 999px; background: #241f45; border: 1px solid rgba(220, 174, 98, .4); color: var(--ink);
  font-weight: 700; box-shadow: var(--shadow); transition: opacity .25s ease, translate .25s ease; pointer-events: none; }
.tk-toast.show { opacity: 1; translate: -50% 0; }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .aurora, .phone, .mini::before, .phone-screen::before { animation: none; }
}

/* ---- Планшет ---- */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-text { text-align: center; }
  .hero-text .lead { margin-inline: auto; }
  .hero-cta, .chips { justify-content: center; }
  .hero-phones { height: clamp(24rem, 70vw, 34rem); margin-top: 1rem; }
  .phone { width: clamp(9.5rem, 26vw, 13.5rem); }
  .occ-grid { grid-template-columns: repeat(2, 1fr); }
  /* Пять праздников в два столбца: последний — во всю ширину, а не один в ряду. */
  .occ-grid > .occ:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

/* ---- Шапка: меню — в «бургер» уже на планшете. Четыре ссылки, язык и
   «Войти» на русском или немецком не помещаются и в 1024 px. ---- */
@media (max-width: 1100px) {
  .nav {
    position: fixed; inset: 3.9rem 0 auto 0; z-index: 49; flex-direction: column; gap: 0; margin: 0; padding: .6rem var(--gutter) 1.2rem;
    background: rgba(11, 9, 22, .97); border-bottom: 1px solid var(--line); transform: translateY(-120%); transition: transform .3s ease; visibility: hidden;
  }
  .nav.open { transform: none; visibility: visible; }
  .nav a { padding: .85rem .4rem; font-size: 1.05rem; border-radius: .6rem; }
  .nav-mobile-only { display: block; }
  .burger { display: inline-flex; }
}

/* ---- Телефон ---- */
@media (max-width: 760px) {
  .me-t, .lang-cur { display: none; }
  .me { padding: .2rem; }
  .lang-pop { position: fixed; inset: 4rem .6rem auto .6rem; grid-template-columns: 1fr 1fr; }
  .steps, .screens { grid-template-columns: 1fr; }
  .sec-head.row { flex-direction: column; align-items: flex-start; }
  .phone-1 { translate: -118% -46%; }
  .phone-3 { translate: 18% -46%; }
  .uz-hint-in { flex-wrap: wrap; }
  .uz-hint-in > span { flex-basis: calc(100% - 3rem); }
  .inv { grid-template-columns: 5.6rem 1fr; }
  .foot-grid { grid-template-columns: 1fr; gap: 1.4rem; }
  .pay-note { flex-direction: column; align-items: flex-start; }
}
/* Узкий телефон: «Войти» — в меню (в шапке остаются знак, язык и меню),
   промежутки меньше. Иначе на 320 px шапка шире экрана на любом языке. */
@media (max-width: 480px) {
  .top-login { display: none; }
  .my-act { width: 100%; }
  .my-act .btn-gold { flex: 1 1 auto; }
  .inv { grid-template-columns: 4.8rem 1fr; gap: .8rem; padding: .8rem; }
  .inv-status { font-size: .62rem; padding: .15rem .4rem; max-width: calc(100% - .6rem); overflow: hidden;
    text-overflow: ellipsis; white-space: nowrap; inset-inline-start: .3rem; }
  .nav .nav-login { display: block; color: var(--gold-1); }
  .top-in { gap: .8rem; }
  .top-act { gap: .4rem; }
  .lang-btn { padding: .35rem .6rem; }
  .caret { display: none; }
  .burger { width: 2.4rem; height: 2.4rem; }
}
@media (max-width: 420px) {
  .occ-grid { grid-template-columns: 1fr 1fr; gap: .7rem; }
  .occ { padding: 1.1rem 1rem; }
  .cards { grid-template-columns: 1fr 1fr; }
  .card-meta { padding: .7rem .75rem .8rem; }
  .btn-lg { width: 100%; }
  .hero-cta { flex-direction: column; }
  .logo-word { font-size: 1.1rem; }
}

/* «🙋 Tanlay olmayapsizmi?» — написать поддержке, приглашение сделают за
   человека (render.site_help_link; галочка в «Настройках»). */
.helpme {
  display: flex; align-items: center; gap: .85rem; margin: 0 0 1.6rem; padding: 1rem 1.1rem;
  border-radius: 1.1rem; text-decoration: none; color: var(--ink);
  background: linear-gradient(150deg, rgba(64, 190, 140, .16), rgba(70, 130, 240, .10));
  border: 1px solid rgba(110, 220, 170, .30);
}
.helpme:hover { border-color: rgba(110, 220, 170, .55); }
.helpme-ic { font-size: 1.7rem; flex: 0 0 auto; }
.helpme-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .2rem; }
.helpme-t b { font-size: 1rem; color: #9ff0c8; }
.helpme-t > span { font-size: .85rem; color: #cfe9de; line-height: 1.4; }
.helpme-go {
  flex: 0 0 auto; padding: .6rem .85rem; border-radius: .75rem; font-size: .88rem; font-weight: 800;
  color: #fff; background: linear-gradient(90deg, #22a06b, #2fbf7f); white-space: nowrap;
}
@media (max-width: 480px) {
  .helpme { flex-wrap: wrap; }
  .helpme-t { flex: 1 1 calc(100% - 3rem); }
  .helpme-go { margin-inline-start: auto; }
}

/* «💝 Bizni qo'llab-quvvatlang» над шапкой каждой страницы (владелец,
   2026-10-14: «более заметный, наверху»). Не прилипает: шапка ниже — sticky. */
.dnbar {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .55rem 1rem; text-decoration: none; color: #fff; font-weight: 800; font-size: .92rem; line-height: 1.25;
  background: linear-gradient(90deg, #b8246f, #e0306a 35%, #ff5d8a 65%, #e0306a);
}
.dnbar:hover .dnbar-t { text-decoration: underline; text-underline-offset: 3px; }
.dnbar-ic { font-size: 1.1rem; display: inline-block; animation: dnbarBeat 2.4s ease-in-out infinite; }
.dnbar-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dnbar-go { font-size: 1.15rem; opacity: .85; }
[dir=rtl] .dnbar-go { transform: scaleX(-1); }
@keyframes dnbarBeat { 0%, 100% { transform: scale(1); } 10% { transform: scale(1.22); } 20% { transform: scale(.96); } 30% { transform: scale(1.12); } 42% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .dnbar-ic { animation: none; } }

/* «💝 Bizni qo'llab-quvvatlang» — донат (services/donations.py): тихая плашка
   внизу главной, над последним призывом. */
.dnl {
  display: flex; align-items: center; gap: .85rem; max-width: 560px; margin: 0 auto; padding: .9rem 1.1rem;
  border-radius: 1.1rem; text-decoration: none; color: var(--ink);
  background: rgba(255, 93, 138, .08); border: 1px solid rgba(255, 140, 170, .24);
}
.dnl:hover { border-color: rgba(255, 140, 170, .5); }
.dnl-ic { font-size: 1.6rem; flex: 0 0 auto; }
.dnl-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .2rem; }
.dnl-t b { font-size: .98rem; color: #ffb3c7; }
.dnl-t > span { font-size: .85rem; color: var(--muted); line-height: 1.4; }
.dnl-go { flex: 0 0 auto; font-size: 1.4rem; color: #ffb3c7; }
[dir=rtl] .dnl-go { transform: scaleX(-1); }

/* Подсказка «1 → 2 → 3», выбранный праздник крупно, значок праздника на
   карточке и быстрые фильтры (владелец, 2026-10-10 — как в галерее ботов). */
.tk-steps { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem; margin: 0 0 1.2rem; }
.tk-step { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .75rem .35rem .35rem; border-radius: 999px; text-decoration: none;
  font-size: .82rem; font-weight: 700; color: var(--muted); background: var(--card); border: 1px solid var(--line); }
.tk-step b { width: 1.3rem; height: 1.3rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  font-size: .72rem; background: var(--card-2); color: var(--ink); }
.tk-step.on { color: #241703; background: linear-gradient(135deg, var(--gold-1), var(--gold-2)); border-color: transparent; }
.tk-step.on b { background: #241703; color: var(--gold-1); }
.tk-step.done { color: #b7f0d4; }
.tk-step.done b { background: var(--ok); color: #0b2a1c; }
.tk-arrow { color: var(--faint); font-size: .8rem; }
[dir=rtl] .tk-arrow { transform: scaleX(-1); }
.ev-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.2rem; border-radius: var(--radius);
  background: linear-gradient(140deg, rgba(144, 120, 255, .22), rgba(220, 174, 98, .14)); border: 1px solid rgba(220, 174, 98, .3); }
.ev-head h1 { margin: 0; }
.ev-count { margin-top: .4rem; font-weight: 700; color: var(--gold-1); }
.ev-change { flex: 0 0 auto; padding: .6rem .9rem; border-radius: .8rem; font-weight: 700; text-decoration: none; color: var(--ink);
  background: var(--card-2); border: 1px solid var(--line); white-space: nowrap; }
.ev-badge { position: absolute; bottom: .6rem; inset-inline-start: .6rem; z-index: 2; font-size: .72rem; font-weight: 800; padding: .22rem .6rem;
  border-radius: 999px; background: rgba(11, 9, 22, .66); color: #fff; }
.sfilters { margin-bottom: 1.4rem; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: .2rem; }
.sfilters::-webkit-scrollbar { display: none; }
.sfilters .fchip { flex: 0 0 auto; cursor: pointer; font-family: inherit; color: var(--ink); }
.sfilters .fchip .n { opacity: .6; font-weight: 600; }
.sfilters .fchip.on { color: #241703; }
.card[hidden] { display: none !important; }
@media (max-width: 420px) {
  .tk-steps { gap: .25rem; }
  .tk-step { font-size: .72rem; padding: .28rem .55rem .28rem .28rem; gap: .3rem; }
  .tk-step b { width: 1.1rem; height: 1.1rem; font-size: .65rem; }
  .ev-head { flex-wrap: wrap; }
}
