/* Сайт «Дунёи зеҳн» — общий стиль (в духе программы) */
:root { --bg: #fff8ec; --ink: #2d2a4a; --muted: #7a7398; --line: #ece6f7; --brand: #6c4cf5; --brand2: #8b6cff; --ok: #22b573; --bad: #e5484d; --gold: #f5b400;
  --shadow: 0 10px 30px rgba(60, 40, 120, .1); --r: 22px; --font: 'Nunito', 'Segoe UI', system-ui, sans-serif; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-weight: 600; color: var(--ink); background: var(--bg);
  background-image: radial-gradient(circle at 8% 12%, #ffe7a8 0, transparent 28%), radial-gradient(circle at 96% 30%, #d8f2ff 0, transparent 30%), radial-gradient(circle at 40% 110%, #ffe0ee 0, transparent 35%);
  background-attachment: fixed; min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--brand); }
h1, h2, h3 { margin: 0; font-weight: 800; }
img.emoji { height: 1.1em; width: 1.1em; vertical-align: -0.2em; }
main.w-main { flex: 1; width: min(1200px, 100%); margin: 0 auto; padding: 24px 20px 60px; }

/* шапка */
.w-top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 18px; padding: 12px 24px; background: rgba(255, 248, 236, .86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.w-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.w-logo { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 26px; background: linear-gradient(135deg, var(--brand2), var(--brand)); box-shadow: 0 6px 14px rgba(108, 76, 245, .35); }
.w-brand b { display: block; font-size: 19px; } .w-brand small { color: var(--muted); }
.w-nav { display: flex; gap: 6px; flex: 1; }
.w-nav a { text-decoration: none; color: var(--ink); font-weight: 800; padding: 8px 14px; border-radius: 999px; }
.w-nav a:hover, .w-nav a.on { background: #fff; box-shadow: var(--shadow); }
.w-right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.w-coins { text-decoration: none; color: var(--ink); background: #fff7d6; border: 2px solid #ffe08a; padding: 6px 12px; border-radius: 999px; font-weight: 800; }
.w-prem { font-size: 22px; }
.w-langs { display: flex; background: #fff; border-radius: 999px; padding: 3px; border: 2px solid var(--line); }
.w-langs button { border: 0; background: none; font: inherit; font-weight: 800; padding: 5px 10px; border-radius: 999px; cursor: pointer; color: var(--muted); }
.w-langs button.on { background: var(--brand); color: #fff; }

/* кнопки и поля */
.w-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; cursor: pointer; text-decoration: none; font: inherit; font-weight: 800;
  background: linear-gradient(135deg, var(--brand2), var(--brand)); color: #fff; border-radius: 14px; padding: 10px 18px; box-shadow: 0 5px 0 #4b2fd1; transition: transform .1s; }
.w-btn:active { transform: translateY(3px); box-shadow: 0 2px 0 #4b2fd1; }
.w-btn.ghost { background: #fff; color: var(--brand); box-shadow: 0 4px 0 #ddd5f8; border: 2px solid #ddd5f8; }
.w-btn.gold { background: linear-gradient(135deg, #ffd23f, #f5a400); color: #4a3200; box-shadow: 0 5px 0 #c98300; }
.w-btn.green { background: linear-gradient(135deg, #3ccf8e, #22b573); box-shadow: 0 5px 0 #178a56; }
.w-btn.big { font-size: 20px; padding: 14px 26px; border-radius: 18px; }
.w-btn.sm { padding: 6px 10px; font-size: 14px; }
.w-btn:disabled { opacity: .5; cursor: default; }
.w-in { width: 100%; font: inherit; font-weight: 700; border: 2px solid var(--line); border-radius: 14px; padding: 11px 14px; background: #fff; color: var(--ink); outline: none; }
.w-in:focus { border-color: var(--brand); }
label.w-lbl { display: block; font-weight: 800; color: var(--muted); margin: 12px 0 6px; }
.w-cap { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.w-cap-img svg { display: block; border-radius: 10px; }
.w-card { background: #fff; border-radius: var(--r); box-shadow: var(--shadow); padding: 22px; }
.w-msg { border-radius: 14px; padding: 12px 14px; margin-top: 12px; font-weight: 700; }
.w-msg.ok { background: #e6f9f0; color: #146c44; } .w-msg.bad { background: #fdecec; color: #a3262a; }
.w-msg:empty { display: none; }
.w-toast { position: fixed; left: 50%; bottom: 30px; transform: translate(-50%, 30px); opacity: 0; z-index: 100; padding: 14px 22px; border-radius: 16px; color: #fff; font-weight: 800; transition: .3s; box-shadow: var(--shadow); }
.w-toast.show { opacity: 1; transform: translate(-50%, 0); } .w-toast.ok { background: var(--ok); } .w-toast.bad { background: var(--bad); }
.w-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 18px 24px; color: var(--muted); border-top: 1px solid var(--line); font-size: 14px; }
.w-foot a { color: var(--muted); }

/* главная */
.hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; align-items: center; padding: 30px 0 10px; }
.hero h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.05; background: linear-gradient(135deg, #6c4cf5, #ff5a8a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { font-size: 20px; color: var(--muted); line-height: 1.45; margin: 16px 0 24px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-art { position: relative; height: 340px; }
.hero-art .bubble { position: absolute; display: grid; place-items: center; border-radius: 30px; box-shadow: var(--shadow); font-size: 64px; animation: float 4s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin: 30px 0; }
.stat { background: #fff; border-radius: 20px; box-shadow: var(--shadow); padding: 18px; text-align: center; }
.stat b { display: block; font-size: 36px; color: var(--brand); } .stat span { color: var(--muted); font-weight: 700; }
.sec { margin-top: 56px; } .sec > h2 { font-size: 34px; text-align: center; margin-bottom: 8px; } .sec > p.sub { text-align: center; color: var(--muted); font-size: 18px; margin: 0 0 24px; }
.feats { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.feat { background: #fff; border-radius: 22px; box-shadow: var(--shadow); padding: 22px; }
.feat .ic { font-size: 40px; } .feat h3 { margin: 10px 0 6px; font-size: 21px; } .feat p { margin: 0; color: var(--muted); line-height: 1.45; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; counter-reset: st; }
.step { background: #fff; border-radius: 22px; padding: 22px 22px 22px 70px; position: relative; box-shadow: var(--shadow); font-size: 18px; font-weight: 800; }
.step::before { counter-increment: st; content: counter(st); position: absolute; left: 18px; top: 18px; width: 38px; height: 38px; border-radius: 12px; background: var(--brand); color: #fff; display: grid; place-items: center; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.gcard { background: #fff; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); position: relative; }
.gcard .cv { height: 96px; display: grid; place-items: center; font-size: 46px; background: linear-gradient(135deg, var(--c1), var(--c2)); }
.gcard .nm { padding: 10px 12px 12px; font-weight: 800; font-size: 15px; }
.gcard .tag { position: absolute; top: 8px; left: 8px; background: #fff; border-radius: 999px; padding: 2px 9px; font-size: 12px; font-weight: 800; }
.gcard .tag.free { color: var(--ok); } .gcard .tag.prem { color: #b07800; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.plan { background: #fff; border-radius: 24px; box-shadow: var(--shadow); padding: 24px; text-align: center; border: 3px solid transparent; position: relative; }
.plan.best { border-color: var(--gold); }
.plan .best-tag { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--gold); color: #4a3200; border-radius: 999px; padding: 3px 12px; font-size: 13px; font-weight: 800; }
.plan h3 { font-size: 24px; } .plan .price { font-size: 40px; font-weight: 800; color: var(--brand); margin: 12px 0 2px; } .plan .per { color: var(--muted); margin-bottom: 16px; }
.packs { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.pack { background: #fff7d6; border: 2px solid #ffe08a; border-radius: 18px; padding: 14px 18px; text-align: center; min-width: 150px; }
.pack b { font-size: 24px; display: block; } .pack small { color: #8a6a00; font-weight: 800; }
.faq details { background: #fff; border-radius: 18px; box-shadow: var(--shadow); padding: 16px 20px; margin-bottom: 10px; }
.faq summary { font-weight: 800; font-size: 18px; cursor: pointer; } .faq p { color: var(--muted); line-height: 1.5; margin: 10px 0 0; }

/* вход */
.auth-wrap { max-width: 460px; margin: 30px auto; }
.auth-wrap h1 { font-size: 30px; margin-bottom: 6px; } .auth-wrap .hint { color: var(--muted); margin: 0 0 6px; }
.auth-links { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 16px; font-weight: 700; }

/* профиль */
.prof { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.prof .full { grid-column: 1 / -1; }
.bal { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.bal .big { font-size: 42px; font-weight: 800; }
.prem-on { color: #b07800; font-weight: 800; font-size: 20px; } .prem-off { color: var(--muted); font-weight: 800; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; } .row .w-in { flex: 1; min-width: 160px; }
.ach { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.ach div { text-align: center; padding: 12px 8px; border-radius: 16px; background: #faf8ff; font-weight: 800; font-size: 14px; }
.ach div span { display: block; font-size: 34px; } .ach div.off { opacity: .35; filter: grayscale(1); }
.tbl { width: 100%; border-collapse: collapse; } .tbl th, .tbl td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); }
.tbl th { color: var(--muted); font-size: 14px; } .tbl tr.me td { background: #fff7d6; font-weight: 800; }
.tabs { display: flex; gap: 6px; margin-bottom: 10px; }
.tabs button { border: 2px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 14px; font: inherit; font-weight: 800; cursor: pointer; }
.tabs button.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.minis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; } .minis div { background: #faf8ff; border-radius: 14px; padding: 12px; text-align: center; } .minis b { display: block; font-size: 26px; color: var(--brand); }
.legal { max-width: 860px; margin: 0 auto; } .legal h1 { margin-bottom: 14px; } .legal p, .legal li { line-height: 1.6; color: #4a4566; }

@media (max-width: 860px) {
  .hero, .prof { grid-template-columns: 1fr; } .hero-art { height: 220px; } .w-nav { order: 3; width: 100%; } .minis { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- иконки и новые блоки (v2) ---------- */
.ic { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.2em; flex: none; }
.w-logo .ic { width: 30px; height: 30px; color: #fff; }
.w-nav a { display: inline-flex; align-items: center; gap: 6px; }
.w-coins { display: inline-flex; align-items: center; gap: 6px; }
.w-prem { color: #e0a000; display: inline-flex; } .w-prem .ic { width: 26px; height: 26px; }
.hero-tag { display: inline-flex; align-items: center; gap: 6px; background: #fff; color: var(--brand); border-radius: 999px; padding: 6px 14px; font-weight: 800; box-shadow: var(--shadow); margin-bottom: 14px; }
.carousel { position: relative; }
.car-frame { background: #fff; border-radius: 22px; box-shadow: 0 24px 60px rgba(60, 40, 120, .22); overflow: hidden; border: 1px solid var(--line); }
.car-bar { height: 30px; background: #f4f1ff; display: flex; align-items: center; gap: 6px; padding: 0 12px; }
.car-bar i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; } .car-bar i:nth-child(2) { background: #febc2e; } .car-bar i:nth-child(3) { background: #28c840; }
.car-track { position: relative; aspect-ratio: 1280 / 676; }
.car-slide { position: absolute; inset: 0; margin: 0; opacity: 0; transform: scale(1.02); transition: opacity .6s, transform .6s; }
.car-slide.on { opacity: 1; transform: none; }
.car-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.car-cap { text-align: center; font-weight: 800; margin: 14px 0 6px; min-height: 24px; }
.car-nav { display: flex; align-items: center; justify-content: center; gap: 12px; }
.car-btn { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--line); background: #fff; color: var(--brand); display: grid; place-items: center; cursor: pointer; }
.car-btn:hover { border-color: var(--brand); }
.car-dots { display: flex; gap: 6px; } .car-dots button { width: 9px; height: 9px; border-radius: 999px; border: 0; background: #d9d2f2; cursor: pointer; padding: 0; transition: .3s; }
.car-dots button.on { width: 26px; background: var(--brand); }
.stat { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.stat-ic { width: 44px; height: 44px; border-radius: 14px; background: #f1edff; color: var(--brand); display: grid; place-items: center; margin-bottom: 4px; } .stat-ic .ic { width: 24px; height: 24px; }
.feat-ic { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; color: #fff; background: var(--fc); box-shadow: 0 8px 18px color-mix(in srgb, var(--fc) 35%, transparent); }
.feat-ic .ic { width: 28px; height: 28px; }
.subjects { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.subj { display: flex; flex-direction: column; gap: 6px; background: #fff; border-radius: 20px; padding: 18px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); border-top: 4px solid var(--sc); transition: transform .15s; }
.subj:hover { transform: translateY(-3px); }
.subj-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: var(--sc); background: color-mix(in srgb, var(--sc) 12%, #fff); } .subj-ic .ic { width: 26px; height: 26px; }
.subj b { font-size: 17px; } .subj small { color: var(--muted); font-weight: 700; }
.plan-ic { color: #e0a000; } .plan-ic .ic { width: 34px; height: 34px; }
.plan .price { display: flex; align-items: center; justify-content: center; gap: 8px; } .plan .price .ic { width: 34px; height: 34px; }
.best-tag { display: inline-flex; } .best-tag .ic { fill: #4a3200; width: 16px; height: 16px; }
.packs-h { text-align: center; margin: 30px 0 12px; }
.pack b { display: flex; align-items: center; justify-content: center; gap: 6px; } .pack .ic { width: 24px; height: 24px; }
.contact { display: grid; grid-template-columns: 1fr 1.4fr; gap: 18px; align-items: start; }
.contact-cards { display: flex; flex-direction: column; gap: 12px; }
.contact-cards:empty { display: none; }
.cc { display: flex; align-items: center; gap: 14px; background: #fff; border-radius: 20px; padding: 16px; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); }
.cc-ic { width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; color: #fff; background: var(--cc); } .cc-ic .ic { width: 26px; height: 26px; }
.cc small { display: block; color: var(--muted); font-weight: 700; } .cc b { font-size: 17px; }
.contact-form { display: flex; flex-direction: column; gap: 10px; }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
textarea.w-in { resize: vertical; min-height: 110px; font-family: inherit; }
.w-btn .ic { width: 1.2em; height: 1.2em; }
.ach div .ic { width: 34px; height: 34px; display: block; margin: 0 auto 4px; color: var(--brand); }
@media (max-width: 860px) { .contact, .cf-row { grid-template-columns: 1fr; } }

.a-h { display: flex; align-items: center; gap: 10px; } .a-h .ic { color: var(--brand); width: 32px; height: 32px; }
.w-msg.bad.warn, .w-msg.warn { background: #fff7d6; color: #7a5a00; }

.w-card h2 { display: flex; align-items: center; gap: 8px; } .w-card h2 .ic { color: var(--brand); }
.prem-on { display: inline-flex; align-items: center; gap: 6px; } .bal .big { display: inline-flex; align-items: center; }
.place { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #f1edff; color: var(--brand); font-weight: 800; font-size: 14px; }
.place.p1 { background: linear-gradient(135deg, #ffe27a, #f5b400); color: #5a3d00; } .place.p2 { background: linear-gradient(135deg, #eef1f6, #b9c2cf); color: #3d4655; } .place.p3 { background: linear-gradient(135deg, #ffd2b0, #d8874c); color: #5a2d10; }
.w-lbl { display: flex; align-items: center; gap: 6px; }

.feats { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.contact.solo { grid-template-columns: minmax(0, 720px); justify-content: center; } .contact.solo .contact-cards { display: none; }

/* ---------- телефон ---------- */
@media (max-width: 700px) {
  .w-top { position: relative; padding: 10px 12px; gap: 8px 10px; }
  .w-brand small { display: none; } .w-brand b { font-size: 17px; }
  .w-logo { width: 38px; height: 38px; border-radius: 12px; } .w-logo .ic { width: 24px; height: 24px; }
  .w-right { margin-left: auto; gap: 6px; }
  .w-right .w-btn { padding: 7px 10px; font-size: 14px; border-radius: 12px; }
  .w-langs button { padding: 4px 7px; font-size: 12px; }
  .w-nav { order: 3; width: 100%; overflow-x: auto; justify-content: space-between; gap: 2px; scrollbar-width: none; }
  .w-nav a { padding: 6px 8px; font-size: 14px; white-space: nowrap; }
  main.w-main { padding: 14px 14px 40px; }
  .hero { gap: 18px; padding-top: 6px; } .hero p { font-size: 16px; margin: 10px 0 16px; }
  .hero-cta .w-btn.big { width: 100%; font-size: 18px; padding: 13px 18px; }
  .car-cap { font-size: 14px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 20px 0; }
  .stat { padding: 12px; } .stat b { font-size: 28px; } .stat span { font-size: 13px; }
  .sec { margin-top: 36px; } .sec > h2 { font-size: 26px; } .sec > p.sub { font-size: 15px; margin-bottom: 16px; }
  .feats { grid-template-columns: 1fr; gap: 10px; } .feat { padding: 16px; display: grid; grid-template-columns: 50px 1fr; gap: 0 12px; align-items: center; }
  .feat .feat-ic { width: 46px; height: 46px; border-radius: 14px; grid-row: span 2; } .feat h3 { margin: 0; font-size: 18px; } .feat p { font-size: 14px; }
  .steps { gap: 10px; } .step { font-size: 16px; padding: 16px 16px 16px 62px; }
  .subjects { grid-template-columns: repeat(2, 1fr); gap: 10px; } .subj { padding: 14px; } .subj b { font-size: 15px; }
  .plans { grid-template-columns: repeat(2, 1fr); gap: 10px; } .plan { padding: 16px 10px; } .plan h3 { font-size: 17px; }
  .plan .price { font-size: 26px; } .plan .price .ic { width: 24px; height: 24px; } .plan .per { font-size: 12px; } .plan .w-btn { padding: 9px 10px; font-size: 14px; }
  .pack { min-width: 0; flex: 1 1 40%; padding: 12px; }
  .faq summary { font-size: 16px; }
  .cc { padding: 12px; } .cc b { font-size: 15px; }
  .w-card { padding: 16px; border-radius: 18px; }
  .prof { gap: 12px; } .minis { grid-template-columns: repeat(2, 1fr); }
  .tbl th, .tbl td { padding: 7px 6px; font-size: 13px; }
  .w-foot { flex-direction: column; text-align: center; padding: 14px; }
  .w-cap-img svg { width: 150px; height: auto; }
}
@media (max-width: 700px) { .w-nav { flex: 1 1 100%; } }

/* ===== живой логотип Зеҳнак ===== */
.w-logo { width: 52px; height: 58px; border-radius: 0; background: none; box-shadow: none; display: block; overflow: visible; }
.w-logo .zk { width: 52px; height: 58px; }
.zk-float { position: fixed; right: 14px; bottom: 14px; z-index: 40; width: 64px; height: 72px; border-radius: 50%; display: block; transform: translateY(140%); transition: transform .45s cubic-bezier(.4, 1.5, .5, 1); }
.zk-float.on { transform: none; }
.zk-float .zk { width: 64px; height: 72px; filter: drop-shadow(0 6px 10px rgba(60, 40, 120, .25)); }
/* аватарка и письма */
.w-me { gap: 8px; padding: 6px 14px 6px 6px; }
.w-ava { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex: none; display: inline-grid; place-items: center; }
.w-ava.none { background: linear-gradient(135deg, var(--brand2), var(--brand)); color: #fff; } .w-ava.none .ic { width: 18px; height: 18px; }
.w-mail { position: relative; border: 0; background: #fff; border-radius: 12px; width: 42px; height: 42px; display: grid; place-items: center; cursor: pointer; color: var(--brand); box-shadow: 0 4px 0 #ddd5f8; animation: w-ring 1.6s ease-in-out infinite; }
.w-mail .ic { width: 22px; height: 22px; } .w-mail i { position: absolute; top: -6px; right: -6px; background: var(--bad); color: #fff; font-style: normal; font-size: 12px; font-weight: 900; border-radius: 10px; padding: 1px 6px; }
@keyframes w-ring { 0%, 70%, 100% { transform: none; } 75% { transform: rotate(-12deg); } 85% { transform: rotate(12deg); } 95% { transform: rotate(-6deg); } }
.w-modal { position: fixed; inset: 0; z-index: 80; background: rgba(30, 20, 60, .45); display: grid; place-items: center; padding: 16px; animation: w-fade .2s; }
@keyframes w-fade { from { opacity: 0; } }
.w-letter { width: min(560px, 100%); max-height: 86vh; overflow: auto; animation: w-up .35s cubic-bezier(.3, 1.4, .5, 1); }
@keyframes w-up { from { transform: translateY(30px) scale(.95); opacity: 0; } }
.w-letter-top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; } .w-letter-top > div { flex: 1; } .w-letter-top small { display: block; color: var(--muted); }
.w-letter-ic { width: 46px; height: 46px; border-radius: 14px; background: linear-gradient(135deg, #ffd23f, #f5a400); color: #4a3200; display: grid; place-items: center; } .w-letter-ic .ic { width: 26px; height: 26px; }
.w-letter-re { color: var(--muted); margin: 0 0 8px; font-size: 14px; }
.w-letter-text { white-space: pre-wrap; background: #faf8ff; border-radius: 14px; padding: 14px 16px; line-height: 1.5; }
/* вход: соцсети и сова */
.auth-owl { display: flex; justify-content: center; margin: -6px 0 6px; }
.auth-owl .zk { width: 110px; height: 124px; }
.auth-or { display: flex; align-items: center; gap: 10px; color: var(--muted); margin: 16px 0 10px; font-size: 14px; } .auth-or::before, .auth-or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.soc { width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; border: 2px solid var(--line); background: #fff; color: var(--ink); border-radius: 14px; padding: 11px 16px; font: inherit; font-weight: 800; cursor: pointer; margin-top: 10px; text-decoration: none; transition: .15s; }
.soc:hover { border-color: #cfc4f5; transform: translateY(-1px); } .soc svg { width: 22px; height: 22px; flex: none; }
.soc.tg { background: #2aabee; border-color: #2aabee; color: #fff; } .soc.tg:hover { background: #229ed9; }
.soc[disabled] { opacity: .5; cursor: not-allowed; }
.tg-wait { text-align: center; padding: 8px 0; } .tg-wait .spin { width: 42px; height: 42px; border: 4px solid #d6eefc; border-top-color: #2aabee; border-radius: 50%; margin: 10px auto; animation: w-spin 1s linear infinite; }
@keyframes w-spin { to { transform: rotate(360deg); } }
/* профиль: аватарка */
.p-ava { display: flex; align-items: center; gap: 14px; margin: 6px 0 4px; } .p-ava .w-ava { width: 72px; height: 72px; } .p-ava .w-ava.none .ic { width: 38px; height: 38px; }
.p-links { display: grid; gap: 8px; margin-top: 8px; } .p-links > div { display: flex; align-items: center; gap: 10px; justify-content: space-between; background: #faf8ff; border-radius: 12px; padding: 8px 12px; flex-wrap: wrap; }
@media (max-width: 700px) {
  .w-logo { width: 42px; height: 48px; } .w-logo .zk { width: 42px; height: 48px; }
  .w-me span { display: none; } .w-me { padding: 5px; }
}
/* устройства и сеансы */
.dev-modal { position: relative; width: min(560px, 100%); max-height: 88vh; overflow: auto; background: #fff; border-radius: 24px; padding: 22px 22px 18px; box-shadow: var(--shadow); animation: w-up .35s cubic-bezier(.3, 1.4, .5, 1); }
.dev-modal h2 { margin: 0 0 6px; } .dev-modal p { color: var(--muted); margin: 0 0 14px; }
.w-x { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: #f1eefc; cursor: pointer; font-size: 16px; }
.dev-list { display: flex; flex-direction: column; gap: 10px; }
.dev-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: #faf8ff; border: 2px solid #ece7fb; }
.dev-row.cur { border-color: #a6e8c9; background: #f0fbf5; }
.dev-row > div { flex: 1; min-width: 0; } .dev-row small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; } .dev-row em { color: #178a56; font-style: normal; font-weight: 800; }
.dev-ic { font-size: 28px; font-family: var(--emoji, sans-serif); }

/* кнопка «Для Android» на главной */
.w-btn.android { background: linear-gradient(135deg, #3ddc84, #1fa463); color: #fff; box-shadow: 0 6px 0 #168a52; }
.w-btn.android:hover { filter: brightness(1.06); }

/* вкладки способов входа и ввод кода */
.auth-tabs { display: flex; gap: 6px; background: #f1edff; border-radius: 14px; padding: 4px; margin: 10px 0 4px; }
.auth-tabs button { flex: 1; border: 0; background: transparent; border-radius: 11px; padding: 10px; font: inherit; font-weight: 800; color: var(--muted); cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; }
.auth-tabs button.on { background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(80,60,160,.15); }
.ph-wrap { display: flex; align-items: stretch; border: 2px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.ph-wrap:focus-within { border-color: #8b6cff; }
.ph-wrap span { padding: 0 12px; display: flex; align-items: center; background: #f6f3ff; font-weight: 800; color: var(--muted); }
.ph-wrap input { border: 0 !important; outline: none; flex: 1; min-width: 0; box-shadow: none !important; }
.code-in { font-size: 28px !important; letter-spacing: 10px; text-align: center; font-weight: 800; font-family: Consolas, monospace; }
.auth-sub { color: var(--muted); font-size: 14px; margin: 8px 0 0; }
.auth-sub button { border: 0; background: none; color: #6c4cf5; font: inherit; font-weight: 800; cursor: pointer; padding: 0; }
.auth-sub button[disabled] { color: var(--muted); cursor: default; }
.sms-test { background: #fff7d6; color: #7a5a00; border-radius: 12px; padding: 8px 12px; margin-top: 10px; font-weight: 700; font-size: 14px; }
.pay-req { white-space: pre-wrap; background: #f6f3ff; border: 2px dashed #cfc4f5; border-radius: 14px; padding: 14px 16px; font: 700 17px/1.5 Consolas, monospace; margin: 10px 0; }

/* профиль: шапка, меню разделов, активность, предметы */
.p-hero { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; background: linear-gradient(135deg, #f3eeff, #fff7e6); }
.p-hero .w-ava { width: 84px; height: 84px; flex: none; }
.p-hero-t { flex: 1; min-width: 220px; } .p-hero-t h1 { font-size: 28px; margin: 0; } .p-hero-t p { margin: 2px 0 8px; color: var(--muted); }
.p-chips { display: flex; gap: 8px; flex-wrap: wrap; } .p-chips span { display: inline-flex; align-items: center; gap: 6px; background: #fff; border-radius: 999px; padding: 6px 12px; font-size: 14px; box-shadow: 0 2px 8px rgba(80,60,160,.08); }
.p-chips span.gold { background: #fff3c4; } .p-chips span.fire { background: #ffe8dc; } .p-chips .ic { width: 18px; height: 18px; }
.p-hero-b { display: flex; gap: 10px; flex-wrap: wrap; }
.p-nav { position: sticky; top: 8px; z-index: 5; display: flex; gap: 6px; overflow-x: auto; padding: 6px; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-radius: 16px; box-shadow: 0 4px 16px rgba(80,60,160,.1); scrollbar-width: none; }
.p-nav::-webkit-scrollbar { display: none; }
.p-nav a { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 11px; font-weight: 800; font-size: 14px; color: var(--muted); text-decoration: none; white-space: nowrap; }
.p-nav a .ic { width: 18px; height: 18px; } .p-nav a:hover { background: #f4f1ff; color: var(--ink); } .p-nav a.on { background: #6c4cf5; color: #fff; }
.prof > [id] { scroll-margin-top: var(--pnav, 150px); }
html { scroll-behavior: smooth; }
.p-days { display: grid; grid-template-columns: repeat(14, 1fr); gap: 4px; height: 90px; align-items: end; }
.p-days div { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.p-days i { display: block; width: 100%; min-height: 3px; border-radius: 6px 6px 2px 2px; background: linear-gradient(#8b6cff, #6c4cf5); }
.p-days small { font-size: 11px; color: var(--muted); margin-top: 3px; }
.p-subj { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px 16px; }
.p-subj > div { display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 2px 8px; }
.p-subj .bar { grid-column: 2 / 3; height: 8px; border-radius: 4px; background: #eee9fb; overflow: hidden; } .p-subj .bar i { display: block; height: 100%; border-radius: 4px; }
.p-subj small { grid-column: 3; grid-row: 1 / 3; color: var(--muted); font-size: 12px; text-align: right; } .p-subj b { font-size: 14px; }
.p-subj span { grid-row: 1 / 3; } .p-subj span .ic { width: 22px; height: 22px; }
@media (max-width: 760px) { .p-hero { padding: 16px; } .p-hero .w-ava { width: 64px; height: 64px; } .p-hero-t h1 { font-size: 22px; } }

/* наклейки в профиле */
.stk-count { margin-left: auto; background: #fff3bf; color: #e67700; border-radius: 999px; padding: 3px 12px; font-size: 15px; }
.stk-bar { height: 10px; border-radius: 6px; background: #eee9fb; overflow: hidden; margin: 10px 0 16px; } .stk-bar i { display: block; height: 100%; background: linear-gradient(90deg, #ffd43b, #58cc02); border-radius: 6px; }
.stk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 12px; }
.stk-card { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 8px; border-radius: 18px; border: 2px solid #f1edff; background: #fcfbff; cursor: pointer; font: inherit; color: var(--ink); text-align: center; transition: transform .15s; }
.stk-card svg { width: 96px; } .stk-card b { font-size: 14px; line-height: 1.2; } .stk-card small { font-size: 12px; color: var(--muted); line-height: 1.25; }
.stk-card.on { background: linear-gradient(170deg, #fffbe6, #fff); border-color: #ffe066; } .stk-card.on svg { animation: stk-wob 3s ease-in-out infinite; }
.stk-card:hover { transform: translateY(-3px); }
.stk-pr { width: 80%; height: 6px; border-radius: 4px; background: #eee9fb; overflow: hidden; margin-top: 2px; } .stk-pr i { display: block; height: 100%; background: #b197fc; }
.stk-num { font-weight: 800; }
@keyframes stk-wob { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
