:root {
  --outer: #F2E3DE;
  --bg: #FFF6F3;
  --topbg: rgba(255, 246, 243, .94);
  --card: #FFFFFF;
  --field: #FFFBF9;
  --soft: #F8EFEE;
  --ink: #3E2A22;
  --muted: #9B8279;
  --berry: #7A4532;
  --berry2: #D98A9C;
  --pink: #FADDE3;
  --line: #F1DCDF;
  --mint: #3F9C7E;
  --mintbg: #E3F4EC;
  --note: #FFF0D9;
  --notec: #8A5A1E;
  --wb: #A51C8C;
  --ozon: #1F5FD6;
  --shadow: rgba(110, 63, 44, .08);
  --tabs-h: 64px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --outer: #130D0B; --bg: #1D1512; --topbg: rgba(29, 21, 18, .92); --card: #2B1F1B; --field: #251A17; --soft: #352722;
    --ink: #F8EAE6; --muted: #B9A098; --berry: #EBA6B5; --berry2: #F2C1CC; --pink: #3F2A2B; --line: #3D2C27;
    --mint: #7FD3B3; --mintbg: #1F3A31; --note: #3A2C1A; --notec: #F2CF9A; --shadow: rgba(0, 0, 0, .3); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --outer: #130D0B; --bg: #1D1512; --topbg: rgba(29, 21, 18, .92); --card: #2B1F1B; --field: #251A17; --soft: #352722;
  --ink: #F8EAE6; --muted: #B9A098; --berry: #EBA6B5; --berry2: #F2C1CC; --pink: #3F2A2B; --line: #3D2C27;
  --mint: #7FD3B3; --mintbg: #1F3A31; --note: #3A2C1A; --notec: #F2CF9A; --shadow: rgba(0, 0, 0, .3); color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { background: var(--outer); color: var(--ink); font-family: 'Nunito', 'Segoe UI', sans-serif; font-size: 15px; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; transition: transform .12s; }
button:active { transform: scale(.96); }

#app { max-width: 460px; min-height: 100vh; margin: 0 auto; background: var(--bg); position: relative; padding-bottom: calc(var(--tabs-h) + 70px); box-shadow: 0 0 40px rgba(120, 50, 70, .12); }

/* шапка */
.top { position: sticky; top: 0; z-index: 5; background: var(--topbg); backdrop-filter: blur(8px); padding: 14px 16px 10px; display: flex; align-items: center; gap: 12px; }
.top .logo { width: 42px; height: 42px; border-radius: 13px; background: linear-gradient(135deg, #8E5843, #5E3524); display: grid; place-items: center; flex: none; box-shadow: 0 4px 12px rgba(110, 63, 44, .3); }
.top .logo svg { width: 28px; height: 28px; }
.top h1 { font-size: 21px; font-weight: 900; line-height: 1.1; }
.top p { color: var(--muted); font-size: 13px; font-weight: 600; }
.top .gear { margin-left: auto; width: 40px; height: 40px; border-radius: 12px; background: var(--card); color: var(--muted); display: grid; place-items: center; box-shadow: 0 2px 8px var(--shadow); }
.top .gear svg { width: 22px; height: 22px; }

main { padding: 2px 14px 10px; display: flex; flex-direction: column; gap: 10px; }
main.enter > * { animation: fadeUp .35s both; }
main.enter > *:nth-child(2) { animation-delay: .04s; }
main.enter > *:nth-child(3) { animation-delay: .08s; }
main.enter > *:nth-child(4) { animation-delay: .12s; }
main.enter > *:nth-child(n+5) { animation-delay: .16s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { main.enter > * { animation: none; } }

.card { background: var(--card); border-radius: 18px; padding: 12px 14px; box-shadow: 0 2px 10px var(--shadow); }
.card-title { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-weight: 900; font-size: 16px; margin-bottom: 8px; }
.card-title small { color: var(--muted); font-weight: 700; font-size: 12.5px; }
.hint { color: var(--muted); font-size: 12.5px; font-weight: 600; line-height: 1.4; }
.link { color: var(--berry); font-weight: 800; font-size: 13px; }

/* поля ввода */
.inp { width: 100%; border: 1.5px solid var(--line); background: var(--field); border-radius: 11px; padding: 8px 10px; font-weight: 700; outline: none; transition: border-color .15s; }
.inp:focus { border-color: var(--berry2); background: var(--card); }
.inp.num { text-align: right; }
.field { display: flex; flex-direction: column; gap: 4px; }
.field > span { color: var(--muted); font-size: 12px; font-weight: 800; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* ингредиенты */
.ing { padding: 9px 0; border-bottom: 1px dashed var(--line); }
.ing-top { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.ing-top .inp { flex: 1; padding: 6px 9px; }
.ing-cost { font-weight: 900; white-space: nowrap; min-width: 62px; text-align: right; }
.ing-sub { display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: 6px; }
.ing-sub label { display: flex; flex-direction: column; gap: 3px; color: var(--muted); font-size: 11px; font-weight: 800; }
.ing-sub .u { display: flex; align-items: center; gap: 4px; color: var(--ink); font-size: 13px; }
.ing-sub .inp { padding: 6px 7px; font-size: 14px; }
.ing-sub select.inp { width: auto; padding: 6px 2px; flex: none; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.row b { font-weight: 800; white-space: nowrap; }
.row i { font-style: normal; color: var(--muted); font-size: 12.5px; margin-left: 4px; }
.x { width: 28px; height: 28px; border-radius: 9px; color: var(--muted); font-size: 20px; line-height: 1; flex: none; }
.x:hover { background: var(--pink); color: var(--berry); }
.add { width: 100%; margin-top: 8px; padding: 9px; border-radius: 12px; border: 1.5px dashed var(--berry2); color: var(--berry); font-weight: 800; opacity: .9; }
.total-row { display: flex; justify-content: space-between; margin-top: 10px; font-weight: 900; }
.total-row b { color: var(--berry); }
.scale { display: flex; gap: 4px; }
.scale button { background: var(--pink); color: var(--berry); border-radius: 9px; padding: 4px 10px; font-weight: 900; font-size: 13px; }

.pk { display: flex; gap: 6px; align-items: center; margin-bottom: 6px; }
.pk .inp:first-child { flex: 1; }
.pk .inp.num { width: 90px; flex: none; }

.stepper { display: flex; align-items: center; gap: 6px; }
.stepper button { width: 36px; height: 38px; border-radius: 11px; background: var(--pink); color: var(--berry); font-weight: 900; font-size: 20px; flex: none; }
.stepper .inp, .stepper .val { text-align: center; padding: 7px 4px; }
.stepper .val { flex: 1; font-weight: 900; font-size: 20px; }

input[type=range] { width: 100%; accent-color: var(--berry); margin: 8px 0 2px; }
.ticks { display: flex; justify-content: space-between; color: var(--muted); font-size: 11.5px; font-weight: 700; }

/* итог */
.result { background: linear-gradient(140deg, #D5577F, #A8325A); color: #fff; border-radius: 20px; padding: 14px 16px; box-shadow: 0 8px 22px rgba(168, 50, 90, .3); scroll-margin-top: 80px; }
.result .r { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 3px 0; font-weight: 700; font-size: 14px; }
.result .r small { opacity: .75; font-size: 12px; }
.result .r b { font-size: 17px; font-weight: 900; white-space: nowrap; }
.result .main { margin-top: 8px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.3); display: flex; justify-content: space-between; align-items: center; }
.result .main .t { font-weight: 800; font-size: 15px; line-height: 1.2; }
.result .main .t small { display: block; font-weight: 600; opacity: .8; font-size: 12px; }
.result .main .p { font-size: 30px; font-weight: 900; white-space: nowrap; }
.save { display: flex; gap: 6px; margin-top: 12px; }
.save[hidden] { display: none; }
.save .inp { background: rgba(255,255,255,.95); border: 0; color: #3B2530; }
.save button { background: #fff; color: #7A4532; border-radius: 11px; padding: 0 14px; font-weight: 900; white-space: nowrap; }

.presets { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -14px; padding: 0 14px 2px; }
.presets::-webkit-scrollbar { display: none; }
.presets button { background: var(--card); border: 1.5px solid var(--line); border-radius: 14px; padding: 8px 12px; font-weight: 800; font-size: 13px; white-space: nowrap; display: flex; align-items: center; gap: 6px; box-shadow: 0 2px 6px var(--shadow); }
.presets .lbl { color: var(--muted); font-weight: 800; font-size: 12px; align-self: center; white-space: nowrap; }

.plan-q { font-weight: 800; font-size: 15px; }
.plan-q b { color: var(--berry); font-size: 20px; }
.plan-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; margin: 8px 0 6px; }
.plan-grid div { background: var(--soft); border-radius: 12px; padding: 7px 8px; display: flex; flex-direction: column; gap: 1px; }
.plan-grid span { color: var(--muted); font-size: 11px; font-weight: 800; }
.plan-grid b { font-weight: 900; font-size: 15px; white-space: nowrap; }
.plan-grid .hl { background: var(--mintbg); }
.plan-grid .hl b, .plan-grid .hl span { color: var(--mint); }

.sumbar { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--tabs-h) + 10px); width: min(432px, calc(100% - 28px)); z-index: 6; background: #3B2530; color: #fff; border-radius: 16px; padding: 10px 14px; display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 13.5px; box-shadow: 0 8px 20px rgba(59, 37, 48, .3); transition: opacity .2s, transform .2s; cursor: pointer; }
.sumbar b { font-weight: 900; font-size: 16px; color: #FFC2D3; }
.sumbar.hide { opacity: 0; pointer-events: none; transform: translate(-50%, 10px); }

/* кнопки */
.btn { width: 100%; background: linear-gradient(135deg, #8E5843, #5E3524); color: #fff; border-radius: 15px; height: 50px; display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 900; font-size: 16px; box-shadow: 0 6px 16px rgba(110, 63, 44, .3); }
.btn.light { background: var(--pink); color: var(--berry); box-shadow: none; height: 42px; font-size: 14.5px; }
.btn svg { width: 20px; height: 20px; }

/* таб-бар */
.tabs { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 460px; height: var(--tabs-h); background: var(--card); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, 1fr); z-index: 7; padding-bottom: env(safe-area-inset-bottom); }
.tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted); opacity: .75; font-weight: 800; font-size: 11px; position: relative; }
.tab svg { width: 24px; height: 24px; }
.tab.on { color: var(--berry); opacity: 1; }
.tab.on svg { animation: pop .3s; }
@keyframes pop { 50% { transform: scale(1.18); } }

/* чипы */
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -14px; padding: 0 14px 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip { background: var(--card); border: 1.5px solid var(--line); border-radius: 999px; padding: 6px 13px; font-weight: 800; font-size: 13.5px; white-space: nowrap; }
.chip.on { background: var(--berry); border-color: var(--berry); color: #fff; }

/* поиск и каталог */
.search { background: var(--card); border-radius: 15px; height: 46px; display: flex; align-items: center; gap: 8px; padding: 0 12px; box-shadow: 0 2px 10px var(--shadow); }
.search input { flex: 1; border: 0; outline: none; font-weight: 700; font-size: 16px; background: transparent; }
.search .clr { color: var(--muted); font-size: 22px; width: 30px; }
.bar { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-weight: 700; color: var(--muted); font-size: 13px; padding: 0 2px; }
.bar button { color: var(--berry); font-weight: 900; }
.mgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { background: var(--card); border-radius: 18px; overflow: hidden; box-shadow: 0 2px 10px var(--shadow); display: flex; flex-direction: column; }
.tile .ph { height: 126px; display: grid; place-items: center; position: relative; overflow: hidden; }
.tile .ph svg { width: 96px; height: 96px; filter: drop-shadow(0 4px 6px rgba(120, 40, 70, .18)); }
.tile .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile .info { padding: 8px 10px 10px; display: flex; flex-direction: column; flex: 1; }
.tile .nm { font-weight: 900; font-size: 14px; line-height: 1.2; }
.tile .mk { color: var(--muted); font-weight: 700; font-size: 12px; margin: 2px 0 8px; flex: 1; }
.tile .own { display: flex; gap: 4px; margin-bottom: 6px; }
.tile .own button { flex: 1; border-radius: 9px; padding: 4px 0; font-size: 12px; font-weight: 800; background: var(--soft); color: var(--muted); }
.tile .own button.have { background: var(--mintbg); color: var(--mint); }
.tile .own button.want { background: var(--pink); color: var(--berry); }
.tile .buy { background: var(--wb); color: #fff; border-radius: 11px; height: 32px; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 13px; text-decoration: none; }
.tile .buy.ozon { background: var(--ozon); }
.tile .tag { position: absolute; left: 8px; top: 8px; background: rgba(255,255,255,.9); border-radius: 999px; padding: 2px 8px; font-size: 11px; font-weight: 800; color: #7A4532; }
.empty { text-align: center; padding: 26px 18px; color: var(--muted); font-weight: 700; line-height: 1.5; }
.empty .big { font-size: 40px; margin-bottom: 6px; }
.gift-btn { width: 100%; background: linear-gradient(135deg, #FCE3E8, #F3E2DA); color: #8E3A6A; border-radius: 15px; padding: 12px; font-weight: 900; font-size: 15px; box-shadow: 0 4px 12px var(--shadow); }

/* карточка-прайс */
.preview { border-radius: 18px; overflow: hidden; box-shadow: 0 10px 26px rgba(120, 50, 70, .22); background: #eee; margin: 0 auto; width: 100%; }
.preview canvas { display: block; width: 100%; height: auto; }
.preview.story { width: 62%; }
.tpls { display: flex; gap: 8px; }
.sw { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-weight: 900; font-size: 15px; flex: none; border: 1px solid var(--line); }
.sw.on { outline: 3px solid var(--berry); outline-offset: 2px; }
.seg { display: flex; background: var(--pink); border-radius: 13px; padding: 3px; }
.seg button { flex: 1; text-align: center; padding: 8px 2px; border-radius: 10px; font-weight: 800; font-size: 13.5px; color: var(--berry); }
.seg button.on { background: var(--card); box-shadow: 0 1px 4px rgba(0,0,0,.08); color: var(--ink); }
.photo-btns { display: flex; gap: 8px; }
.fx { background: var(--pink); border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.fx-head { display: flex; align-items: center; gap: 10px; }
.fx-head b { flex: 1; font-size: 14px; }
.fx-auto { background: var(--berry); color: #fff; border-radius: 10px; padding: 7px 12px; font-weight: 800; font-size: 13.5px; }
.fx-row { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 700; }
.fx-row span { width: 96px; flex: none; }
.fx-row input { flex: 1; accent-color: var(--berry); height: 28px; }
.photo-btns label, .photo-btns button { flex: 1; text-align: center; background: var(--pink); color: var(--berry); border-radius: 12px; padding: 10px 6px; font-weight: 800; font-size: 14px; cursor: pointer; }

/* главная */
.hero { position: relative; overflow: hidden; border-radius: 22px; padding: 18px 16px; min-height: 132px; background: linear-gradient(135deg, #FCE3E8 0%, #F6CDD5 50%, #EED6CB 100%); color: #4A2D1C; display: flex; align-items: center; box-shadow: 0 8px 22px rgba(110, 63, 44, .18); }
.hero-txt { position: relative; z-index: 1; max-width: 66%; }
.hero .hi { font-size: 22px; font-weight: 900; line-height: 1.15; }
.hero .hd { font-size: 13px; font-weight: 700; margin-top: 6px; line-height: 1.4; opacity: .85; }
.hero .hd b { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; opacity: .7; margin-bottom: 2px; }
.hero-fl { position: absolute; right: -14px; bottom: -18px; width: 150px; height: 150px; animation: sway 6s ease-in-out infinite; }
.hero-fl svg { width: 100%; height: 100%; filter: drop-shadow(0 8px 12px rgba(120, 30, 60, .25)); }
@keyframes sway { 50% { transform: rotate(8deg) scale(1.03); } }
.petal { position: absolute; top: -20px; width: 12px; height: 8px; border-radius: 60% 40% 60% 40%; background: rgba(255,255,255,.8); animation: fall linear infinite; }
@keyframes fall { to { transform: translate(-30px, 190px) rotate(320deg); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .petal, .hero-fl { animation: none; } .petal { display: none; } }

.goal-num { display: flex; align-items: baseline; gap: 6px; }
.goal-num b { font-size: 30px; font-weight: 900; color: var(--berry); }
.goal-num span { color: var(--muted); font-weight: 800; }
.progress { height: 12px; border-radius: 6px; background: var(--soft); margin: 8px 0; overflow: hidden; }
.progress div { height: 100%; border-radius: 6px; background: linear-gradient(90deg, #E8A9B7, #7A4532); transition: width .8s cubic-bezier(.2,.8,.2,1); position: relative; min-width: 12px; }
.progress div::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent); animation: shine 2.4s infinite; }
@keyframes shine { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.goal .btn { margin-top: 10px; }

.quick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quick button { background: var(--card); border-radius: 18px; padding: 12px; display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 14px; text-align: left; line-height: 1.2; box-shadow: 0 2px 10px var(--shadow); }
.quick .ic { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; flex: none; color: #fff; }
.quick .ic svg { width: 22px; height: 22px; }

.prod { padding: 10px 0; border-bottom: 1px dashed var(--line); display: flex; flex-direction: column; gap: 8px; }
.prod:last-child { border-bottom: 0; padding-bottom: 2px; }
.prod .h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.prod .n { font-weight: 900; font-size: 15.5px; }
.prod .pr { font-weight: 900; font-size: 19px; color: var(--berry); white-space: nowrap; }
.prod .acts { display: flex; gap: 6px; }
.prod .acts button { flex: 1; background: var(--pink); color: var(--berry); border-radius: 11px; padding: 8px 4px; font-weight: 800; font-size: 12.5px; }
.prod .acts button.sold { background: var(--mintbg); color: var(--mint); }
.prod .acts button.x { flex: none; width: 36px; background: var(--soft); color: var(--muted); padding: 0; }

/* упаковка */
.box-res { background: linear-gradient(140deg, #FFF1E4, #FFE3EA); color: #4A2D1C; border-radius: 18px; padding: 14px; display: flex; gap: 14px; align-items: center; }
.box-res .bx { width: 84px; height: 84px; flex: none; }
.box-res .t { font-size: 20px; font-weight: 900; line-height: 1.15; }
.box-res .s { font-size: 13px; font-weight: 700; opacity: .8; margin-top: 3px; line-height: 1.35; }
.shop-btns { display: flex; gap: 8px; }
.shop-btns a { flex: 1; text-align: center; color: #fff; border-radius: 12px; padding: 10px 6px; font-weight: 900; font-size: 14px; text-decoration: none; background: var(--wb); }
.shop-btns a.oz { background: var(--ozon); }
.shop-btns a.av { background: #00AAFF; }
.check { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-weight: 700; cursor: pointer; width: 100%; text-align: left; }
.check:last-child { border-bottom: 0; }
.check .bx2 { width: 24px; height: 24px; border-radius: 8px; border: 2px solid var(--berry2); display: grid; place-items: center; color: #fff; font-size: 14px; flex: none; transition: background .15s; }
.check.on .bx2 { background: var(--berry); border-color: var(--berry); }
.check.on span:last-child { color: var(--muted); text-decoration: line-through; }
.tips li { margin: 0 0 7px 18px; font-weight: 600; line-height: 1.4; font-size: 14px; }

/* всплывашки */
#toast { position: fixed; left: 50%; top: 18px; transform: translate(-50%, -100px); background: #3B2530; color: #fff; border-radius: 14px; padding: 11px 18px; font-weight: 800; z-index: 30; transition: transform .25s; max-width: 90vw; text-align: center; box-shadow: 0 8px 20px rgba(0,0,0,.2); }
#toast.show { transform: translate(-50%, 0); }
.modal-bg { position: fixed; inset: 0; background: rgba(30, 15, 22, .5); z-index: 15; display: flex; align-items: flex-end; justify-content: center; animation: fade .2s; }
.modal { background: var(--bg); width: 100%; max-width: 460px; border-radius: 24px 24px 0 0; padding: 18px 16px 24px; display: flex; flex-direction: column; gap: 10px; max-height: 92vh; overflow: auto; animation: slideUp .28s cubic-bezier(.2,.8,.2,1); }
.modal h2 { font-size: 19px; font-weight: 900; display: flex; justify-content: space-between; align-items: center; }
@keyframes fade { from { opacity: 0; } }
@keyframes slideUp { from { transform: translateY(40px); opacity: 0; } }
.welcome { text-align: center; align-items: stretch; }
.welcome .wfl { width: 120px; height: 120px; margin: 0 auto -6px; animation: sway 5s ease-in-out infinite; }
.welcome .wfl svg { width: 100%; height: 100%; }
.welcome h2 { justify-content: center; font-size: 24px; }
.demo-note { background: var(--note); color: var(--notec); border-radius: 12px; padding: 8px 12px; font-size: 12.5px; font-weight: 700; line-height: 1.35; }
.confetti { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 40; }

/* пробный период и подписка */
.trial { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 8px; background: var(--card); border: 1.5px dashed var(--berry2); border-radius: 16px; padding: 10px 14px; font-weight: 800; font-size: 13.5px; text-align: left; }
.trial b { color: var(--berry); }
.trial .go { color: var(--berry); font-weight: 900; white-space: nowrap; }
.trial.last { background: linear-gradient(135deg, #FCE3E8, #F3E2DA); border-style: solid; color: #4A2D1C; }
.trial.last b, .trial.last .go { color: #7A4532; }
body.locked .tabs { display: none; }
.pay { text-align: center; display: flex; flex-direction: column; gap: 12px; padding: 4px 2px 24px; }
.pay .wfl { width: 130px; height: 130px; margin: 0 auto -4px; animation: sway 5s ease-in-out infinite; }
.pay .wfl svg { width: 100%; height: 100%; }
.pay h2 { font-size: 24px; font-weight: 900; line-height: 1.15; }
.pay > p { color: var(--muted); font-weight: 700; line-height: 1.45; font-size: 14px; }
.pay > p b { color: var(--ink); }
.paybox { display: flex; flex-direction: column; gap: 12px; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.plan { background: var(--card); border: 2px solid var(--line); border-radius: 18px; padding: 16px 8px 12px; display: flex; flex-direction: column; align-items: center; gap: 2px; position: relative; box-shadow: 0 2px 10px var(--shadow); }
.plan.on { border-color: var(--berry); box-shadow: 0 6px 18px rgba(110, 63, 44, .22); }
.plan .pn { font-weight: 800; color: var(--muted); font-size: 13px; }
.plan .pp { font-weight: 900; font-size: 26px; white-space: nowrap; }
.plan .pp s { font-size: 13px; color: var(--muted); font-weight: 700; margin-right: 5px; }
.plan .pr2 { font-size: 12px; color: var(--muted); font-weight: 700; }
.plan .badge { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg, #8E5843, #5E3524); color: #fff; font-size: 11px; font-weight: 900; border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.perks { text-align: left; background: var(--card); border-radius: 16px; padding: 8px 14px; box-shadow: 0 2px 10px var(--shadow); }
.perks div { padding: 5px 0; font-weight: 700; font-size: 14px; }
a.btn { text-decoration: none; }
.btn.tg { background: linear-gradient(135deg, #3AB0F0, #1C8AD6); box-shadow: 0 6px 16px rgba(28, 138, 214, .3); }

/* посты */
.quick .wide { grid-column: span 2; }
.post-txt { min-height: 220px; resize: vertical; line-height: 1.45; font-weight: 600; font-size: 14.5px; }
.post-acts { display: flex; gap: 8px; }
.post-acts .btn { flex: 1; height: 46px; font-size: 15px; }
.post-acts .btn.light { height: 46px; }
.btn.ai { background: linear-gradient(135deg, #9B7BF0, #6A4FD8); box-shadow: 0 6px 16px rgba(106, 79, 216, .3); height: 46px; font-size: 15px; }
.btn:disabled { opacity: .7; }
.mrep { font-size: 11.5px; color: var(--muted); font-weight: 700; align-self: flex-start; padding: 2px 0; }
.prod .acts button { padding: 8px 2px; }

/* ---------- школа «Единорог» ---------- */
.top .logo { background: #FADDE3; box-shadow: 0 4px 12px rgba(110, 63, 44, .18); overflow: hidden; }
.top .logo img { width: 38px; height: 38px; object-fit: contain; }
.school-news { background: var(--pink); border-radius: 18px; padding: 12px 14px; font-weight: 700; line-height: 1.45; white-space: pre-line; }
.school-news b { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--berry); margin-bottom: 3px; }
.school-links { display: flex; flex-direction: column; gap: 8px; }
.btn.ghost { background: var(--card); color: var(--berry); border: 1.5px solid var(--line); box-shadow: none; text-decoration: none; }
a.btn { text-decoration: none; }
.gate { text-align: center; display: flex; flex-direction: column; gap: 12px; padding: 18px 4px 28px; }
.gate img { width: 190px; max-width: 70%; margin: 0 auto 4px; }
.gate h2 { font-size: 20px; font-weight: 900; }
.gate p { color: var(--muted); font-weight: 700; font-size: 14px; line-height: 1.45; }
.gate .inp { text-align: center; font-size: 17px; border: 1.5px solid var(--line); }
:root[data-theme="dark"] .gate img { filter: invert(1) hue-rotate(180deg) brightness(1.4); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .gate img { filter: invert(1) hue-rotate(180deg) brightness(1.4); } }