/* Montserrat (SIL OFL 1.1, fonts/OFL.txt) — свои файлы, без запросов к Google */
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(/static/fonts/montserrat-cyrillic.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(/static/fonts/montserrat-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; }
:root {
  --bg: #ffffff; --bg2: #f7f4fc; --card: #f1ecfa; --line: rgba(46, 16, 101, .12);
  --text: #1a1028; --muted: #6b6478; --gold: #7c3aed; --red: #7c3aed; --ok: #16a34a;
  --r: 16px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 600px at 70% -10%, #2a3f86 0%, transparent 60%), var(--bg);
  min-height: 100vh;
}
a { color: var(--gold); }
header, main, footer { position: relative; z-index: 1; }

.top {
  display: flex; align-items: center; gap: 16px; padding: 14px 20px;
  max-width: 1100px; margin: 0 auto;
}
.logo { font-weight: 800; font-size: 20px; color: var(--text); text-decoration: none; }
.top nav { display: flex; gap: 14px; margin-left: auto; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover { color: var(--text); }
.pill {
  background: var(--gold); color: #1b1300; border: 0; border-radius: 99px;
  padding: 8px 14px; font-weight: 700; cursor: pointer; white-space: nowrap;
}
main { max-width: 1100px; margin: 0 auto; padding: 0 20px 40px; }

.hero { text-align: center; padding: 48px 0 28px; }
.hero h1 { font-size: clamp(30px, 6vw, 54px); line-height: 1.08; margin: 0 0 14px; }
.hero h1 span { color: var(--gold); }
.hero p { color: var(--muted); max-width: 560px; margin: 0 auto 22px; font-size: 18px; }
.steps { display: flex; justify-content: center; gap: 24px; list-style: none; padding: 0; margin: 26px 0 0; color: var(--muted); flex-wrap: wrap; }
.steps b { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--bg2); color: var(--gold); margin-right: 6px; }

.btn {
  display: inline-block; background: var(--red); color: #fff; border: 0; border-radius: 12px;
  padding: 11px 18px; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none;
}
.btn:hover { filter: brightness(1.08); }
.btn:disabled { opacity: .6; cursor: wait; }
.btn.big { padding: 15px 26px; font-size: 18px; }
.btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--text); }

.chips { display: flex; gap: 8px; overflow-x: auto; padding: 6px 0 16px; scrollbar-width: none; }
.chip {
  border: 1px solid var(--line); background: var(--bg2); color: var(--text);
  border-radius: 99px; padding: 8px 14px; white-space: nowrap; cursor: pointer; font: inherit;
}
.chip.on { background: var(--gold); color: #1b1300; border-color: var(--gold); font-weight: 700; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.tcard { text-decoration: none; color: var(--text); }
.tcard[hidden] { display: none; }
.thumb {
  position: relative; aspect-ratio: 3/4; border-radius: var(--r); overflow: hidden;
  background: linear-gradient(160deg, hsl(calc(210 + var(--seed, 0) * 23), 55%, 38%), hsl(calc(250 + var(--seed, 0) * 31), 50%, 18%));
  display: grid; place-items: center; border: 1px solid var(--line);
  transition: transform .15s;
}
.tcard:hover .thumb { transform: translateY(-3px); }
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.thumb .emoji { font-size: 56px; filter: drop-shadow(0 4px 12px rgba(0,0,0,.4)); }
.thumb img + .emoji { display: none; }
.tname { padding: 8px 2px 0; font-weight: 600; }
.tname small { color: var(--muted); font-weight: 400; }

.back { display: inline-block; margin: 6px 0 14px; color: var(--muted); text-decoration: none; }
.studio { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
@media (max-width: 760px) { .studio { grid-template-columns: 1fr; } }
.preview { position: sticky; top: 12px; }
.thumb.big .emoji { font-size: 110px; }
.result { width: 100%; border-radius: var(--r); border: 2px solid var(--gold); }
.preview .result:not([hidden]) ~ * , .preview:has(.result:not([hidden])) .thumb { display: none; }
.panel h1 { margin: 0 0 8px; font-size: 32px; }
.panel > p { color: var(--muted); }
.drop {
  display: grid; place-items: center; text-align: center; min-height: 150px; padding: 18px;
  border: 2px dashed var(--line); border-radius: var(--r); background: var(--bg2); cursor: pointer;
  margin: 18px 0 12px; color: var(--muted);
}
.drop.has { border-style: solid; border-color: var(--gold); }
.drop img { max-height: 220px; max-width: 100%; border-radius: 12px; }
.consent { display: flex; gap: 10px; font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.consent input { margin-top: 4px; flex: none; }
.err { color: #ff8b9b; min-height: 1em; }
.ok { color: var(--ok); }
.status { display: flex; align-items: center; gap: 10px; color: var(--gold); margin-top: 12px; }
.spinner { width: 18px; height: 18px; border: 3px solid var(--gold); border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.after { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.tips { color: var(--muted); font-size: 14px; padding-left: 18px; margin-top: 22px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
h2.sub { margin: 40px 0 14px; }

.modal { position: fixed; inset: 0; z-index: 10; background: rgba(3, 8, 22, .7); display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal .card { position: relative; background: var(--bg2); border: 1px solid var(--line); border-radius: 22px; padding: 22px; width: min(520px, 100%); }
.modal h3 { margin: 0 0 6px; font-size: 22px; }
.x { position: absolute; right: 12px; top: 8px; background: none; border: 0; color: var(--muted); font-size: 28px; cursor: pointer; }
.packs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0; }
.pack {
  display: grid; gap: 2px; text-align: left; padding: 14px; border-radius: 14px; cursor: pointer;
  background: var(--card); border: 1px solid var(--line); color: var(--text); font: inherit;
}
.pack:hover { border-color: var(--gold); }
.pack .price { font-size: 22px; font-weight: 800; color: var(--gold); }
.pack small { color: var(--muted); }
.email { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.email input { padding: 11px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: inherit; }

.mebox { padding: 20px 0; }
.mebox .row { display: flex; gap: 10px; flex-wrap: wrap; margin: 14px 0; }
.gallery .thumb { aspect-ratio: auto; }
.gallery .thumb img { position: static; }
.empty { color: var(--muted); padding: 30px 0; }
.prices { border-collapse: collapse; width: 100%; max-width: 560px; margin: 16px 0; }
.prices th, .prices td { text-align: left; padding: 10px; border-bottom: 1px solid var(--line); }
.legal { max-width: 760px; }
.legal h2 { font-size: 19px; margin-top: 26px; }

.foot { max-width: 1100px; margin: 0 auto; padding: 30px 20px 50px; color: var(--muted); font-size: 13px; display: grid; gap: 4px; border-top: 1px solid var(--line); }
.foot a { color: var(--muted); }

/* внутри Telegram прячем шапку сайта — навигация есть в боте */
body.tg .foot { display: none; }

.pill.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.logins { display: grid; gap: 10px; margin: 16px 0 10px; }
.logins .btn { text-align: center; padding: 13px; }
.logins .btn.linked { opacity: .55; pointer-events: none; }
.btn.small { padding: 7px 12px; font-size: 13px; font-weight: 500; margin-top: 10px; }
#loginMsg a { font-weight: 700; }

a.chip { text-decoration: none; }
.chips.wrap { flex-wrap: wrap; }
.col { margin: 26px 0 8px; scroll-margin-top: 12px; }
.colhead { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.colhead h2 { margin: 0; font-size: 24px; }
.colhead a { white-space: nowrap; text-decoration: none; font-weight: 600; }
.col > .muted { margin: 4px 0 12px; }
.hscroll { display: grid; grid-auto-flow: column; grid-auto-columns: 168px; gap: 12px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.hscroll .tcard { scroll-snap-align: start; }

/* ===== Тема: светлый холст с розово-фиолетовым свечением, «телефоны» с видео, градиентные кнопки ===== */
body {
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(1000px 700px at 15% 15%, rgba(236, 72, 153, .14), transparent 62%),
    radial-gradient(1000px 700px at 88% 85%, rgba(124, 58, 237, .18), transparent 62%),
    #ffffff;
  background-attachment: fixed;
}
a { color: #7c3aed; }
.word, .reveal { opacity: 1; transform: none; }

.top { padding: 18px 20px; }
.logo { font-weight: 600; letter-spacing: -.3px; white-space: nowrap; }
.top nav a { color: var(--text); font-size: 15px; }
.top nav a:hover { color: #7c3aed; }
.actions { display: flex; gap: 8px; align-items: center; }
.pill { background: linear-gradient(120deg, #8b5cf6, #6d28d9); color: #fff; border-radius: 16px; font-weight: 600; font-size: 13px; padding: 10px 16px; font-family: inherit; }
.pill:hover { filter: brightness(1.15); }
.pill.ghost { background: linear-gradient(120deg, #f3e8ff, #d8b4fe); color: #2e1065; border: 0; }
.pill.ghost:hover { filter: brightness(1.05); }

/* кнопки: радиус 16, без рамок и теней */
.btn { background: linear-gradient(120deg, #8b5cf6, #6d28d9); color: #fff; border-radius: 16px; font-weight: 600; font-size: 14px; }
.btn:hover { filter: brightness(1.15); }
.btn.big { min-height: 56px; padding: 0 28px; font-size: 15px; display: inline-flex; align-items: center; justify-content: center; }
.btn.ghost { background: linear-gradient(120deg, #f3e8ff, #d8b4fe); color: #2e1065; border: 0; }
.btn.ghost:hover { filter: brightness(1.05); }

/* первый экран: два «телефона» */
.phones { display: flex; flex-direction: row; gap: 40px; align-items: center; justify-content: center; padding: 40px; min-height: calc(100vh - 76px); }
.phone { position: relative; width: 300px; height: 650px; flex: none; border-radius: 44px; overflow: hidden; background: #000; color: #fff; display: flex; flex-direction: column; }
.phone a { color: #fff; text-decoration: none; }
.phone a:hover { color: #e9d5ff; }
.phone video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.phone .scrim { position: absolute; inset: 0; }
.phone .s1 { background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.55) 80%, rgba(0,0,0,.75) 100%); }
.phone .s2 { background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,.55) 75%, rgba(0,0,0,.78) 100%); }
.phone .spacer { flex: 1; }
.phone > :not(video):not(.scrim):not(.reel) { position: relative; }
.ph-title { font-size: 24px; font-weight: 500; line-height: 1.3; letter-spacing: -.3px; text-align: center; color: #fff; margin: 0; padding: 0 30px; }
.ph-cta { width: 100%; padding: 28px 24px 26px; }
.ph-col { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 0 24px 26px; }
.ph-col .ph-title { padding: 0; }
.ph-sub { font-size: 14px; line-height: 1.45; text-align: center; color: #f5f5f4; max-width: 230px; margin: 0; }
.ph-row { display: flex; gap: 12px; width: 100%; margin-top: 8px; }
.ph-btn { display: flex; align-items: center; justify-content: center; border: 0; border-radius: 16px; font-size: 13px; font-weight: 600; text-align: center; }
.ph-cta .ph-btn { width: 100%; height: 56px; }
.ph-row .ph-btn { flex: 1; height: 52px; }
.phone a.grad1 { background: linear-gradient(120deg, #ffffff 0%, #e9d5ff 55%, #c084fc 100%); color: #2e1065; }
.phone a.grad1:hover { color: #2e1065; filter: brightness(1.05); }
.phone a.grad2 { background: linear-gradient(120deg, #ffffff, #d8b4fe); color: #2e1065; }
.phone a.grad2:hover { color: #2e1065; filter: brightness(1.1); }
.phone a.violet { background: linear-gradient(120deg, #8b5cf6, #6d28d9); color: #fff; }
.phone a.violet:hover { color: #fff; filter: brightness(1.15); }
.ph-link { font-size: 12px; font-weight: 500; margin-top: 4px; text-align: center; }

/* на телефоне рядом два экрана не помещаются: показываем один, во всю ширину */
@media (max-width: 760px) {
  .phones { padding: 8px 0 28px; min-height: 0; }
  .phone { width: 100%; height: calc(100svh - 120px); min-height: 480px; max-height: 720px; border-radius: 32px; }
  .phone.second { display: none; }
  .logo { font-size: 18px; }
}

/* остальной сайт в той же гамме */
.chip { background: var(--card); border: 0; color: var(--text); font-size: 14px; border-radius: 16px; }
.chip.on { background: linear-gradient(120deg, #8b5cf6, #6d28d9); color: #fff; font-weight: 600; }
.thumb { background: linear-gradient(160deg, #f3e8ff, #ddd6fe); border: 0; border-radius: 16px; }
.thumb .emoji { filter: none; }
.tname { font-weight: 500; }
.colhead h2, h2.sub, .panel h1, .mebox h1 { font-weight: 600; letter-spacing: -.3px; }
.colhead a { color: #7c3aed; }
.hero h1 span { color: #7c3aed; }
.modal { background: rgba(26, 16, 40, .45); }
.modal .card { background: #fff; border: 0; border-radius: 28px; }
.pack { background: var(--bg2); border: 0; border-radius: 16px; }
.pack:hover { background: var(--card); }
.pack .price { color: #6d28d9; }
.email input { border-radius: 16px; }
.drop { background: var(--bg2); border-radius: 16px; }
.drop.has, .result { border-color: #8b5cf6; }
.result { border-radius: 16px; }
.status { color: #6d28d9; }
.spinner { border-color: #7c3aed; border-right-color: transparent; }
.steps b { background: var(--card); color: #6d28d9; }
.err { color: #dc2626; }
.foot a { color: var(--muted); }

/* ===== Студия: боковое меню на компьютере, нижняя панель на телефоне ===== */
.side {
  position: fixed; z-index: 5; left: 0; top: 0; bottom: 0; width: 236px; padding: 20px 12px;
  display: flex; flex-direction: column; gap: 18px; overflow-y: auto; scrollbar-width: none;
  background: rgba(255, 255, 255, .72); backdrop-filter: blur(14px); border-right: 1px solid var(--line);
}
.side .logo { padding: 0 12px; }
.side nav { display: grid; gap: 2px; }
.side nav a, .tabbar a { color: var(--text); text-decoration: none; }
.side nav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; font-size: 15px; }
.side nav a i { font-style: normal; width: 22px; text-align: center; flex: none; }
.side nav a span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side nav a:hover { background: var(--bg2); }
.side nav a.on { background: var(--card); color: #5b21b6; font-weight: 600; }
.navsep { margin: 12px 12px 4px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .6px; }
.app { margin-left: 236px; min-width: 0; }
.app .top { justify-content: flex-end; }
.app .top .logo { display: none; }

.tabbar {
  display: none; position: fixed; z-index: 5; left: 0; right: 0; bottom: 0;
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); grid-template-columns: repeat(5, 1fr);
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(14px); border-top: 1px solid var(--line);
}
.tabbar a { display: grid; justify-items: center; gap: 1px; padding: 5px 2px; border-radius: 12px; font-size: 11px; color: var(--muted); }
.tabbar a i { font-style: normal; font-size: 20px; line-height: 1.2; }
.tabbar a.on { color: #5b21b6; font-weight: 600; background: var(--bg2); }

@media (max-width: 960px) {
  .side { display: none; }
  .app { margin-left: 0; padding-bottom: 76px; }
  .app .top { justify-content: space-between; }
  .app .top .logo { display: block; }
  .tabbar { display: grid; }
}
@media (min-width: 961px) and (max-width: 1240px) { .phones { gap: 24px; padding: 32px 0; } }

/* карточки инструментов */
.tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.tool { position: relative; display: grid; gap: 6px; align-content: start; padding: 18px; border-radius: 20px; background: var(--bg2); color: var(--text); text-decoration: none; transition: transform .15s, background .15s; }
.tool:hover { background: var(--card); transform: translateY(-2px); }
.tool .ic { font-size: 30px; line-height: 1.2; }
.tool b { font-size: 17px; font-weight: 600; }
.tool .d { color: var(--muted); font-size: 14px; line-height: 1.4; }
.tool .tag { position: absolute; top: 16px; right: 16px; padding: 3px 10px; border-radius: 99px; background: #fff; color: #6d28d9; font-size: 12px; font-weight: 600; }
.tool.soon .ic, .tool.soon b { opacity: .6; }
.tool.soon .tag { color: var(--muted); }

/* страница инструмента */
.prompt { width: 100%; margin-top: 18px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: #fff; color: var(--text); font: inherit; resize: vertical; min-height: 110px; }
.prompt:focus { outline: 2px solid #8b5cf6; outline-offset: -1px; }
.ideas { padding: 10px 0 0; }
.ideas .chip { font-size: 13px; padding: 6px 12px; white-space: normal; text-align: left; }
.drop.multi { min-height: 96px; margin: 14px 0 0; align-content: center; gap: 10px; }
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.thumbs:empty { display: none; }
.pic { position: relative; }
.pic img { display: block; height: 110px; max-width: 150px; object-fit: cover; border-radius: 12px; }
.pic button { position: absolute; top: -6px; right: -6px; width: 24px; height: 24px; border: 0; border-radius: 50%; background: #1a1028; color: #fff; font-size: 16px; line-height: 1; cursor: pointer; }
.field { margin-top: 16px; font-size: 14px; color: var(--muted); }
.field .chips { padding: 8px 0 0; }
.panel .consent { margin: 16px 0 0; }
.panel #go { margin-top: 18px; }
@media (max-width: 760px) { .toolpage .preview:not(:has(.result:not([hidden]))) { display: none; } }
.clip { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.soonbox .bigemoji { font-size: 72px; line-height: 1.1; }
.soontag { display: inline-block; padding: 8px 16px; border-radius: 99px; background: var(--card); color: #5b21b6 !important; font-size: 14px !important; }
.mebox h2 { font-size: 19px; font-weight: 600; margin: 26px 0 0; }

/* партнёрский кабинет */
.copyrow { display: flex; gap: 10px; margin: 14px 0; max-width: 640px; }
.copyrow input, .payform input, .payform textarea { flex: 1; min-width: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 16px; background: #fff; color: var(--text); font: inherit; }
.tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); margin: 8px 0 20px; scrollbar-width: none; }
.tabs a { padding: 10px 14px; color: var(--muted); text-decoration: none; white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a.on { color: #5b21b6; font-weight: 600; border-bottom-color: #7c3aed; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 12px; }
.stat { display: grid; gap: 2px; padding: 16px 18px; border-radius: 18px; background: var(--bg2); }
.stat b { font-size: 22px; font-weight: 600; letter-spacing: -.3px; }
.stat span { color: var(--muted); font-size: 13px; }
.stat.ok b { color: var(--ok); }
.rules { color: var(--muted); padding-left: 20px; max-width: 720px; display: grid; gap: 6px; }
.prices.wide { max-width: none; font-size: 15px; display: block; overflow-x: auto; white-space: nowrap; }
.prices .chip { font-size: 12px; padding: 5px 10px; max-width: 280px; overflow: hidden; text-overflow: ellipsis; }
.tablewrap { overflow-x: auto; }
.payforms { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; margin-top: 8px; }
.payform { display: grid; gap: 10px; align-content: start; padding: 18px; border-radius: 20px; background: var(--bg2); }
.payform h3 { margin: 0; font-size: 17px; font-weight: 600; }
.payform p { margin: 0; }
.payform textarea { resize: vertical; }

/* атрибут hidden должен скрывать элемент, даже если у класса задан display */
[hidden] { display: none !important; }
@media (max-width: 760px) { .actions { margin-left: auto; } }

#go s { opacity: .65; font-weight: 500; margin: 0 4px 0 2px; }

/* поддержка */
.ticketform { max-width: 640px; }
.tickets { display: grid; gap: 8px; max-width: 640px; margin-bottom: 18px; }
.ticket { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 14px 16px; border-radius: 16px; background: var(--bg2); color: var(--text); text-decoration: none; }
.ticket:hover { background: var(--card); }
.ticket b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ticket small { color: var(--muted); grid-column: 1 / -1; }
.ticket .tag { font-size: 12px; padding: 2px 10px; border-radius: 99px; background: #fff; color: var(--muted); align-self: center; }
.ticket .st-answered { color: var(--ok); font-weight: 600; }
.ticket.new { outline: 2px solid #8b5cf6; }
.thread { display: grid; gap: 10px; max-width: 640px; margin-bottom: 16px; }
.msg { padding: 12px 16px; border-radius: 16px; background: var(--bg2); max-width: 88%; }
.msg.user { justify-self: end; background: var(--card); }
.msg small { color: var(--muted); }
.msg p { margin: 4px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.side nav a.dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #ec4899; flex: none; }
/* удаление работы */
.thumb .del { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border: 0; border-radius: 50%; background: rgba(26, 16, 40, .7); color: #fff; font-size: 18px; line-height: 1; cursor: pointer; opacity: 0; transition: opacity .15s; }
.tcard:hover .del, .del:focus { opacity: 1; }
@media (hover: none) { .thumb .del { opacity: 1; } }

/* вход по почте */
.emaillogin { display: flex; gap: 8px; margin: 4px 0 10px; }
.emaillogin input { flex: 1; min-width: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 16px; font: inherit; background: #fff; color: var(--text); }

/* «телефоны» на главной без видео: листаются наши шаблоны */
.phone > .reel, .reel { position: absolute; inset: 0; overflow: hidden; }
.reel .slide { position: absolute; inset: 0; display: grid; place-items: start center; padding-top: 32%; opacity: 0; transition: opacity 1.2s ease;
  background: linear-gradient(160deg, hsl(calc(265 + var(--seed) * 37), 70%, 62%), hsl(calc(320 + var(--seed) * 29), 65%, 38%) 70%, #12081f); }
.reel .slide.on { opacity: 1; }
.reel .slide .emoji { font-size: 120px; filter: drop-shadow(0 12px 30px rgba(0,0,0,.35)); }
.reel .slide.on .emoji, .reel .slide.on img { animation: kenburns 7s ease-out both; }
.reel .slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel .slide img + .tag, .reel .slide .tag { position: absolute; top: 22px; left: 22px; z-index: 1; padding: 6px 12px; border-radius: 99px;
  background: rgba(255,255,255,.18); backdrop-filter: blur(8px); color: #fff; font-size: 12px; font-weight: 600; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.12); } }
@media (prefers-reduced-motion: reduce) { .reel .slide.on .emoji, .reel .slide.on img { animation: none; } }

/* лента работ */
.pub { display: block; width: 100%; margin-top: 6px; padding: 6px 10px; border: 0; border-radius: 12px; background: var(--bg2); color: #5b21b6; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; text-align: center; }
.pub:hover { background: var(--card); }
.pub.on { color: var(--ok); }
.pub.off { color: var(--muted); font-weight: 400; cursor: default; }
.fcard .fprompt { margin: 2px 2px 0; color: var(--muted); font-size: 13px; }
.fcard .again { display: inline-block; margin-top: 6px; font-size: 13px; padding: 6px 12px; }
.feedgrid .thumb { aspect-ratio: 3/4; }
.feedgrid .thumb img { position: absolute; object-fit: cover; }
.hscroll.feedgrid { grid-auto-columns: 200px; }
.pager { display: flex; gap: 10px; justify-content: center; margin: 24px 0; }
.colhead.sub { margin: 40px 0 14px; }

/* подписка */
.subplans { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin: 14px 0; max-width: 720px; }
.subplan { position: relative; display: grid; gap: 4px; padding: 18px; border-radius: 20px; background: var(--bg2); cursor: pointer; border: 2px solid transparent; }
.subplan:has(input:checked) { border-color: #8b5cf6; background: var(--card); }
.subplan input { position: absolute; opacity: 0; }
.subplan b { font-size: 17px; font-weight: 600; }
.subplan .price { font-size: 24px; font-weight: 700; color: #6d28d9; }
.subplan .price small { font-size: 14px; font-weight: 500; color: var(--muted); }
.subform { display: grid; gap: 12px; max-width: 560px; }
.subform input[type=email] { padding: 12px 14px; border: 1px solid var(--line); border-radius: 16px; font: inherit; background: #fff; }
.substatus { display: grid; gap: 6px; justify-items: start; padding: 16px 18px; border-radius: 18px; background: var(--bg2); max-width: 640px; margin: 12px 0; }

/* озвучка и расшифровка */
.mediacard audio { width: 100%; margin-top: 6px; height: 36px; }
.mediacard .thumb { aspect-ratio: 3/4; }
#audio { width: 100%; }
.textresult { display: grid; gap: 10px; }
.textresult .row { display: flex; gap: 10px; flex-wrap: wrap; }
.voices .chip { font-size: 14px; }

/* «Вода» между телефонами (water.js): гладь со знаком KitGen */
.phone.water { background: #02080e; cursor: crosshair; touch-action: none; }
.phone.water canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.phone.water .water-hint { padding-bottom: 30px; color: rgba(232,244,255,.55); letter-spacing: .5px; pointer-events: none; }
.phone.water.nofx { background: radial-gradient(circle at 50% 45%, #0e3a52, #02080e 70%); }
@media (max-width: 1240px) { .phone.water { display: none; } }
.logo { display: inline-flex; align-items: center; gap: 9px; }
.logo img { width: 28px; height: 28px; border-radius: 8px; flex: none; }
@media (max-width: 960px) { .app .top .logo { display: inline-flex; } }

/* ── Приёмы «современного лендинга»: сетка, свечение, параллакс, бенто, градиентные рамки ── */
/* фон героя: тонкая сетка линий, гаснущая к краям, и два мягких цветных пятна */
.phones { position: relative; isolation: isolate; }
.phones::before, .phones::after { content: ""; position: absolute; z-index: -1; pointer-events: none; }
.phones::before {
  inset: 0;
  background:
    linear-gradient(to right, rgba(124, 58, 237, .09) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(to bottom, rgba(124, 58, 237, .09) 1px, transparent 1px) 0 0 / 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 65% at 50% 50%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 65% at 50% 50%, #000 30%, transparent 75%);
}
.phones::after {
  inset: 10% 8%;
  background: radial-gradient(closest-side at 28% 40%, rgba(167, 139, 250, .45), transparent),
              radial-gradient(closest-side at 74% 62%, rgba(56, 189, 248, .28), transparent);
  filter: blur(40px);
  transform: translate(calc(var(--px, 0) * -18px), calc(var(--py, 0) * -14px));
}
/* параллакс от мыши: каждый «телефон» смещается на свою глубину */
.phones .phone { transform: translate(calc(var(--px, 0) * var(--depth, 8px)), calc(var(--py, 0) * var(--depth, 8px))); transition: transform .5s cubic-bezier(.22, 1, .36, 1); will-change: transform; }
.phones .phone:nth-child(1) { --depth: 10px; }
.phones .phone.water { --depth: -14px; box-shadow: 0 30px 80px -30px rgba(14, 116, 144, .6); }
.phones .phone.second { --depth: 16px; }
.phones .phone:not(.water) { box-shadow: 0 30px 70px -32px rgba(76, 29, 149, .55); }

/* инструменты — бенто-сетка; у работающих градиентная рамка, при наведении она ярче и светится */
@media (min-width: 720px) {
  .tools { grid-auto-flow: dense; }
  .tools .tool:nth-child(-n+2) { grid-column: span 2; padding: 24px; }
  .tools .tool:nth-child(-n+2) .ic { font-size: 40px; }
  .tools .tool:nth-child(-n+2) b { font-size: 20px; }
}
.tool:not(.soon)::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: linear-gradient(130deg, rgba(167, 139, 250, .55), rgba(56, 189, 248, .25) 45%, rgba(244, 114, 182, .45));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: .6; transition: opacity .2s;
}
.tool:not(.soon):hover::before { opacity: 1; }
.tool:not(.soon):hover { box-shadow: 0 18px 40px -22px rgba(124, 58, 237, .55); }

/* появление блоков при прокрутке (класс js-reveal ставит app.js — без JS всё видно сразу) */
.js-reveal .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.22, 1, .36, 1); }
.js-reveal .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .phones .phone, .phones::after { transform: none !important; transition: none; }
  .js-reveal .reveal { opacity: 1; transform: none; transition: none; }
}

button, input, textarea, select { font-family: inherit; }

/* иконки меню (static/brand/icons.svg) */
.side nav a i svg { width: 21px; height: 21px; display: block; margin: 0 auto; }
.side nav a i { color: var(--muted); transition: color .15s; }
.side nav a:hover i { color: var(--text); }
.side nav a.on i { color: #7c3aed; }
.tabbar a i { display: grid; place-items: center; width: 54px; height: 30px; border-radius: 15px; transition: background .2s, color .2s; }
.tabbar a i svg { width: 23px; height: 23px; }
.tabbar a.on { background: none; }
.tabbar a.on i { color: #fff; background: linear-gradient(120deg, #a78bfa, #7c3aed 60%, #6d28d9); box-shadow: 0 6px 14px -6px rgba(124, 58, 237, .7); }

/* видео: результат «Оживить фото» и «Видео» */
.thumb video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.gallery .thumb video { position: static; display: block; aspect-ratio: 9 / 16; }
video.result { background: #000; display: block; max-height: 78vh; }

/* иконки инструментов вместо эмодзи (static/brand/icons.svg) */
.tool .ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 15px; font-size: 0;
  color: #fff; background: linear-gradient(135deg, #a78bfa, #7c3aed 60%, #6d28d9); box-shadow: 0 8px 18px -10px rgba(124, 58, 237, .8); }
.tool .ic svg { width: 26px; height: 26px; }
.tool.soon .ic { color: #8b84a0; background: var(--card); box-shadow: none; }
@media (min-width: 720px) { .tools .tool:nth-child(-n+2) .ic { width: 60px; height: 60px; border-radius: 18px; } .tools .tool:nth-child(-n+2) .ic svg { width: 32px; height: 32px; } }
.toolart { display: grid; place-items: center; color: #7c3aed;
  background: radial-gradient(circle at 50% 45%, #fff 0 22%, transparent 60%), linear-gradient(160deg, #f3e8ff, #ddd6fe); }
.toolart svg { width: 34%; height: 34%; filter: drop-shadow(0 10px 18px rgba(124, 58, 237, .35)); }
.bigemoji.toolart { width: 140px; height: 140px; border-radius: 36px; margin: 0 auto 18px; font-size: 0; }
.bigemoji.toolart svg { width: 64px; height: 64px; }
.soonart { color: #8b84a0; }
