:root {
  --p950: #16052b; --p900: #1e0838; --p800: #2a0b4e; --p700: #3a1268; --p600: #4b1a85; --p500: #6a32b8; --p100: #efe8f9; --p50: #f7f3fc;
  --yellow: #ffd100; --red: #e3262e; --green: #23a55a; --lime: #9bd13a; --ink: #1d1530; --ink2: #5d5670; --line: #e6e0ef;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: Manrope, system-ui, sans-serif; color: var(--ink); background: #fff; font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
h1, h2, h3 { font-family: Unbounded, sans-serif; line-height: 1.12; letter-spacing: -.01em; }
h2 { font-size: clamp(28px, 4vw, 46px); font-weight: 800; }
h3 { font-size: 19px; font-weight: 700; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
section { padding: 96px 0; position: relative; }
.dark { background: radial-gradient(1100px 700px at 10% -10%, #5a22a0, transparent 60%), linear-gradient(160deg, #320e5e, var(--p900) 70%); color: #fff; }
.soft { background: var(--p50); }
.kick { display: inline-block; font-weight: 800; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--p500); margin-bottom: 14px; }
.dark .kick { color: var(--yellow); }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink2); max-width: 760px; margin-top: 16px; }
.dark .lead { color: rgba(255, 255, 255, .75); }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 22px; border-radius: 14px; font-weight: 800; font-size: 16px; text-decoration: none; border: 0; cursor: pointer; font-family: inherit; }
.btn.y { background: var(--yellow); color: var(--p800); }
.btn.w { background: rgba(255, 255, 255, .12); color: #fff; border: 1.5px solid rgba(255, 255, 255, .25); }
.btn.p { background: var(--p600); color: #fff; }
.btn.o { background: #fff; color: var(--p700); border: 1.5px solid var(--line); }

/* навигация */
.nav { position: sticky; top: 0; z-index: 30; background: rgba(22, 5, 43, .92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: #fff; }
.nav .wrap { display: flex; align-items: center; gap: 22px; height: 62px; }
.nav .lg { width: 110px; flex: none; }
.nav .lg svg { display: block; width: 100%; height: auto; }
.nav nav { display: flex; gap: 18px; overflow-x: auto; scrollbar-width: none; }
.nav nav a { text-decoration: none; font-weight: 700; font-size: 14px; opacity: .78; white-space: nowrap; }
.nav nav a:hover { opacity: 1; }
.nav .btn { margin-left: auto; padding: 9px 16px; font-size: 14px; flex: none; }

/* телевизор с живым экраном */
.tv { position: relative; padding: 12px; border-radius: 18px; background: #0c0316; box-shadow: 0 30px 80px rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(255, 255, 255, .07); }
.scr { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 8px; background: var(--p900); }
.scr iframe { position: absolute; left: 0; top: 0; border: 0; transform-origin: 0 0; pointer-events: none; }
.scr img { width: 100%; height: 100%; object-fit: cover; display: block; }
.scr[data-src] { background: var(--p900) center / cover no-repeat; }
.tv-cap { display: flex; justify-content: space-between; gap: 10px; padding: 10px 4px 0; font-size: 14px; font-weight: 700; color: rgba(255, 255, 255, .7); }
.tv-cap a { color: var(--yellow); text-decoration: none; }

/* обложка */
.hero { padding: 70px 0 90px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; align-items: center; }
.hero .lg { width: 220px; margin-bottom: 26px; }
.hero .lg svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 12px 24px rgba(0, 0, 0, .4)); }
.hero h1 { font-size: clamp(36px, 5.2vw, 64px); font-weight: 900; }
.hero h1 em { font-style: normal; color: var(--yellow); }
.hero .big { margin-top: 18px; font-family: Unbounded, sans-serif; font-weight: 700; font-size: clamp(18px, 2vw, 24px); color: #fff; }
.hero .btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.hero .tv { transform: perspective(1600px) rotateY(-8deg) rotateX(2deg); }
.facts { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 34px; }
.facts b { display: block; font-family: Unbounded, sans-serif; font-size: 30px; color: var(--yellow); }
.facts span { font-size: 14px; color: rgba(255, 255, 255, .7); }

/* возможности */
.feats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 44px; }
.feat { background: #fff; border-radius: 20px; padding: 24px; box-shadow: 0 1px 0 var(--line), 0 10px 30px rgba(42, 11, 78, .06); }
.feat i { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; background: var(--p600); color: var(--yellow); margin-bottom: 16px; }
.feat i svg { width: 26px; height: 26px; }
.feat p { margin-top: 8px; font-size: 15px; color: var(--ink2); }

/* цены по времени */
.time { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 36px; margin-top: 44px; align-items: start; }
.modes { display: grid; gap: 10px; }
.mode { text-align: left; border: 1.5px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .06); color: #fff; border-radius: 16px; padding: 16px 18px; cursor: pointer; font-family: inherit; }
.mode b { display: block; font-family: Unbounded, sans-serif; font-size: 16px; }
.mode span { font-size: 14px; color: rgba(255, 255, 255, .7); }
.mode.on { background: var(--yellow); color: var(--p800); border-color: var(--yellow); }
.mode.on span { color: rgba(42, 11, 78, .75); }

/* как работает */
.flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 16px; align-items: center; margin-top: 44px; }
.node { background: #fff; border-radius: 20px; padding: 24px; box-shadow: 0 1px 0 var(--line), 0 10px 30px rgba(42, 11, 78, .06); height: 100%; }
.node.c { background: var(--p800); color: #fff; }
.node h3 { margin-bottom: 10px; }
.node ul { list-style: none; display: grid; gap: 6px; font-size: 15px; color: var(--ink2); }
.node.c ul { color: rgba(255, 255, 255, .78); }
.node li::before { content: '— '; color: var(--p500); }
.node.c li::before { color: var(--yellow); }
.arr { font-size: 30px; color: var(--p500); font-weight: 800; text-align: center; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 30px; }
.step { display: flex; gap: 14px; align-items: flex-start; }
.step b { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--yellow); color: var(--p800); display: grid; place-items: center; font-family: Unbounded, sans-serif; }

/* демо */
.wall { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 44px; }
.wall .tv:first-child { grid-column: span 2; }
.try { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }

/* кабинет */
.cab { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 36px; margin-top: 44px; align-items: start; }
.browser { border-radius: 14px; overflow: hidden; box-shadow: 0 24px 70px rgba(42, 11, 78, .2); border: 1px solid var(--line); background: #fff; }
.browser .bar { display: flex; gap: 6px; padding: 10px 12px; background: #efeaf6; }
.browser .bar i { width: 11px; height: 11px; border-radius: 50%; background: #d6cde3; }
.browser .scr { border-radius: 0; aspect-ratio: 16 / 10; background: #f4f1f8; }
.ctabs { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; }
.ctabs button { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 13px; font: inherit; font-size: 13px; font-weight: 800; color: var(--ink2); cursor: pointer; }
.ctabs button.on { background: var(--p600); border-color: var(--p600); color: #fff; }
.roles { display: grid; gap: 14px; }
.role { background: #fff; border-radius: 16px; padding: 18px 20px; border: 1.5px solid var(--line); }
.role p { font-size: 15px; color: var(--ink2); margin-top: 6px; }
.role small { display: block; margin-top: 8px; font-size: 13px; color: var(--p500); font-weight: 700; }

/* калькулятор */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; margin-top: 44px; align-items: center; }
.calc label { display: block; margin-bottom: 26px; }
.calc label span { display: flex; justify-content: space-between; font-weight: 800; }
.calc label b { font-family: Unbounded, sans-serif; color: var(--p600); }
.calc input[type=range] { width: 100%; accent-color: #4b1a85; margin-top: 10px; }
.calc small { color: var(--ink2); font-size: 14px; }
.res { background: var(--p800); color: #fff; border-radius: 24px; padding: 32px; }
.res .row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1.5px dashed rgba(255, 255, 255, .15); }
.res .row:last-of-type { border: 0; }
.res b { font-family: Unbounded, sans-serif; white-space: nowrap; }
.res .tot { margin-top: 14px; padding: 18px; border-radius: 16px; background: var(--yellow); color: var(--p800); }
.res .tot b { font-size: 30px; display: block; }


/* Студия и витрина проектов */
[hidden] { display: none !important; }
section[id] { scroll-margin-top: 62px; }
button, input, select, textarea { font: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid #a666df; outline-offset: 4px; }
.dark :focus-visible, .nav :focus-visible, footer :focus-visible { outline-color: #ffe459; }
.skip { position: fixed; z-index: 40; left: 15px; top: 12px; padding: 8px 12px; background: var(--yellow); color: var(--p800); transform: translateY(-150%); }
.skip:focus { transform: none; }
.btn { transition: background .18s ease; text-align: center; justify-content: center; line-height: 1.3; }
.btn.y:hover { background: #ffe056; }
.btn.w:hover { background: #ffffff27; }
.btn.p:hover { background: var(--p700); }
.identity { display: inline-flex; gap: 10px; align-items: center; font-family: Unbounded, sans-serif; font-weight: 800; font-size: 15px; text-decoration: none; white-space: nowrap; }
.brand-icon { flex: none; position: relative; width: 29px; height: 21px; border: 2px solid var(--yellow); border-radius: 5px; margin: 0 0 4px; }
.brand-icon::before { position: absolute; content: ""; width: 5px; height: 5px; right: 3px; bottom: 3px; border-radius: 50%; background: var(--yellow); }
.brand-icon::after { position: absolute; content: ""; width: 11px; height: 2px; left: 7px; bottom: -6px; border-radius: 3px; background: var(--yellow); }
.brand-domain { color: var(--yellow); }

.hero { padding: 83px 0 91px; }
.hero .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr); gap: clamp(28px, 4vw, 65px); }
.hero h1 { font-size: clamp(33px, 4.7vw, 62px); }
.hero h1 em { display: block; }
.hero .lead { color: #efe2fc; }
.hero-visual { position: relative; min-width: 0; padding-right: 12px; padding-bottom: 63px; }
.hero .hero-tv { z-index: 1; }
.hero .hero-inset { position: absolute; z-index: 2; right: 0; bottom: 1px; width: 47%; transform: perspective(1100px) rotateY(-8deg) rotate(-3deg); padding: 6px; }
.hero-tv .tv-cap { padding-right: 48%; }
.hero-tv .tv-cap span:last-child { display: none; }
.hero-details { display: flex; flex-wrap: wrap; gap: 9px 17px; margin-top: 24px; list-style: none; font-size: 14px; font-weight: 750; color: #efdefd; }
.hero-details li::before { content: '•'; color: var(--yellow); margin-right: 7px; }
.hero-details a { color: var(--yellow); text-underline-offset: 3px; }
@media (prefers-reduced-motion: no-preference) {
  .hero-visual { animation: arrive .65s cubic-bezier(.22,.75,.38,1) both; }
  @keyframes arrive { from { opacity: .3; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
}

.loft-showcase { background: #f7f3eb; }
.fastfood-showcase { background: #e1eaf5 url("assets/pattern-fastfood.svg") center top repeat; }
.ramen-showcase { background: #f0efef; }
.canteen-showcase { background: #f9f0e2 url("assets/pattern-canteen.svg") center top repeat; }
.fastfood-showcase, .canteen-showcase, .ramen-showcase { border-top: 1px solid #28184114; }
#fastfood, #canteen, #ramen, #projects { scroll-margin-top: 62px; }
.scene-case { display: grid; gap: 14px; scroll-margin-top: 82px; }
.scene-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 20px; }
.scene-heading .kick { grid-column: 1 / -1; }
.template-actions { display: flex; justify-content: flex-end; gap: 8px; }
.template-preview:hover { background: var(--p50); }
.showcase-kind { margin-top: 4px; color: #5b5149; font-size: 15px; font-weight: 750; }
.menu-scene { position: relative; aspect-ratio: 1672 / 941; overflow: hidden; isolation: isolate; border-radius: 15px; }
.loft-scene { background: #dac2a0; box-shadow: 0 12px 30px #4f362420; }
.auto-scene { background: #3a1836; }
.canteen-scene { background: #bc9d75; }
.ramen-scene { aspect-ratio: 1.86; background: #454747; box-shadow: 0 12px 30px #1c202329; }
.scene-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.menu-boards { position: absolute; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .55%; }
.loft-boards { top: 25%; left: 7.5%; width: 85%; }
.auto-boards { top: 10.4%; left: 7.3%; width: 89%; }
.canteen-boards { top: 7.5%; left: 5.2%; width: 89.6%; }
.ramen-boards { inset: 12% 4.5% auto; gap: 1.65%; }
.menu-board { position: relative; overflow: hidden; background: #211a1b; border-radius: 2px; box-shadow: 0 5px 13px #21170d87; }
.loft-boards .menu-board { aspect-ratio: 9 / 16; background: #e7d4b5; }
.ramen-boards .menu-board {
  aspect-ratio: 9 / 16;
  background: #fff;
  box-shadow: 0 0 0 clamp(2px, .31vw, 4px) #1d2021, 0 10px 19px #050708a1;
}
:is(.auto-boards, .canteen-boards) .menu-board { aspect-ratio: 16 / 9; border: clamp(1px, .24vw, 3px) solid #19161b; }
.menu-board iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; pointer-events: none; }
@media (max-width: 640px) {
  .ramen-scene { aspect-ratio: auto; }
  .ramen-boards { position: relative; inset: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 9% 7% 36%; }
}
.custom-design { background: #f5f2e9; border-top: 1px solid #443c2524; }
.how-heading, .design-heading { text-align: center; }
.how-heading h2, .design-heading h2 { font-size: clamp(24px, 3.4vw, 42px); }
.how-heading .lead, .design-heading .lead { margin-inline: auto; }
.design-heading { display: grid; justify-items: center; gap: 18px; }
.design-order { display: grid; justify-items: center; gap: 8px; }
.design-order p { color: #504b3e; font-weight: 750; font-size: 15px; }
.design-visual { display: block; width: 100%; height: auto; margin-top: 26px; border-radius: 20px; }
.design-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.design-options article { padding: clamp(16px, 2.2vw, 26px); border: 1px solid #443c2524; border-radius: 16px; background: #fffcf6; }
.design-options h3 { font-size: clamp(16px, 2.1vw, 20px); }
.design-options p { color: var(--ink2); margin-top: 8px; }
.design-note { color: #504b3e; font-size: 14px; margin-top: 14px; }
.gallery-layer { position: absolute; inset: 0; background: #210b38; }
.gallery-layer img { position: absolute; inset: 0; }
.gallery-layer iframe { width: 100%; height: 100%; opacity: 0; }
.gallery-layer iframe.loaded { opacity: 1; }
.feature-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 13px; background: var(--p600); color: var(--yellow); margin-bottom: 15px; font-size: 25px; font-weight: 900; }
.feat h3 { font-size: 17px; }
.mode:not(.on):hover { background: #ffffff18; }
.cab-preview { display: block; aspect-ratio: 1.96; background: var(--p50); }
.cab-preview img { display: block; width: 100%; height: 100%; object-fit: contain; }
.cab-open { margin-top: 16px; }
.role a { display: inline-block; margin-top: 7px; color: var(--p600); font-weight: 800; font-size: 14px; text-underline-offset: 4px; }
.role h3 { font-size: 16px; }
.pricing-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 24px; align-items: end; }
.price-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; list-style: none; margin-top: 30px; }
.price-grid li { display: flex; flex-direction: column; gap: 12px; padding: clamp(14px, 2.2vw, 25px); border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.price-grid h3 { font-size: clamp(14px, 1.65vw, 19px); }
.price-grid p { color: var(--ink2); font-size: 14px; }
.price-monthly strong { display: block; color: var(--p700); font-family: Unbounded, sans-serif; font-size: clamp(17px, 2.7vw, 32px); }
.price-grid .price-annual { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); }
.price-annual strong { color: var(--p700); }
.price-grid .price-network { border-color: var(--p800); background: var(--p800); color: #fff; }
.price-network p { color: #f0dff9; }
.price-network .btn { align-self: flex-start; margin-top: auto; min-height: 44px; padding: 9px 13px; font-size: 14px; }
.format-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; margin-top: 33px; }
.offer { padding: clamp(18px, 3vw, 28px); border-radius: 20px; border: 1px solid #ffffff38; background: #ffffff0c; }
.offer p { margin-top: 10px; font-size: 16px; }
.offer.featured { background: #fbf7ff; color: var(--ink); border-color: #fff; }
.calc-note { font-size: 14px; margin-top: 13px; color: #ead8f6; }
.faq { display: grid; grid-template-columns: minmax(0,.65fr) minmax(0,1fr); gap: 28px; }
.faq h2 { font-size: clamp(26px, 3.8vw, 41px); }
.faq details { border-bottom: 1px solid var(--line); padding: 10px 0; }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 800; padding: 5px 1px; }
.faq details p { padding: 6px 0 6px 18px; color: var(--ink2); }
.contact-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 35px; }
.brief { display: grid; align-content: start; gap: 12px; }
.brief label { display: grid; gap: 4px; font-weight: 800; font-size: 15px; }
.brief select, .brief textarea { min-width: 0; padding: 11px 13px; color: var(--ink); border: 1px solid #ffffff54; background: #fff; border-radius: 12px; font-weight: 650; }
.brief textarea { resize: vertical; }
.brief .btn { justify-self: start; }
.brief p { color: #e0cbef; font-size: 14px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; color: #e1d1eb; text-align: left; }
.footer-inner a { text-underline-offset: 4px; }

@media (max-width: 980px) {
  .nav nav { display: none; }
  .feats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero .wrap { grid-template-columns: minmax(0,1fr) minmax(0,.88fr); }
  .hero .hero-tv { transform: none; }
  .hero-visual { padding-bottom: 32px; }
  .hero-tv .tv-cap { padding-right: 37%; }
  .hero .hero-inset { width: 45%; transform: rotate(-3deg); }
  .time { grid-template-columns: minmax(0,1fr) minmax(0,.65fr); gap: 18px; }
  .flow { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .arr { display: none; }
}
@media (max-width: 710px) {
  section { padding: 53px 0; }
  .hero { padding: 45px 0 42px; }
  .hero .wrap, .time, .cab, .calc, .flow, .format-grid, .contact-grid, .faq { grid-template-columns: minmax(0,1fr); }
  .hero-visual { max-width: 560px; padding-bottom: 39px; }
  .modes { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .mode { padding: 11px 9px; }
  .mode b { font-size: 13px; }
  .mode span { font-size: 13px; display: block; }
  .nav .wrap { gap: 10px; height: 58px; }
  .nav .btn { padding: 8px 10px; font-size: 13px; }
  .nav .identity { font-size: 13px; gap: 7px; }
  .nav .brand-icon { width: 23px; height: 18px; }
  .nav .brand-icon::after { left: 4px; }
  .scene-case { gap: 10px; }
  .scene-heading { column-gap: 10px; }
  .scene-heading .kick { margin-bottom: 8px; }
  .scene-heading .template-actions .btn { min-height: 44px; padding: 8px 12px; font-size: 13px; }
  .menu-scene { border-radius: 9px; }
  .design-options { grid-template-columns: minmax(0, 1fr); }
  .design-visual { margin-top: 20px; border-radius: 12px; }
  .pricing-heading { grid-template-columns: minmax(0, 1fr); justify-items: start; }
  .price-grid { gap: 10px; margin-top: 22px; }
  .cab, .calc, .feats { margin-top: 24px; }
}
@media (max-width: 500px) {
  .wrap { padding-inline: 16px; }
  .scene-heading h2 { font-size: clamp(20px, 5.6vw, 28px); }
  .template-actions { grid-column: 1 / -1; justify-content: flex-start; margin-top: 8px; }
  .scene-heading .showcase-kind { grid-row: 3; }
  .price-grid { grid-template-columns: minmax(0, 1fr); }
  .feats { grid-template-columns: minmax(0, 1fr); }
  .res { padding: 19px; }
}
@media (max-width: 360px) {
  .nav .btn { font-size: 12px; padding-inline: 8px; }
  .nav .identity { font-size: 12px; }
  .hero .btn { padding-inline: 14px; }
  .hero h1 { font-size: 31px; }
  .hero .hero-tv { padding: 8px; }
  .hero-visual .tv-cap { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
