/* Сайт-витрина KitGen (app/landing.py): тёмная тема с фиолетовым свечением */
@font-face { font-family: "Montserrat"; 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-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+2000-206F, U+20AC, U+2122, U+2212; }

:root {
  --bg: #0b0914; --bg2: #13101f; --card: #171327; --line: rgba(255, 255, 255, .08);
  --text: #f4f1fb; --muted: #a39cb8; --violet: #8b5cf6; --violet2: #6d28d9; --pink: #f472b6;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.lp { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 "Montserrat", -apple-system, "Segoe UI", Arial, sans-serif; overflow-x: hidden; }
.lp a { color: inherit; text-decoration: none; }
.lp img { display: block; max-width: 100%; }
.lp-wrap { width: min(1200px, 100% - 32px); margin: 0 auto; }
.center { text-align: center; }
.lp-muted { color: var(--muted); }
.lp-grad { background: linear-gradient(100deg, #c4b5fd, #a855f7 45%, #f472b6); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* шапка */
.lp-head { position: sticky; top: 0; z-index: 20; background: rgba(11, 9, 20, .72); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.lp-headrow { display: flex; align-items: center; gap: 28px; height: 68px; }
.lp-logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; letter-spacing: -.3px; }
.lp-logo img { border-radius: 9px; }
.lp-nav { display: flex; align-items: center; gap: 26px; margin: 0 auto; font-size: 14px; font-weight: 500; color: #d8d2e8; }
.lp-nav > a:hover, .lp-dropbtn:hover { color: #fff; }
.lp-drop { position: relative; }
.lp-dropbtn { display: inline-flex; align-items: center; gap: 4px; background: none; border: 0; color: inherit; font: inherit; cursor: pointer; padding: 0; }
.lp-dropbtn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .2s; }
.lp-drop.open .lp-dropbtn svg { transform: rotate(180deg); }
.lp-menu { position: absolute; top: calc(100% + 18px); left: 50%; translate: -50% 0; width: 340px; padding: 10px; border-radius: 18px;
  background: #15111f; border: 1px solid var(--line); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .18s; }
.lp-drop.open .lp-menu { opacity: 1; visibility: visible; transform: none; }
.lp-menu a { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 12px; }
.lp-menu a:hover { background: rgba(139, 92, 246, .12); }
.lp-menu i, .lp-ic { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 11px; color: #fff;
  background: linear-gradient(135deg, #a78bfa, #7c3aed 60%, #6d28d9); }
.lp-menu svg, .lp-ic svg { width: 21px; height: 21px; }
.lp-menu b { display: block; font-size: 14px; font-weight: 600; color: #fff; }
.lp-menu small { color: var(--muted); font-size: 12px; }
.lp-burger { display: none; margin-left: auto; width: 40px; height: 40px; border: 0; background: none; cursor: pointer; padding: 10px 8px; }
.lp-burger span { display: block; height: 2px; margin: 4px 0; background: #fff; border-radius: 2px; }

/* кнопки */
.lp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 15px 30px; border-radius: 999px; border: 0;
  font: 600 15px/1 "Montserrat", sans-serif; color: #fff; cursor: pointer;
  background: linear-gradient(120deg, #a78bfa, #7c3aed 55%, #6d28d9); box-shadow: 0 14px 30px -12px rgba(124, 58, 237, .8); transition: transform .15s, filter .15s; }
.lp-btn:hover { transform: translateY(-1px); filter: brightness(1.1); }
.lp-btn.ghost { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .22); box-shadow: none; }
.lp-btn.small { padding: 10px 18px; font-size: 13px; }
.lp-btn.block { width: 100%; }
.lp-link { color: #c4b5fd; font-size: 14px; font-weight: 600; }
.lp-pill { display: inline-block; padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: #e9d5ff;
  background: rgba(139, 92, 246, .16); border: 1px solid rgba(167, 139, 250, .35); margin-bottom: 18px; }
.lp-note { margin: 14px 0 0; font-size: 13px; color: var(--muted); }

/* заголовки */
.lp-h1 { font-size: clamp(38px, 6.4vw, 76px); line-height: 1.05; font-weight: 700; letter-spacing: -1.5px; margin: 0 0 22px; }
.lp-h1.left { text-align: left; font-size: clamp(36px, 5vw, 60px); }
.lp-h2 { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.12; font-weight: 700; letter-spacing: -.8px; margin: 0 0 12px; }
.lp-h2.big { font-size: clamp(34px, 4.6vw, 58px); }
.lp-lead { max-width: 640px; margin: 0 auto 30px; font-size: 18px; color: #cfc8e2; }
.lp-lead.left { margin-left: 0; }
.lp-sub { color: var(--muted); margin: 0 0 34px; font-size: 16px; }
.lp-sec { padding: 70px 0; }
.lp-sec.top { padding-top: 60px; }
.lp-rowhead { display: flex; align-items: end; justify-content: space-between; gap: 20px; }

/* первый экран */
.lp-hero { position: relative; overflow: hidden; padding: 90px 0 40px;
  background: radial-gradient(900px 520px at 50% -10%, rgba(124, 58, 237, .55), transparent 70%),
              radial-gradient(600px 400px at 85% 40%, rgba(236, 72, 153, .18), transparent 70%),
              linear-gradient(180deg, #24124a, var(--bg) 85%); }
.lp-grid-bg { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to right, rgba(255, 255, 255, .05) 1px, transparent 1px) 0 0 / 64px 64px,
              linear-gradient(to bottom, rgba(255, 255, 255, .05) 1px, transparent 1px) 0 0 / 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%); }
.lp-hero-in { position: relative; text-align: center; }
.lp-stage { position: relative; margin-top: 60px; padding: 0 9%; }
.lp-window { position: relative; z-index: 2; border-radius: 18px; overflow: hidden; background: #0f0c18;
  border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 40px 90px -30px rgba(124, 58, 237, .6), 0 0 0 8px rgba(255, 255, 255, .03); }
.lp-window.wide { margin-top: 30px; }
.lp-window.tilt { transform: perspective(1400px) rotateY(-12deg) rotateX(4deg); }
.lp-winbar { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; background: #1a1528; border-bottom: 1px solid var(--line); }
.lp-winbar i { width: 11px; height: 11px; border-radius: 50%; background: #3a3350; }
.lp-winbar i:first-child { background: #f87171; } .lp-winbar i:nth-child(2) { background: #fbbf24; } .lp-winbar i:nth-child(3) { background: #34d399; }
.lp-winbar span { margin-left: 10px; font-size: 12px; color: var(--muted); }
.lp-float { position: absolute; z-index: 3; margin: 0; width: 17%; border-radius: 16px; overflow: hidden;
  border: 3px solid rgba(255, 255, 255, .9); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7); transition: transform .5s cubic-bezier(.22, 1, .36, 1); }
.lp-float img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
.lp-float.f1 { left: 0; top: -40px; rotate: -9deg; }
.lp-float.f2 { left: 2%; top: 46%; rotate: 6deg; width: 15%; }
.lp-float.f3 { right: 0; top: -20px; rotate: 8deg; }
.lp-float.f4 { right: 3%; top: 52%; rotate: -5deg; width: 14%; }

/* карточки */
.lp-cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.lp-cards4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.lp-card { display: block; padding: 26px; border-radius: 22px; background: linear-gradient(180deg, #181429, #120f1e); border: 1px solid var(--line); transition: border-color .2s, transform .2s; }
a.lp-card:hover { border-color: rgba(167, 139, 250, .45); transform: translateY(-3px); }
.lp-card h3 { margin: 14px 0 8px; font-size: 18px; font-weight: 600; }
.lp-cardhead { display: flex; justify-content: space-between; align-items: center; }
.lp-cardhead h3 { margin: 0; }
.lp-arrow { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: rgba(255, 255, 255, .07); color: #c4b5fd; }
.lp-card p { margin: 12px 0 0; color: var(--muted); font-size: 14.5px; }

/* шаги */
.lp-steps { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 26px; align-items: start; margin-bottom: 40px; }
.lp-step h3 { margin: 4px 0 8px; font-size: 18px; text-transform: uppercase; letter-spacing: .3px; }
.lp-step p { color: var(--muted); margin: 0 0 18px; font-size: 14.5px; }
.lp-num { color: #a78bfa; font-weight: 700; font-size: 14px; }
.lp-phone { width: 230px; max-width: 100%; margin: 0 auto; border-radius: 34px; overflow: hidden; border: 6px solid #241e36; box-shadow: 0 30px 60px -25px rgba(124, 58, 237, .6); }
.lp-phone.big { width: 300px; }
.lp-mosaic { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 18px; }
.lp-mosaic img { aspect-ratio: 3 / 4; object-fit: cover; border-radius: 12px; }
.lp-result { border-radius: 22px; overflow: hidden; }
.lp-result img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }

/* тренды и галерея */
.lp-trends { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.lp-trend { border-radius: 22px; overflow: hidden; background: var(--card); border: 1px solid var(--line); }
.lp-trend img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; transition: transform .5s; }
.lp-trend:hover img { transform: scale(1.04); }
.lp-trend div { padding: 16px 18px 20px; }
.lp-trend p { margin: 6px 0 0; color: var(--muted); font-size: 13.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lp-masonry { columns: 4 240px; column-gap: 14px; margin-bottom: 36px; }
.lp-tile { position: relative; display: block; break-inside: avoid; margin-bottom: 14px; border-radius: 18px; overflow: hidden; background: var(--card); }
.lp-tile img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .5s; }
.lp-tile.tall img { aspect-ratio: 2 / 3; }
.lp-tile:hover img { transform: scale(1.05); }
.lp-tag { position: absolute; left: 10px; right: 10px; bottom: 10px; padding: 8px 12px; border-radius: 12px; font-size: 13px; font-weight: 600;
  background: rgba(11, 9, 20, .62); backdrop-filter: blur(8px); }
.lp-fxgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.lp-fxgrid .lp-tile { margin: 0; }
.lp-fxgrid .lp-tile[hidden] { display: none; }
.lp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.lp-chips button { padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: #ddd6ef; font: 500 13.5px "Montserrat", sans-serif; cursor: pointer; }
.lp-chips button small { color: var(--muted); margin-left: 4px; }
.lp-chips button.on { background: linear-gradient(120deg, #8b5cf6, #6d28d9); color: #fff; border-color: transparent; }
.lp-chips button.on small { color: #e9d5ff; }

/* меняющееся слово */
.lp-rotate { position: relative; height: 1.3em; font-size: clamp(26px, 3.4vw, 40px); font-weight: 700; text-align: center; }
.lp-rotate span { position: absolute; inset: 0; opacity: 0; transform: translateY(40%); transition: opacity .5s, transform .5s; color: #c4b5fd; }
.lp-rotate span.on { opacity: 1; transform: none; }
.lp-rotate span.out { opacity: 0; transform: translateY(-40%); }

/* блог */
.lp-post { display: block; border-radius: 22px; overflow: hidden; background: var(--card); border: 1px solid var(--line); transition: transform .2s, border-color .2s; }
.lp-post:hover { transform: translateY(-3px); border-color: rgba(167, 139, 250, .45); }
.lp-postimg img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.lp-postbody { padding: 18px 20px 22px; }
.lp-postbody h3 { margin: 0 0 8px; font-size: 17px; line-height: 1.35; }
.lp-postbody p { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.lp-postbody small { color: #7d7593; }
.lp-article { max-width: 760px; padding: 50px 0 20px; }
.lp-article h1 { margin-top: 18px; }
.lp-article h2 { font-size: 24px; margin: 34px 0 10px; }
.lp-article p, .lp-article li { color: #d3cde4; font-size: 17px; }
.lp-article li { margin-bottom: 6px; }
.lp-cover { width: 100%; max-height: 440px; object-fit: cover; border-radius: 22px; margin: 22px 0 10px; }
.lp-cta { margin: 36px 0 10px; }

/* бот и финал */
.lp-bot { padding: 90px 0; background: radial-gradient(700px 300px at 50% 0, rgba(124, 58, 237, .35), transparent 70%), var(--bg2);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lp-bot .lp-sub { max-width: 560px; margin-left: auto; margin-right: auto; }
.lp-final { padding: 90px 0; background: radial-gradient(800px 400px at 20% 50%, rgba(124, 58, 237, .28), transparent 70%); }
.lp-finalrow { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; }

/* страница функции */
.lp-fhero { position: relative; overflow: hidden; padding: 80px 0 60px;
  background: radial-gradient(800px 500px at 20% 0, rgba(124, 58, 237, .45), transparent 70%), linear-gradient(180deg, #1c1036, var(--bg) 90%); }
.lp-fheroin { position: relative; display: grid; grid-template-columns: 1fr 1.05fr; gap: 50px; align-items: center; }
.lp-howto { list-style: none; padding: 0; margin: 0 auto; max-width: 760px; display: grid; gap: 14px; }
.lp-howto li { display: flex; gap: 18px; align-items: flex-start; padding: 20px 22px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); }
.lp-howto li > span { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; font-weight: 700; background: linear-gradient(135deg, #a78bfa, #6d28d9); }
.lp-howto h3 { margin: 0 0 4px; font-size: 17px; }
.lp-howto p { margin: 0; color: var(--muted); font-size: 14.5px; }
.lp-fan { position: relative; height: 380px; }
.lp-fan img { position: absolute; top: 20px; left: calc(10% + var(--i) * 26%); width: 44%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 18px;
  border: 3px solid #fff; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7); rotate: calc(-8deg + var(--i) * 8deg); }

/* тарифы */
.lp-plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 0 0 70px; }
.lp-plans.three { grid-template-columns: repeat(3, 1fr); max-width: 900px; margin-left: auto; margin-right: auto; }
.lp-plan { position: relative; padding: 26px 22px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); }
.lp-plan.best { border-color: rgba(167, 139, 250, .7); box-shadow: 0 30px 60px -30px rgba(124, 58, 237, .8); }
.lp-plan h3 { margin: 0 0 10px; font-size: 18px; }
.lp-price { font-size: 38px; font-weight: 700; letter-spacing: -1px; }
.lp-price small { font-size: 15px; color: var(--muted); font-weight: 500; }
.lp-plan .lp-muted { margin: 4px 0 18px; }
.lp-plan ul { margin: 8px 0 0; padding-left: 18px; color: #d3cde4; font-size: 14px; }
.lp-small { margin: 18px 0 0; font-size: 13px; color: var(--muted); }
.lp-flag { position: absolute; top: -12px; left: 50%; translate: -50% 0; padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; background: linear-gradient(120deg, #a78bfa, #7c3aed); }
.lp-bonus { position: absolute; top: 22px; right: 18px; padding: 4px 9px; border-radius: 8px; font-size: 12px; font-weight: 700; color: #fde68a; background: rgba(253, 230, 138, .12); }
.lp-pricelist { max-width: 640px; margin: 0 auto; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); }
.lp-pricelist div { display: flex; justify-content: space-between; gap: 16px; padding: 15px 20px; background: var(--card); }
.lp-pricelist div + div { border-top: 1px solid var(--line); }
.lp-pricelist span { color: #d3cde4; }

/* подвал */
.lp-foot { padding: 60px 0 30px; border-top: 1px solid var(--line); background: #08070f; }
.lp-footgrid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.lp-foot h4 { margin: 4px 0 14px; font-size: 14px; }
.lp-foot a:not(.lp-logo) { display: block; margin-bottom: 9px; font-size: 14px; color: var(--muted); }
.lp-foot a:hover { color: #fff; }
.lp-foot p { max-width: 340px; font-size: 14px; }
.lp-copy { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 12.5px; color: #746d88; }
.lp-copy a { display: inline !important; }

/* появление при прокрутке */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.22, 1, .36, 1); }
.js .reveal.in { opacity: 1; transform: none; }

/* планшет и телефон */
@media (max-width: 1000px) {
  .lp-cards4, .lp-plans { grid-template-columns: repeat(2, 1fr); }
  .lp-steps, .lp-finalrow, .lp-fheroin { grid-template-columns: 1fr; }
  .lp-fan { height: 300px; }
}
@media (max-width: 860px) {
  .lp-nav { position: fixed; inset: 68px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; padding: 10px 16px 20px;
    background: #0e0b18; border-bottom: 1px solid var(--line); display: none; }
  .lp-nav.open { display: flex; }
  .lp-nav > a, .lp-dropbtn { padding: 14px 4px; font-size: 16px; border-bottom: 1px solid var(--line); width: 100%; text-align: left; }
  .lp-menu { position: static; translate: none; width: auto; display: none; opacity: 1; visibility: visible; transform: none; box-shadow: none; margin: 6px 0; }
  .lp-drop.open .lp-menu { display: block; }
  .lp-burger { display: block; margin-left: 0; }
  .lp-open { margin-left: auto; }
  .lp-headrow { gap: 10px; }
  .lp-cards3, .lp-trends, .lp-plans.three { grid-template-columns: 1fr; }
  .lp-footgrid { grid-template-columns: 1fr; gap: 26px; }
  .lp-float.f2, .lp-float.f4 { display: none; }
  .lp-float.f1, .lp-float.f3 { width: 26%; top: -30px; }
  .lp-stage { padding: 0; margin-top: 70px; }
  .lp-sec { padding: 50px 0; }
  .lp-hero { padding-top: 60px; }
  .lp-lead { font-size: 16px; }
  .lp-rowhead { flex-direction: column; align-items: start; }
  .lp-window.tilt { transform: none; }
}
@media (max-width: 520px) {
  .lp-cards4, .lp-plans { grid-template-columns: 1fr; }
  .lp-masonry { columns: 2 140px; column-gap: 10px; }
  .lp-tile { margin-bottom: 10px; border-radius: 14px; }
  .lp-fxgrid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .lp-tag { font-size: 11.5px; padding: 6px 8px; left: 6px; right: 6px; bottom: 6px; }
  .lp-logo { font-size: 18px; }
  .lp-open { padding: 9px 12px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .lp-float, .lp-window { transition: none; }
}
/* мостик между кнопкой и меню, чтобы меню не закрывалось, пока мышь идёт вниз */
.lp-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -20px; height: 20px; }
.lp-open { white-space: nowrap; }
@media (max-width: 380px) { .lp-logo { font-size: 16px; gap: 7px; } .lp-logo img { width: 26px; height: 26px; } .lp-open { padding: 8px 10px; font-size: 11.5px; } }

/* «горящая» кнопка на каждом образе */
.lp-go { display: block; margin-top: 7px; padding: 7px 6px; border-radius: 9px; text-align: center; font-size: 12.5px; font-weight: 700; color: #fff;
  background: linear-gradient(120deg, #c026d3, #7c3aed); animation: lpglow 2.2s ease-in-out infinite; }
.lp-go.wide { display: inline-block; margin-top: 12px; padding: 9px 16px; }
.lp-tile:hover .lp-go, .lp-trend:hover .lp-go { filter: brightness(1.15); }
@keyframes lpglow { 0%, 100% { box-shadow: 0 0 10px 0 rgba(192, 38, 211, .55); } 50% { box-shadow: 0 0 22px 4px rgba(192, 38, 211, .95); } }
@media (prefers-reduced-motion: reduce) { .lp-go { animation: none; box-shadow: 0 0 14px rgba(192, 38, 211, .7); } }

/* ===== «Живое» окно студии (landing/_mock.html): всё масштабируется от ширины окна ===== */
.lp-window { container-type: inline-size; }
.mk { display: grid; grid-template-columns: 17cqw 1fr; aspect-ratio: 16 / 10; background: #06070b; color: #fff; font-size: 1.15cqw; line-height: 1.3; overflow: hidden; text-align: left; }
.mk-side { padding: 1.6cqw 1cqw; background: #0a0c13; border-right: 1px solid #282c42; display: grid; align-content: start; gap: .35cqw; }
.mk-logo { display: flex; align-items: center; gap: .7cqw; font-weight: 700; font-size: 1.5cqw; margin: 0 0 1.2cqw .5cqw; }
.mk-logo img { width: 2.2cqw; height: 2.2cqw; border-radius: .6cqw; }
.mk-nav { display: flex; align-items: center; gap: .8cqw; padding: .7cqw .8cqw; border-radius: .8cqw; color: rgba(255, 255, 255, .72); white-space: nowrap; }
.mk-nav svg { width: 1.5cqw; height: 1.5cqw; flex: none; color: rgba(255, 255, 255, .5); }
.mk-nav.on { color: #fff; background: linear-gradient(90deg, rgba(168, 37, 255, .28), rgba(168, 37, 255, .05)); box-shadow: inset .2cqw 0 0 #b44dff; }
.mk-nav.on svg { color: #d8b4fe; }
.mk-main { position: relative; padding: 1.6cqw 2.2cqw; overflow: hidden; background: radial-gradient(60cqw 26cqw at 60% -10%, rgba(168, 37, 255, .22), transparent 70%); }
.mk-top { display: flex; justify-content: flex-end; gap: .7cqw; margin-bottom: 1.2cqw; }
.mk-pill { padding: .65cqw 1.3cqw; border-radius: .9cqw; font-weight: 600; background: linear-gradient(120deg, #b44dff, #7c3aed); white-space: nowrap; }
.mk-pill.ghost { background: #10151f; border: 1px solid #282c42; }
.mk-h { font-size: 1.9cqw; font-weight: 700; margin: 0 0 1cqw; }
.mk-h.big { font-size: 2.6cqw; margin-bottom: .8cqw; }
.mk-create { padding: 1.8cqw 2cqw; margin-bottom: 1.6cqw; border-radius: 1.6cqw; border: 1px solid #282c42; background: radial-gradient(40cqw 16cqw at 10% 0, rgba(168, 37, 255, .3), transparent 70%), #10151f; }
.mk-tabs { display: flex; gap: .5cqw; margin-bottom: .9cqw; }
.mk-tabs span { padding: .55cqw 1.1cqw; border-radius: .8cqw; border: 1px solid #282c42; color: rgba(255, 255, 255, .75); font-weight: 600; }
.mk-tabs span.on { background: #fff; color: #0b0c12; border-color: #fff; }
.mk-input { display: flex; align-items: center; justify-content: space-between; gap: 1cqw; padding: .7cqw .7cqw .7cqw 1.2cqw; border-radius: 1.1cqw; background: #0a0c13; border: 1px solid #282c42; color: rgba(255, 255, 255, .5); }
.mk-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: .9cqw; }
.mk-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: .9cqw; margin-top: 1.4cqw; }
.mk-card { position: relative; aspect-ratio: 3 / 4; border-radius: 1cqw; overflow: hidden; background: #10151f; }
.mk-card img, .mk-card video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mk-card b { position: absolute; left: 0; right: 0; bottom: 0; padding: 2cqw .7cqw .6cqw; font-size: .85cqw; letter-spacing: .04em; text-transform: uppercase; background: linear-gradient(transparent, rgba(0, 0, 0, .85)); }
.mk-card em { position: absolute; top: .5cqw; right: .5cqw; padding: .2cqw .6cqw; border-radius: 9cqw; font-style: normal; font-size: .8cqw; font-weight: 700; color: #1a1400; background: #ffd700; }
.mk-tools { display: grid; grid-template-columns: repeat(4, 1fr); gap: .9cqw; }
.mk-tool { position: relative; display: grid; gap: .5cqw; padding: 1.2cqw; border-radius: 1.2cqw; background: #10151f; border: 1px solid #282c42; }
.mk-tool i { display: grid; place-items: center; width: 3cqw; height: 3cqw; border-radius: .9cqw; background: linear-gradient(135deg, #a78bfa, #7c3aed 60%, #6d28d9); }
.mk-tool svg { width: 1.7cqw; height: 1.7cqw; }
.mk-tool b { font-size: 1.25cqw; }
.mk-tool span { position: absolute; top: 1.1cqw; right: 1.1cqw; padding: .2cqw .7cqw; border-radius: 9cqw; font-size: .85cqw; font-weight: 600; background: rgba(255, 255, 255, .08); color: #e9d5ff; }
.mk svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* телефон с играющим примером */
.lp-phone video { display: block; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; background: #000; }

/* новые блоки главной: живые карточки, семья, до/после, «скоро» */
.lp-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.lp-strip .lp-tile { margin: 0; }
.lp-strip video, .lp-tile video { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: #10151f; }
.lp-badge { position: absolute; top: 10px; right: 10px; padding: 3px 9px; border-radius: 99px; font-style: normal; font-size: 11px; font-weight: 700; color: #fff; background: linear-gradient(120deg, #f43f5e, #c026d3); }
.lp-split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 50px; align-items: center; }
.lp-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lp-duo a { position: relative; border-radius: 18px; overflow: hidden; }
.lp-duo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .5s; }
.lp-duo a:hover img { transform: scale(1.04); }
.lp-duo a:nth-child(even) { translate: 0 26px; }
.lp-duo span { position: absolute; left: 10px; bottom: 10px; padding: 6px 12px; border-radius: 10px; font-size: 12.5px; font-weight: 600; background: rgba(11, 9, 20, .65); backdrop-filter: blur(8px); }
.lp-before { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.lp-before a { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); }
.lp-before img { width: 100%; height: 100%; object-fit: cover; }
.lp-card.soon { opacity: .92; }
.lp-card.soon .lp-ic { background: #221c36; color: #c4b5fd; }
.lp-card h3 em { font-style: normal; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 99px; margin-left: 6px; color: #1a1400; background: #ffd700; vertical-align: middle; }
@media (max-width: 1000px) { .lp-split { grid-template-columns: 1fr; } .lp-strip { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 860px) { .lp-before { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .lp-strip { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
.lp-article ul { padding-left: 22px; }
.lp-article h2 { letter-spacing: -.3px; }

/* ===== Первый экран: окно студии с актуальными работами, карточки по углам его не закрывают ===== */
.lp-stage { padding: 0 13%; margin-top: 70px; }
.lp-float { display: block; width: 15.5%; border-width: 2px; border-radius: 18px; }
.lp-float video, .lp-float img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: #10151f; }
.lp-float em { position: absolute; top: 8px; left: 8px; padding: 3px 9px; border-radius: 99px; font-style: normal; font-size: 11px; font-weight: 700; color: #fff; background: linear-gradient(120deg, #f43f5e, #c026d3); }
.lp-float span { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 10px 9px; font-size: 12px; font-weight: 600; text-align: left; background: linear-gradient(transparent, rgba(0, 0, 0, .8)); }
.lp-float.f1 { left: -1%; top: 3%; rotate: -7deg; width: 15.5%; }
.lp-float.f2 { left: 1%; top: 54%; rotate: 5deg; width: 13.5%; }
.lp-float.f3 { right: -1%; top: 0; rotate: 7deg; width: 15.5%; }
.lp-float.f4 { right: 1%; top: 55%; rotate: -5deg; width: 13.5%; }
.mk-card em.liv { color: #fff; background: linear-gradient(120deg, #f43f5e, #c026d3); }
.mk-grid { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 1100px) {
  /* на средней ширине карточки уходят над окном, чтобы не перекрывать его */
  .lp-stage { padding: 0 3%; margin-top: 150px; }
  .lp-float { width: 17%; }
  .lp-float.f1 { left: 4%; top: -120px; width: 17%; }
  .lp-float.f2 { left: 26%; top: -96px; width: 15%; }
  .lp-float.f3 { right: 4%; top: -120px; width: 17%; }
  .lp-float.f4 { right: 26%; top: -96px; width: 15%; }
}
@media (max-width: 860px) {
  .lp-stage { padding: 0; margin-top: 130px; }
  .lp-float.f2, .lp-float.f4 { display: block; }
  .lp-float.f1 { left: 2%; top: -108px; width: 21%; }
  .lp-float.f2 { left: 27%; top: -88px; width: 19%; }
  .lp-float.f4 { right: 27%; top: -88px; width: 19%; }
  .lp-float.f3 { right: 2%; top: -108px; width: 21%; }
  .lp-float span { display: none; }
  .lp-float em { font-size: 9px; padding: 2px 6px; top: 5px; left: 5px; }
  /* в узком окне боковое меню прячем — работам больше места */
  .mk { grid-template-columns: 1fr; font-size: 2.1cqw; }
  .mk-side { display: none; }
  .mk-main { padding: 2.6cqw 3cqw; }
  .mk-grid { grid-template-columns: repeat(4, 1fr); gap: 1.4cqw; }
  .mk-card { border-radius: 1.8cqw; }
  .mk-card b { font-size: 1.7cqw; padding: 3cqw 1.2cqw 1cqw; }
  .mk-card em { font-size: 1.5cqw; top: .9cqw; right: .9cqw; padding: .3cqw 1cqw; }
  .mk-h { font-size: 3.2cqw; } .mk-h.big { font-size: 4.2cqw; }
  .mk-create { padding: 2.6cqw 3cqw; border-radius: 2.4cqw; }
  .mk-tabs span, .mk-pill { padding: .9cqw 1.8cqw; border-radius: 1.3cqw; }
  .mk-input { padding: 1cqw 1cqw 1cqw 2cqw; border-radius: 1.8cqw; }
  .mk-tools { grid-template-columns: repeat(2, 1fr); gap: 1.4cqw; }
  .mk-tool { padding: 2cqw; border-radius: 2cqw; } .mk-tool i { width: 5cqw; height: 5cqw; border-radius: 1.5cqw; } .mk-tool svg { width: 2.8cqw; height: 2.8cqw; }
  .mk-tool b { font-size: 2.2cqw; } .mk-tool span { font-size: 1.5cqw; top: 1.8cqw; right: 1.8cqw; }
  .mk-row { grid-template-columns: repeat(4, 1fr); gap: 1.4cqw; }
  .mk { aspect-ratio: auto; }
}
@media (max-width: 860px) {
  .lp-float.f1 { left: 3%; width: 20%; } .lp-float.f3 { right: 4%; width: 20%; rotate: 5deg; }
  .lp-float.f2 { left: 28%; width: 18%; } .lp-float.f4 { right: 28%; width: 18%; }
}

/* ===== Проработанные блоки главной: факты, «для кого», три шага, бот, вопросы ===== */
.lp-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 46px; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: var(--line); }
.lp-facts div { padding: 22px 24px; background: linear-gradient(180deg, #171327, #110e1c); }
.lp-facts b { display: block; font-size: clamp(24px, 2.6vw, 34px); font-weight: 700; letter-spacing: -.8px; background: linear-gradient(100deg, #fff, #c4b5fd); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-facts span { display: block; margin-top: 4px; font-size: 13.5px; color: var(--muted); }
.lp-card.media { padding: 0; overflow: hidden; }
.lp-cardmedia { position: relative; aspect-ratio: 16 / 10; background: #10151f; overflow: hidden; }
.lp-cardmedia img, .lp-cardmedia video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; transition: transform .6s; }
.lp-card.media:hover .lp-cardmedia img, .lp-card.media:hover .lp-cardmedia video { transform: scale(1.05); }
.lp-cardmedia::after { content: ""; position: absolute; inset: 50% 0 0; background: linear-gradient(transparent, #181429); }
.lp-cardbody { padding: 6px 24px 24px; }
.lp-steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
.lp-stepcard { display: flex; flex-direction: column; padding: 26px; border-radius: 24px; background: linear-gradient(180deg, #181429, #120f1e); border: 1px solid var(--line); }
.lp-stepcard h3 { margin: 4px 0 8px; font-size: 20px; }
.lp-stepcard p { margin: 0 0 18px; color: var(--muted); font-size: 14.5px; min-height: 44px; }
.lp-stepvis { margin-top: auto; aspect-ratio: 1; border-radius: 18px; overflow: hidden; background: #0b0914; display: grid; }
.lp-stepvis .lp-mosaic { margin: 0; gap: 6px; padding: 6px; height: 100%; grid-template-rows: repeat(3, 1fr); }
.lp-stepvis .lp-mosaic img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; border-radius: 10px; min-height: 0; }
.lp-upload { position: relative; margin: 18px; border-radius: 16px; border: 2px dashed rgba(167, 139, 250, .55); display: grid; place-items: center; overflow: hidden; }
.lp-upload img { width: 62%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 14px; box-shadow: 0 20px 40px -18px #000; rotate: -3deg; }
.lp-upok { position: absolute; bottom: 14px; padding: 7px 14px; border-radius: 99px; font-size: 13px; font-weight: 600; color: #052e1a; background: #4ade80; }
.lp-results { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px; height: 100%; }
.lp-results figure { position: relative; margin: 0; border-radius: 10px; overflow: hidden; min-height: 0; }
.lp-results img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.lp-results figcaption { position: absolute; left: 6px; bottom: 6px; padding: 3px 8px; border-radius: 8px; font-size: 11px; font-weight: 600; background: rgba(11, 9, 20, .7); }
.lp-trend { position: relative; }
.lp-trend video { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.lp-botrow { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; }
.lp-bot .lp-sub { margin-left: 0; }
.lp-chat { justify-self: center; width: min(360px, 100%); padding: 16px; border-radius: 28px; background: #0e1420; border: 1px solid #263048; box-shadow: 0 40px 80px -40px rgba(34, 158, 217, .55); display: grid; gap: 8px; }
.lp-chathead { display: flex; align-items: center; gap: 10px; padding-bottom: 10px; margin-bottom: 4px; border-bottom: 1px solid #1f2940; }
.lp-chathead img { width: 36px; height: 36px; border-radius: 50%; }
.lp-chathead b { display: block; font-size: 14.5px; } .lp-chathead span { font-size: 12px; color: #7f8aa3; }
.lp-msg { max-width: 82%; padding: 9px 13px; border-radius: 16px 16px 16px 5px; font-size: 13.5px; line-height: 1.4; background: #1a2336; justify-self: start; }
.lp-msg.me { justify-self: end; border-radius: 16px 16px 5px 16px; background: #2b5278; }
.lp-msg.pic { padding: 4px; width: 46%; position: relative; }
.lp-msg.pic img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 13px; }
.lp-msg.pic span { display: block; padding: 5px 8px 3px; font-size: 12.5px; }
.lp-chatbtns { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; width: 82%; }
.lp-chatbtns span { padding: 8px 6px; border-radius: 10px; text-align: center; font-size: 12px; background: #1a2336; color: #9cc3ff; }
.lp-faq { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.lp-faq details { border-radius: 18px; background: var(--card); border: 1px solid var(--line); padding: 0 22px; }
.lp-faq details[open] { border-color: rgba(167, 139, 250, .45); }
.lp-faq summary { list-style: none; cursor: pointer; padding: 18px 30px 18px 0; font-weight: 600; font-size: 16.5px; position: relative; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: "+"; position: absolute; right: 0; top: 13px; font-size: 24px; font-weight: 400; color: #c4b5fd; transition: rotate .2s; }
.lp-faq details[open] summary::after { rotate: 45deg; }
.lp-faq p { margin: 0 0 20px; color: #cfc8e2; font-size: 15px; }
@media (max-width: 1000px) { .lp-steps3, .lp-botrow { grid-template-columns: 1fr; } .lp-stepvis { aspect-ratio: 4 / 3; } .lp-facts { grid-template-columns: 1fr 1fr; } .lp-bot { text-align: left; } }
@media (max-width: 520px) { .lp-facts div { padding: 16px; } .lp-stepcard { padding: 20px; } .lp-stepvis { aspect-ratio: 1; } }
.lp-badge.new { background: linear-gradient(120deg, #22c55e, #0ea5e9); }
.lp a.lp-inlink { color: #d8b4fe; text-decoration: underline; text-decoration-color: rgba(216, 180, 254, .5); text-underline-offset: 3px; }
.lp a.lp-inlink:hover { color: #fff; }

.lp-sec.tight { padding-top: 0; margin-top: -30px; }
.lp-strip.six { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 1000px) { .lp-strip.six { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .lp-strip.six { grid-template-columns: repeat(2, 1fr); } }

.lp-cardsrow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.lp-cardsrow a { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); transition: transform .25s; }
.lp-cardsrow a:hover { transform: translateY(-4px) rotate(-1deg); }
.lp-cardsrow img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.lp-example { justify-self: center; width: min(360px, 100%); border-radius: 22px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 40px 90px -30px rgba(124, 58, 237, .6); rotate: 2deg; }
@media (max-width: 860px) { .lp-cardsrow { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
