@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');
:root{--bg:#121920;--bg2:#192229;--light:#f5f5f2;--orange:#ffd22e;--orange-2:#f0be16;--ink:#20272e;--muted:#9ba7ae;--border:rgba(255,255,255,.12);--font:'Manrope',system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);font:400 15px/1.65 var(--font);color:#fff;overflow-x:hidden}button,input{font:inherit}button{cursor:pointer}a{color:inherit;text-decoration:none}svg{fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.container{width:min(1160px,calc(100% - 64px));margin:auto}.noise{position:absolute;top:0;left:0;right:0;height:750px;z-index:0;pointer-events:none;opacity:.12;background-image:url('data:image/svg+xml,%3Csvg viewBox=%220 0 180 180%22 xmlns=%22http://www.w3.org/2000/svg%22%3E%3Cfilter id=%22n%22%3E%3CfeTurbulence type=%22fractalNoise%22 baseFrequency=%22.8%22 numOctaves=%222%22 stitchTiles=%22stitch%22/%3E%3C/filter%3E%3Crect width=%22100%25%22 height=%22100%25%22 filter=%22url(%23n)%22 opacity=%22.18%22/%3E%3C/svg%3E')}
.site-header{position:relative;z-index:20;background:rgba(18,25,32,.93);border-bottom:1px solid rgba(255,255,255,.075)}.nav-inner{height:88px;display:flex;align-items:center;justify-content:space-between;gap:25px}.brand{display:flex;align-items:center;gap:12px;flex-shrink:0}.brand-mark{width:40px;height:40px;display:grid;place-items:center;border:1px solid rgba(255,135,56,.48);background:rgba(255,135,56,.08);border-radius:11px;color:var(--orange)}.brand-mark svg{width:22px;height:22px}.brand-name{font-size:16px;letter-spacing:.02em;font-weight:800;line-height:1.3;white-space:nowrap}.brand-dot{color:var(--orange)}.brand-name small{display:block;font-size:8px;letter-spacing:.25em;font-weight:700;color:#8b9ba6;margin-top:2px}.desktop-nav{display:flex;gap:30px;color:#bbc3c8;font-size:12px;font-weight:700}.desktop-nav a:hover,.footer-links a:hover{color:var(--orange)}.header-phone{font-weight:800;font-size:14px;white-space:nowrap;display:flex;align-items:center;gap:10px}.header-phone:hover{color:var(--orange)}.header-phone-icon{color:var(--orange);font-size:19px}.burger{display:none;background:none;border:none;padding:8px}.burger span{display:block;width:22px;height:2px;background:#fff;margin:4px 0}.mobile-nav{position:absolute;top:88px;left:0;width:100%;background:#192229;padding:15px 32px 24px;box-shadow:0 20px 30px rgba(0,0,0,.3)}.mobile-nav:not([hidden]){display:grid;gap:13px}.mobile-nav a{padding:7px 0;font-weight:700}
.hero{position:relative;overflow:hidden;background:radial-gradient(ellipse 65% 95% at 90% 45%,#28343e 0,transparent 75%),linear-gradient(115deg,#141b21 0,#171f27 50%,#111820 100%)}.hero-glow{position:absolute;right:-250px;top:-350px;width:860px;height:860px;background:radial-gradient(circle,rgba(255,126,39,.07),transparent 70%);pointer-events:none}.hero-grid{min-height:620px;display:grid;grid-template-columns:1.06fr .94fr;align-items:center;position:relative;z-index:1}.hero-copy{padding:75px 0 78px;z-index:2}.eyebrow,.section-kicker{display:flex;align-items:center;gap:10px;font-size:10px;font-weight:800;letter-spacing:.21em;color:var(--orange)}.eyebrow-line{width:24px;height:1px;background:var(--orange)}h1,h2,h3,p{margin-top:0}.hero h1{font-size:clamp(42px,5.2vw,72px);letter-spacing:-.065em;line-height:1.16;font-weight:800;margin:31px 0 25px}.hero h1 span{color:var(--orange)}.hero-intro{color:#aeb9c2;max-width:455px;font-size:16px;line-height:1.85;margin-bottom:32px}.hero-actions{display:flex;gap:12px;flex-wrap:wrap}.btn{display:inline-flex;align-items:center;justify-content:center;gap:12px;min-height:57px;padding:0 23px;border-radius:6px;font-weight:800;font-size:12px;border:1px solid transparent;transition:transform .2s,background .2s,color .2s}.btn:hover,.service-special-button:hover{transform:translateY(-2px)}.btn-primary{background:var(--orange);color:#171b1f}.btn-primary:hover{background:#ffaa70}.btn-primary svg{width:17px;height:17px;stroke-width:2.5}.btn-ghost{background:#212b32;border-color:#52606a;color:#fff}.btn-ghost:hover{border-color:var(--orange)}.arrow{font-size:18px;font-weight:400;margin-left:8px}.hero-foot{display:flex;align-items:center;gap:9px;color:#9eabb4;font-size:11px;max-width:550px;margin-top:35px}.verified-icon{width:17px;height:17px;display:grid;place-items:center;border:1px solid #61715b;border-radius:50%;font-size:10px;color:#a4d09b;flex:none}.hero-visual{position:relative;height:555px;margin-right:-35px;display:grid;place-items:center}.visual-halo{position:absolute;width:450px;height:450px;border-radius:50%;background:radial-gradient(circle,rgba(255,131,53,.12),rgba(255,131,53,.03) 55%,transparent 70%);filter:blur(8px)}.visual-grid{position:absolute;inset:10% 0;background-image:linear-gradient(rgba(255,255,255,.023) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.023) 1px,transparent 1px);background-size:35px 35px;mask-image:radial-gradient(ellipse at center,#000 0,transparent 69%)}.orbit{position:absolute;border:1px solid rgba(255,138,61,.11);border-radius:50%;width:495px;height:495px}.orbit-two{width:560px;height:560px;border-color:rgba(255,255,255,.06)}.lock-art{position:relative;width:min(100%,540px);transform:rotate(-15deg);filter:drop-shadow(15px 27px 18px rgba(0,0,0,.28))}.visual-techline{position:absolute;height:1px;width:100px;background:linear-gradient(90deg,transparent,#ac673d,transparent)}.t1{left:0;top:27%}.t2{right:0;bottom:29%}.visual-label{position:absolute;color:#7f909a;font-weight:800;font-size:9px;letter-spacing:.2em;display:flex;gap:12px;align-items:center}.label-top{top:15%;left:10%}.label-top>span:last-child{color:var(--orange)}.label-bottom{right:4%;bottom:15%}.tiny-square{width:7px;height:7px;border:1px solid var(--orange)}.tiny-dot{width:5px;height:5px;border-radius:50%;background:var(--orange)}.hero-bottom{position:relative;z-index:1;display:flex;justify-content:space-between;color:#74828d;font-size:9px;font-weight:800;letter-spacing:.2em;padding:13px 0 25px;border-top:1px solid rgba(255,255,255,.09)}.scroll-hint span{color:var(--orange);margin-left:8px;font-size:17px}
.features{background:#1d262e;border-top:1px solid #303d45;border-bottom:1px solid #303d45}.feature-row{display:grid;grid-template-columns:repeat(3,1fr)}.feature-item{display:flex;align-items:flex-start;gap:18px;padding:28px 35px}.feature-item:first-child{padding-left:0}.feature-item+.feature-item{border-left:1px solid #38434b}.feature-num{font-size:10px;font-weight:800;color:var(--orange);margin-top:4px}.feature-item strong{font-size:13px}.feature-item p{color:#8e9ba4;font-size:11px;margin:5px 0 0;line-height:1.6}
.section{padding:105px 0}.services-section{background:#f5f5f2;color:#20272e}.section-heading{display:flex;justify-content:space-between;align-items:end;margin-bottom:42px;gap:24px}.section-kicker{margin-bottom:17px}.section-heading h2,.process-title h2,.about-card h2{font-size:clamp(32px,4vw,50px);letter-spacing:-.055em;line-height:1.2;margin:0;font-weight:800}.section-heading h2 em,.process-title h2 em,.about-card h2 em{font-style:normal;color:var(--orange-2)}.section-heading>p{color:#747e85;max-width:310px;font-size:12px;line-height:1.8;margin-bottom:6px}.services-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:13px}.service-card{background:#fff;border:1px solid #e7e7e3;min-height:333px;padding:26px 23px;display:flex;flex-direction:column;position:relative;transition:transform .25s,box-shadow .25s}.service-card:hover{transform:translateY(-4px);box-shadow:0 20px 45px rgba(36,43,46,.08)}.service-icon{width:51px;height:51px;display:grid;place-items:center;background:#fff3eb;color:#e67226;margin-bottom:31px}.service-icon svg{width:28px;height:28px}.service-no{font-size:9px;color:#8f9aa1;font-weight:800;letter-spacing:.11em}.service-card h3{font-size:17px;line-height:1.4;letter-spacing:-.035em;margin:12px 0}.service-card p{font-size:12px;color:#768089;line-height:1.8;margin-bottom:20px}.service-link{margin-top:auto;border:0;background:transparent;text-align:left;color:#e87527;font-weight:800;font-size:11px;padding:0;display:flex;justify-content:space-between;align-items:center}.service-link span{font-size:19px}.service-special{background:#1b252d;color:#fff;border-color:#1b252d;overflow:hidden}.service-special::before{content:'';position:absolute;width:210px;height:210px;right:-130px;top:-120px;border:1px solid rgba(255,136,59,.38);border-radius:50%;box-shadow:0 0 0 30px rgba(255,136,59,.035),0 0 0 65px rgba(255,136,59,.02)}.special-badge{color:var(--orange);font-size:10px;font-weight:800;letter-spacing:.15em;margin-bottom:43px}.service-special h3{font-size:22px;max-width:195px}.service-special p{color:#aab5bd}.service-special-button{display:flex;align-items:center;justify-content:space-between;background:var(--orange);color:#1d242b;border:0;width:100%;padding:13px 15px;font-size:11px;font-weight:800;margin-top:auto;transition:transform .2s}.service-special-button span{font-size:18px}
.process-section{background:#192229}.process-grid{display:grid;grid-template-columns:.85fr 1fr;gap:130px}.process-title h2{max-width:350px}.process-title p{max-width:310px;color:#9caab3;font-size:13px;line-height:1.9;margin:22px 0 31px}.text-link{color:var(--orange);font-size:13px;font-weight:800}.text-link span{margin-left:12px;font-size:19px}.process-steps{margin-top:6px}.step{display:grid;grid-template-columns:48px 1fr;column-gap:20px;position:relative;padding:0 0 29px;min-height:118px}.step-number{font-size:12px;font-weight:800;color:var(--orange);border:1px solid rgba(255,135,56,.35);border-radius:50%;height:42px;width:42px;display:grid;place-items:center;background:#1d2a32;z-index:1}.step-line{position:absolute;width:1px;background:#44515a;top:42px;bottom:0;left:20px}.step h3{font-size:17px;letter-spacing:-.025em;margin:3px 0 7px}.step p{font-size:12px;color:#a0adb6;line-height:1.8;max-width:400px}
.about-section{background:#f5f5f2;padding-top:75px;padding-bottom:80px}.about-card{background:#fff;border:1px solid #e9e9e5;padding:54px 63px;display:grid;grid-template-columns:96px 1fr 65px;align-items:center;gap:40px;color:#20272e}.about-icon{width:86px;height:86px;background:#fff0e6;display:grid;place-items:center}.about-icon svg{width:48px;height:48px;color:#e9752b}.about-card h2{font-size:32px}.about-card p{color:#7d858a;font-size:13px;line-height:1.9;max-width:690px;margin:17px 0 0}.about-link{display:grid;place-items:center;width:53px;height:53px;border:1px solid #dededa;border-radius:50%;font-size:25px;color:#e67b32}.about-link:hover{background:#ff8738;color:#171c21}
.contact-section{position:relative;overflow:hidden;background:var(--orange);color:#1d2328;padding:90px 0 95px}.contact-content{position:relative;z-index:2}.contact-section .section-kicker{color:#5b351f}.contact-section h2{font-size:clamp(45px,6vw,75px);letter-spacing:-.066em;line-height:1.11;margin:18px 0}.contact-section h2 em{font-style:normal;color:#fff6ee}.contact-section p{font-size:14px;max-width:440px;line-height:1.85;color:#573f30}.contact-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:27px}.btn-dark{background:#19232b;color:#fff;font-size:15px;letter-spacing:-.02em}.btn-dark span,.btn-outline-dark span{margin-left:15px;font-size:22px}.btn-outline-dark{background:transparent;border-color:rgba(25,35,43,.4);color:#20262b}.btn-outline-dark:hover{background:rgba(255,255,255,.14)}.contact-footer-note{margin-top:25px;color:#67442c;font-size:11px}.contact-art{position:absolute;font-weight:800;font-size:610px;line-height:1;right:-70px;top:-75px;color:rgba(25,35,43,.07);pointer-events:none}.footer{background:#11181e}.footer-inner{padding:35px 0;display:flex;align-items:center;justify-content:space-between;gap:22px}.footer-links{display:flex;gap:24px;font-size:11px;color:#a2aeb6}.footer-copy{font-size:10px;color:#7d898f;white-space:nowrap}
.chat-system{position:fixed;bottom:24px;right:24px;z-index:1000;pointer-events:none}.chat-launcher{pointer-events:auto;width:63px;height:63px;display:grid;place-items:center;border:0;border-radius:19px;background:var(--orange);box-shadow:0 12px 35px rgba(0,0,0,.25),0 5px 25px rgba(255,135,56,.22);color:#172029;position:relative;margin-left:auto;transition:transform .2s}.chat-launcher:hover{transform:translateY(-3px)}.launcher-chat-icon{width:29px;height:29px;stroke-width:1.8}.launcher-close-icon{display:none;font-size:33px;font-weight:300;line-height:1}.chat-system.is-open .launcher-chat-icon{display:none}.chat-system.is-open .launcher-close-icon{display:block}.chat-launcher-dot{position:absolute;top:-4px;right:-4px;background:#4bb98e;border:3px solid #192229;border-radius:50%;width:16px;height:16px}.chat-panel{pointer-events:auto;position:absolute;bottom:79px;right:0;width:380px;max-height:min(660px,calc(100dvh - 112px));height:590px;background:#fff;color:#242b30;border-radius:17px;box-shadow:0 25px 70px rgba(0,0,0,.32);display:flex;flex-direction:column;overflow:hidden;opacity:0;transform:translateY(20px) scale(.96);transform-origin:bottom right;visibility:hidden;transition:opacity .22s,transform .22s,visibility .22s}.chat-system.is-open .chat-panel{opacity:1;transform:translateY(0) scale(1);visibility:visible}.chat-head{background:#1b262e;color:#fff;padding:18px 17px;display:flex;align-items:center;gap:12px;flex-shrink:0}.chat-avatar{display:grid;place-items:center;background:#ff8738;width:43px;height:43px;flex:none;border-radius:12px;color:#1b262e}.chat-avatar svg{width:24px;height:24px}.chat-head-info{flex:1;min-width:0}.chat-head-info strong{font-size:13px;display:block;line-height:1.45}.chat-head-info span{display:flex;align-items:center;gap:6px;font-size:9px;color:#a8b6c0;white-space:nowrap}.chat-head-info i{width:7px;height:7px;flex:none;background:#67cd99;border-radius:50%}.chat-close{border:0;background:transparent;color:#aab5bd;font-size:24px;font-weight:400;padding:0 4px}.chat-messages{padding:19px 15px 12px;overflow:auto;scroll-behavior:smooth;flex:1;background:linear-gradient(#f8f9f8,#f5f6f5);display:flex;flex-direction:column;gap:12px}.chat-message{max-width:88%;font-size:12px;line-height:1.65;padding:12px 14px;word-wrap:break-word;white-space:pre-wrap}.chat-message.bot{align-self:flex-start;border-radius:3px 13px 13px 13px;background:#fff;color:#394148;box-shadow:0 3px 15px rgba(0,0,0,.045)}.chat-message.user{align-self:flex-end;border-radius:13px 3px 13px 13px;background:#ff8738;color:#1e272b}.chat-message.typing{display:flex;gap:4px;align-items:center;height:39px;min-width:51px}.typing i{width:5px;height:5px;border-radius:50%;background:#87939a;animation:pulse 1s ease infinite}.typing i:nth-child(2){animation-delay:.16s}.typing i:nth-child(3){animation-delay:.32s}@keyframes pulse{0%,70%,100%{opacity:.3;transform:translateY(0)}35%{opacity:1;transform:translateY(-3px)}}.chat-quick{display:flex;gap:7px;flex-wrap:wrap;padding:0 13px 12px;background:#f5f6f5;flex-shrink:0}.chat-quick button{border:1px solid #f1c9ae;border-radius:20px;background:#fff8f3;padding:7px 10px;font-size:10px;font-weight:700;color:#bb6229}.chat-quick button:hover{background:#ff8738;color:#242424}.chat-input-area{display:flex;align-items:center;padding:11px 12px 11px 16px;border-top:1px solid #e9e9e7;gap:9px;background:#fff;flex-shrink:0}.chat-input-area input{width:100%;min-width:0;height:39px;border:0;outline:0;font-size:12px;color:#20282c}.chat-input-area input::placeholder{color:#a6b0b6}.chat-send{width:38px;height:38px;flex:none;border:0;border-radius:11px;display:grid;place-items:center;background:var(--orange);color:#17212a}.chat-send svg{width:20px;height:20px}.chat-caption{text-align:center;padding:0 10px 12px;background:#fff;color:#8d999f;font-size:10px;flex-shrink:0}.chat-caption a{font-weight:800;color:#db762c}.chat-consent{padding:10px 13px 12px;background:#fff2e9;border-top:1px solid #ffe2cd;flex-shrink:0}.chat-consent:not([hidden]){display:block}.chat-consent label{display:flex;gap:9px;align-items:flex-start;color:#4e585f;font-size:10px;line-height:1.55}.chat-consent input{margin:2px 0 0;accent-color:#ec7a2e}.chat-consent a{color:#ae5a21;text-decoration:underline}.chat-submit-lead{width:100%;margin-top:10px;padding:10px;border:0;background:#ff8738;color:#19212a;font-size:11px;font-weight:800;border-radius:7px}.chat-submit-lead span{font-size:15px;margin-left:6px}.chat-submit-lead:disabled{opacity:.5;cursor:not-allowed}.chat-consent small{display:block;color:#be463a;font-size:10px}.mobile-call{display:none}
@media(max-width:1100px){.desktop-nav{gap:15px}.hero h1{font-size:55px}.hero-visual{margin-right:-50px}.services-grid{grid-template-columns:repeat(2,1fr)}.service-card{min-height:300px}.process-grid{gap:65px}.nav-inner{gap:12px}.header-phone{font-size:12px}}
@media(max-width:800px){.desktop-nav,.header-phone{display:none}.burger{display:block;margin-left:auto}.hero-grid{grid-template-columns:1fr;min-height:auto}.hero-copy{padding:75px 0 20px}.hero h1{font-size:clamp(44px,9vw,68px)}.hero-visual{height:380px;margin:0;max-width:550px;width:100%;justify-self:center}.lock-art{max-width:420px}.orbit{width:360px;height:360px}.orbit-two{width:430px;height:430px}.label-top{left:13%;top:9%}.label-bottom{right:10%;bottom:10%}.feature-item{padding:25px 15px}.process-grid{grid-template-columns:1fr;gap:40px}.about-card{grid-template-columns:80px 1fr;gap:20px;padding:35px}.about-icon{width:70px;height:70px}.about-link{display:none}.footer-inner{flex-wrap:wrap}.footer-links{order:3;width:100%}}
@media(max-width:600px){.container{width:calc(100% - 36px)}.nav-inner{height:72px}.mobile-nav{top:72px}.brand-mark{width:37px;height:37px}.brand-name{font-size:14px}.hero-copy{padding:58px 0 8px}.eyebrow{font-size:9px;letter-spacing:.14em}.hero h1{font-size:clamp(39px,10vw,55px);margin:25px 0 20px}.hero-intro{font-size:13px;line-height:1.85}.hero-actions{gap:10px}.hero-actions .btn{width:100%;min-height:54px}.hero-foot{font-size:10px;margin-top:23px}.hero-visual{height:345px;margin-bottom:8px}.lock-art{width:350px;max-width:100%}.orbit{width:310px;height:310px}.orbit-two{width:360px;height:360px}.visual-halo{width:340px;height:340px}.visual-label{font-size:7px}.hero-bottom{padding:12px 0 18px;font-size:8px}.feature-row{display:block;padding:8px 0}.feature-item{padding:14px 0!important}.feature-item+.feature-item{border-left:0;border-top:1px solid #39434b}.section{padding:73px 0}.section-heading{display:block;margin-bottom:27px}.section-heading h2,.process-title h2{font-size:36px}.section-heading>p{margin-top:17px}.services-grid{grid-template-columns:1fr}.service-card{min-height:275px;padding:24px}.service-icon{margin-bottom:20px}.special-badge{margin-bottom:28px}.process-grid{gap:36px}.step{grid-template-columns:42px 1fr;gap:13px;min-height:100px}.step h3{font-size:15px}.step-line{left:20px}.about-section{padding-top:55px;padding-bottom:55px}.about-card{display:block;padding:27px}.about-icon{margin-bottom:22px}.about-card h2{font-size:31px}.contact-section{padding:73px 0 90px}.contact-section h2{font-size:51px}.contact-section p{font-size:12px}.contact-art{font-size:310px;top:90px;right:-100px}.contact-actions .btn{width:100%}.footer-inner{display:block;padding:30px 0 105px}.footer-links{flex-wrap:wrap;margin:28px 0 20px;gap:15px}.chat-system{right:14px;bottom:85px}.chat-launcher{width:55px;height:55px;border-radius:17px}.chat-panel{right:0;bottom:68px;width:min(380px,calc(100vw - 28px));max-height:calc(100dvh - 167px);height:560px}.chat-head-info span{font-size:8px}.mobile-call{display:flex;align-items:center;justify-content:center;gap:10px;position:fixed;bottom:13px;left:14px;right:84px;z-index:999;height:54px;background:#ff8738;color:#1c2328;border-radius:12px;box-shadow:0 8px 25px rgba(0,0,0,.27);font-size:13px;font-weight:800}.mobile-call svg{width:18px;height:18px}.chat-messages{padding:13px}.chat-consent label{font-size:9px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}

/* Персональное оформление чата консультанта Александра */
.chat-avatar-letter{font-size:22px;font-weight:800;letter-spacing:-.05em}.chat-head-info strong{font-size:12px}.chat-head-divider{color:var(--orange);padding:0 2px}.chat-head-info i{background:var(--orange)}
@media(max-width:600px){.chat-head-info strong{font-size:11px}.chat-head{gap:9px;padding:15px 12px}.chat-avatar{width:39px;height:39px}.chat-head-divider{padding:0 1px}}

/* PWA-приложение / отдельная компактная визитка */
.app-promo{background:#18222b;color:#fff;padding:95px 0}.app-promo-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(260px,.8fr);align-items:center;gap:72px}.app-promo h2{font-size:clamp(35px,4vw,54px);line-height:1.15;letter-spacing:-.055em;margin:19px 0}.app-promo h2 em{font-style:normal;color:#ff8738}.app-promo p{max-width:620px;color:#b9c3c8;font-size:14px;line-height:1.9}.app-promo .app-promo-note{font-size:12px;color:#9cabb4;margin:15px 0 18px}.app-discount{display:block;font-weight:800;color:#ff8738;font-size:36px;letter-spacing:-.05em;margin-top:15px}.app-card-preview{padding:35px 28px;background:#111a21;border:1px solid #43515c;border-radius:22px;box-shadow:0 30px 65px rgba(0,0,0,.2)}.app-preview-label{color:#788994;font-size:10px;letter-spacing:.16em}.app-preview-mark{font-size:43px;margin:22px 0 10px}.app-card-preview h3{font-size:28px;margin:0}.app-card-preview p{font-size:12px;line-height:1.7}.app-preview-number{font-weight:800;font-size:19px;color:#ff8738;margin:25px 0}.app-preview-tag{color:#ffb77e;border:1px solid #a9673c;border-radius:10px;padding:12px;font-size:10px;font-weight:800;letter-spacing:.04em}.installed-card{display:none}body.installed-app{background:#121920;color:#fff}body.installed-app> :not(#installedCard){display:none!important}body.installed-app #installedCard{display:block!important}.installed-card{min-height:100dvh;width:min(510px,100%);margin:0 auto;padding:48px 27px 60px;background:#121920;color:#f6f6f3;font-family:var(--font)}.installed-logo{width:70px;height:70px;border-radius:20px;background:#ff8738;display:grid;place-items:center;font-size:38px;margin-bottom:30px}.installed-tag{font-size:10px;letter-spacing:.21em;color:#f7a76e}.installed-card h1{font-size:42px;line-height:1.06;letter-spacing:-.055em;margin:10px 0 13px}.installed-sub{font-size:15px;color:#b7c0c7;line-height:1.7}.installed-call{display:block;border-radius:14px;padding:17px 18px;text-align:center;color:#172029;font-size:19px;font-weight:800;background:#ff8738;margin:30px 0}.installed-card h2{font-size:20px;margin:0 0 12px}.installed-card ul{padding-left:20px;color:#c0cbd2;font-size:13px;line-height:2.2}.installed-discount{padding:16px;background:#2c251d;border:1px solid #b56a39;border-radius:13px;color:#ffd5b9;font-weight:700;font-size:13px;line-height:1.7}.installed-note{font-size:11px;color:#96a7b2;margin-top:23px}.chat-photo{padding:9px 12px;background:#fff4e8;display:flex;gap:10px;align-items:center;border-top:1px solid #ffdfca;font-size:11px;flex-shrink:0}.chat-photo[hidden]{display:none}.chat-photo>span{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chat-photo button{font-size:21px;border:0;background:transparent}.chat-photo-button{flex:none;border:0;background:transparent;color:#cb7436;font-size:21px;padding:2px 4px}.chat-photo-button:hover{color:#19222a}
@media(max-width:800px){.app-promo-grid{grid-template-columns:1fr;gap:30px}.app-promo{padding:75px 0}.app-card-preview{max-width:490px}.app-discount{font-size:33px}}

/* v3 · Loyalty PWA card and QR */
.installed-card{width:min(1060px,100%);padding:35px 24px 60px;background:transparent}.loyalty-brand{display:flex;align-items:center;gap:12px;margin-bottom:34px}.loyalty-brand-icon{display:grid;place-items:center;width:43px;height:43px;border-radius:14px;background:#ff8738}.loyalty-brand strong{display:block;font-size:14px;letter-spacing:.15em}.loyalty-brand small{color:#f9a16e;letter-spacing:.16em;font-size:9px}.loyalty-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(290px,.86fr);align-items:start;gap:27px}.loyalty-person-card,.loyalty-qr-card{background:#101a23;border:1px solid #354958;border-radius:24px;padding:29px;box-shadow:0 28px 70px rgba(0,0,0,.18)}.loyalty-person-card h1{font-size:clamp(30px,4vw,44px)}.loyalty-person-card h2{margin:25px 0 8px}.loyalty-person-card .installed-call{margin:23px 0}.loyalty-person-card ul{margin:10px 0 6px}.loyalty-discount-panel{border:1px solid #cc7140;border-radius:15px;padding:19px;background:linear-gradient(145deg,#342218,#1b1f22)}.loyalty-discount-panel>span{font-size:10px;color:#ffb382;letter-spacing:.11em;font-weight:800}.loyalty-discount-panel strong{display:block;font-size:57px;line-height:1.15;color:#ff8738;margin:10px 0 3px}.loyalty-discount-panel small{color:#d5cbc3;font-size:11px}.loyalty-progress{height:6px;background:#514235;border-radius:12px;overflow:hidden;margin-top:17px}.loyalty-progress span{display:block;height:100%;width:0%;background:#ff8738;transition:width .35s ease}.loyalty-qr-card[hidden],#loyaltyPending[hidden],.loyalty-qr-overlay[hidden]{display:none!important}.loyalty-qr-card h2{font-size:25px;margin:10px 0 8px;letter-spacing:-.04em}.loyalty-qr-card p{color:#b9c4cc;font-size:13px;line-height:1.75}.loyalty-icon-ring{display:grid;place-items:center;width:54px;height:54px;color:#ff8738;border:1px solid #b67143;background:#32251e;border-radius:17px;font-size:27px}.loyalty-qr-card form{display:grid;gap:9px;margin-top:22px}.loyalty-qr-card label{color:#dde8ee;font-size:12px;font-weight:700}.loyalty-qr-card input:not([type=checkbox]){padding:14px;border:1px solid #435562;border-radius:11px;background:#192a35;color:#fff;font:inherit;width:100%;min-width:0}.loyalty-qr-card input:focus{outline:2px solid #ff8738;outline-offset:2px}.loyalty-agree{display:flex;align-items:flex-start;gap:9px;margin:12px 0}.loyalty-agree input{accent-color:#ff8738;margin-top:5px;flex:none}.loyalty-agree span{font-size:11px;color:#abbcc6;font-weight:400;line-height:1.6}.loyalty-agree a{color:#ff9a5e}.loyalty-btn{background:#ff8738;border:0;border-radius:11px;padding:15px;color:#121b21;font-size:13px;font-weight:800;cursor:pointer;width:100%}.loyalty-btn:disabled{opacity:.5;cursor:wait}.loyalty-btn-outline{border:1px solid #fa8746;color:#ff9e62;background:transparent}.loyalty-qr-frame{position:relative;background:#fff;border-radius:17px;padding:13px;margin:20px auto 13px;width:min(100%,302px);min-height:230px;display:grid;place-items:center}.loyalty-qr-frame canvas{display:block;width:100%;height:auto;image-rendering:pixelated;aspect-ratio:1}.loyalty-qr-overlay{position:absolute;inset:13px;background:rgba(17,26,33,.94);border-radius:8px;display:grid;place-items:center;color:#fff;text-align:center;font-size:12px;padding:20px}.loyalty-status{color:#ffb078;letter-spacing:.13em;font-size:10px}.loyalty-status i{display:inline-block;background:#50ce9b;width:7px;height:7px;border-radius:50%;margin-right:5px}.loyalty-qr-card .loyalty-qr-help{text-align:center;font-size:12px;margin-bottom:0}.loyalty-qr-card .loyalty-countdown{color:#ffb480;text-align:center;font-size:11px;margin:6px 0 14px}.loyalty-qr-card .loyalty-pending{background:#39301f;border:1px solid #9e7338;border-radius:10px;color:#ffce92;padding:10px;font-size:11px}.loyalty-history{margin-top:21px;border-top:1px solid #33434f;padding-top:16px;color:#d5e0e5}.loyalty-history summary{cursor:pointer;font-size:12px;color:#ffb382;font-weight:800}.loyalty-history p{padding:8px 0;border-bottom:1px solid #303d48;margin:4px 0;font-size:11px}.loyalty-message{font-size:12px;color:#60dab0;margin:12px 8px}.loyalty-message.is-error{color:#ffc09d}.loyalty-footnote{color:#879cab;font-size:10px;line-height:1.65;margin:18px 12px}@media(max-width:760px){.installed-card{padding:25px 15px 50px}.loyalty-brand{margin-bottom:18px}.loyalty-layout{grid-template-columns:1fr;gap:17px}.loyalty-person-card,.loyalty-qr-card{padding:23px}.loyalty-discount-panel strong{font-size:50px}}

.loyalty-restore-toggle{margin:16px 0 5px;background:transparent;border:none;padding:4px;color:#ffb079;font-size:12px;cursor:pointer;text-align:left;text-decoration:underline}.loyalty-qr-card form[hidden]{display:none!important}

/* v3.1: removed decorative numbering; preserve original section layouts. */
.service-icon{margin-bottom:18px}.service-card h3{margin-top:0}.step{grid-template-columns:minmax(0,1fr);column-gap:0;gap:0;min-height:0;padding-bottom:29px}.step h3{margin-top:0}

/* v4: persistent loyalty QR */
.source-pill{display:inline-block;border:1px solid #b66c3f;border-radius:999px;padding:5px 9px;color:#ffc08c;font-size:11px;font-weight:700}
.loyalty-qr-frame{border:3px solid #ff8738;box-shadow:0 12px 40px #ff873822}

/* v5: компактная PWA-визитка, переворот на QR, не требуется прокрутка в обычном режиме */
body.installed-app{overflow-x:hidden}
body.installed-app .installed-card{display:flex!important;flex-direction:column;gap:8px;min-height:100dvh;height:100dvh;height:100svh;max-width:490px;padding:12px 14px max(9px,env(safe-area-inset-bottom));background:#121920;overflow:hidden}
body.installed-app .loyalty-brand{flex:none;margin:0 1px 3px;gap:9px}
body.installed-app .loyalty-brand-icon{width:32px;height:32px;border-radius:10px;font-size:17px}
body.installed-app .loyalty-brand strong{font-size:11px;letter-spacing:.13em}
body.installed-app .loyalty-brand small{font-size:8px;letter-spacing:.09em}
.loyalty-entry[hidden],.loyalty-wallet[hidden]{display:none!important}
.loyalty-wallet{flex:1;min-height:0;display:flex;flex-direction:column;gap:6px}
.loyalty-flip-scene{perspective:1200px;flex:1;min-height:0;width:100%}
.loyalty-flip-inner{position:relative;width:100%;height:100%;transform-style:preserve-3d;transition:transform .75s cubic-bezier(.2,.75,.2,1)}
.loyalty-flip-inner.is-flipped{transform:rotateY(180deg)}
.loyalty-face{position:absolute;inset:0;min-height:0;backface-visibility:hidden;-webkit-backface-visibility:hidden;border:1px solid #394a55;border-radius:22px;padding:clamp(13px,2.8vh,21px);background:radial-gradient(circle at 100% 0%,#35404a 0%,#19242e 42%,#101a23 100%);box-shadow:0 18px 38px #050a0d54;display:flex;flex-direction:column;overflow:hidden}
.loyalty-back{transform:rotateY(180deg);align-items:center}
.wallet-top{width:100%;display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:9px;font-weight:800;letter-spacing:.09em;color:#ffad76;flex:none}
.wallet-active{color:#73d3a0}.wallet-back{background:#283843;border:1px solid #566875;border-radius:9px;color:#fff;padding:7px 10px;font:inherit;cursor:pointer;letter-spacing:0}
.loyalty-front h1{font-size:clamp(26px,5.2vh,38px);line-height:1.03;margin:clamp(9px,1.7vh,17px) 0 5px;flex:none}
.loyalty-front .wallet-sub{font-size:clamp(10px,1.9vh,12px);color:#aebcc5;line-height:1.4;margin:0;flex:none}
.loyalty-front .installed-call{flex:none;margin:clamp(12px,2.2vh,18px) 0 0;padding:clamp(9px,1.8vh,14px);font-size:clamp(14px,3.1vh,18px);border-radius:13px}
.loyalty-front .loyalty-discount-panel{width:100%;display:block;text-align:left;margin:clamp(12px,2.3vh,18px) 0 0;padding:clamp(12px,2.4vh,18px);cursor:pointer;flex:none;appearance:none;color:#fff}
.loyalty-front .loyalty-discount-panel>span:first-child{font-size:clamp(8px,1.5vh,10px)}
.loyalty-front .loyalty-discount-panel strong{font-size:clamp(36px,8vh,54px);line-height:1.06;margin:5px 0 2px}
.loyalty-front .loyalty-discount-panel small{font-size:clamp(9px,1.7vh,11px);line-height:1.35;display:block}
.loyalty-front .loyalty-progress{margin-top:clamp(7px,1.7vh,12px);height:5px}
.loyalty-front .wallet-tap{display:flex;align-items:center;justify-content:space-between;font-size:clamp(9px,1.6vh,11px);color:#ffb88c;letter-spacing:0;margin-top:clamp(8px,1.8vh,12px);font-weight:700}
.loyalty-front .wallet-tap b{font-size:17px}
.wallet-services{margin:clamp(11px,2vh,20px) 0 0;flex:1;min-height:0;overflow:hidden}
.wallet-services strong{font-size:9px;letter-spacing:.16em;color:#ffac75}
.wallet-services p{font-size:clamp(10px,1.7vh,12px);line-height:1.6;color:#cbd3d8;margin:5px 0}
.loyalty-front .wallet-legal{font-size:clamp(8px,1.4vh,10px);line-height:1.4;color:#849ba8;margin:6px 0 0;flex:none}
.wallet-back-name{text-align:center;display:flex;flex-direction:column;gap:3px;margin:6px 0 0;flex:none}
.wallet-back-name strong{font-size:clamp(14px,2.5vh,18px)}.wallet-back-name span{font-size:11px;color:#b9cbd5}
.loyalty-back .loyalty-qr-frame{width:auto;height:auto;aspect-ratio:1;max-width:min(100%,min(40vh,280px));min-height:0;flex:1;display:grid;place-items:center;margin:clamp(6px,1.5vh,12px) auto 5px;padding:9px;border-radius:13px;background:#fff}
.loyalty-back .loyalty-qr-frame canvas{max-height:100%;max-width:100%;width:100%;height:auto}
.loyalty-back .loyalty-qr-help{font-size:clamp(9px,1.7vh,11px);line-height:1.45;color:#bbc9d2;margin:3px auto;text-align:center;flex:none}
.loyalty-back .loyalty-countdown{color:#ffbb90;font-size:9px;margin:3px auto 4px;flex:none}
.loyalty-back .loyalty-pending{font-size:9px;line-height:1.4;margin:2px 0;padding:5px;flex:none}
.wallet-refresh{border:1px solid #cc7c4b;color:#ffb280;background:#281f1e;padding:8px;border-radius:10px;font-size:10px;cursor:pointer;flex:none;align-self:stretch}
body.installed-app .loyalty-history{flex:none;max-height:28vh;overflow:auto;padding:4px 5px 2px;margin:0;border:0}
body.installed-app .loyalty-history summary{font-size:10px;color:#ffab7a;cursor:pointer}
body.installed-app .loyalty-message{margin:0 4px;flex:none;font-size:10px;max-height:30px;overflow:auto;line-height:1.3}
body.installed-app .loyalty-footnote{flex:none;margin:0 4px;font-size:9px;line-height:1.3;color:#778d9b}
.loyalty-entry{min-height:0;overflow:auto;background:#15222b;border:1px solid #354754;border-radius:20px;padding:20px}
.loyalty-entry-head span{font-size:10px;color:#ffb287;letter-spacing:.12em;font-weight:800}
.loyalty-entry h1{font-size:27px;line-height:1.06;letter-spacing:-.04em;margin:12px 0}
.loyalty-entry p{font-size:12px;line-height:1.65;color:#bfcbd3;margin:0}
.loyalty-entry form{display:grid;gap:9px;margin-top:16px}
.loyalty-entry form[hidden]{display:none!important}
.loyalty-entry form>label:not(.loyalty-agree){font-size:12px;color:#f6f6f3;font-weight:700}
.loyalty-entry input:not([type=checkbox]){width:100%;font:inherit;color:#fff;background:#21313d;border:1px solid #465a67;border-radius:11px;padding:12px}
.loyalty-entry input:focus-visible{outline:2px solid #ff8738;outline-offset:2px}
.loyalty-entry .loyalty-agree{display:flex;align-items:flex-start;gap:9px;margin:6px 0;font-size:11px;color:#b9cbd5;font-weight:400;line-height:1.5}
.loyalty-entry .loyalty-agree input{accent-color:#ff8738;flex:none;margin-top:4px}
.loyalty-entry .loyalty-agree a{color:#ffa36c}
.loyalty-entry .loyalty-btn{padding:13px 12px}
.loyalty-entry .loyalty-restore-toggle{margin:14px 0 0}
@media(max-height:610px){.loyalty-face{padding:11px 13px}.loyalty-front h1{font-size:25px;margin:7px 0 3px}.loyalty-front .installed-call{margin:9px 0 0;padding:8px}.loyalty-front .loyalty-discount-panel{margin:9px 0 0;padding:10px}.loyalty-front .loyalty-discount-panel strong{font-size:34px;margin:2px 0}.wallet-services{margin-top:8px}.wallet-services p{line-height:1.38}.loyalty-back .loyalty-qr-frame{max-width:min(37vh,230px)}}
@media(prefers-reduced-motion:reduce){.loyalty-flip-inner{transition:none}}
/* Override the legacy installed-card display rule (which uses an ID). */
body.installed-app #installedCard{display:flex!important;flex-direction:column}


/* v6 — graphite / white / yellow, compact one-screen PWA and clean website. */
:root{--bg:#10171d;--bg2:#18232b;--orange:#ffd22e;--orange-2:#f0be16;--light:#f7f8f8}
.site-header{background:#10171df5}
.brand-mark{color:#ffd22e;background:#ffd22e12;border-color:#ffd22e68}
.hero{background:radial-gradient(ellipse at 83% 41%,#25323c 0%,transparent 68%),linear-gradient(115deg,#10171d,#18232b 62%,#0b1116)}
.hero-glow{background:radial-gradient(circle,#ffd22e11,transparent 70%)}
.hero-visual .visual-halo{background:radial-gradient(circle,#ffd22e1d,#ffd22e06 53%,transparent 70%)}
.orbit{border-color:#ffd22e36}
.features{background:#18232b}
.services-section{background:#111a21;color:#fff}
.services-section .section-heading>p{color:#a8b7c0}
.service-card{background:#1c2832;border:1px solid #3c4b55;color:#f9faf9;border-radius:13px}
.service-card p{color:#b9c5ce}.service-card h3{color:#fff}
.service-icon{background:#ffd22e16;color:#ffd22e;border-radius:10px}
.service-link{color:#ffda50}
.service-special{background:#222e36;border-color:#44545f}
.service-special::before{border-color:#ffd22e49;box-shadow:0 0 0 30px #ffd22e09,0 0 0 65px #ffd22e04}
.service-special-button{display:flex;background:#ffd22e;color:#111820;border-radius:8px;text-decoration:none}
.process-section,.app-promo{background:#18232b}
.contact-section{background:#ffd22e;color:#10171d}
.contact-section .section-kicker,.contact-section p,.contact-footer-note{color:#4c441b}
.contact-section h2 em{color:#fff}
.btn-primary,.mobile-call{background:#ffd22e;color:#11171e}
.btn-primary:hover,.service-special-button:hover{background:#ffe36c}
.footer{background:#0b1117}
.app-promo h2 em{color:#ffd22e}
.app-preview-number{color:#ffd22e}
.app-preview-tag{color:#ffd22e;border-color:#ffd22e75}
.app-discount{color:#ffd22e!important}
.mobile-call{right:14px}
.discount-toast[hidden]{display:none!important}
.discount-toast{position:fixed;z-index:998;right:24px;bottom:25px;width:min(390px,calc(100vw - 32px));background:#1b2933;color:#fff;border:1px solid #475862;border-left:4px solid #ffd22e;border-radius:19px;padding:24px 25px 22px;box-shadow:0 20px 75px #0009;opacity:0;transform:translateY(20px);transition:transform .28s ease,opacity .28s ease}
.discount-toast.is-visible{opacity:1;transform:translateY(0)}
.discount-toast-close{position:absolute;top:7px;right:12px;border:0;background:transparent;color:#a8b4bc;font-size:26px;line-height:1;padding:5px}
.discount-toast-badge{font-size:10px;color:#ffd22e;letter-spacing:.13em;font-weight:800;margin-bottom:8px}
.discount-toast strong{font-size:27px;letter-spacing:-.04em;line-height:1.12;display:block}
.discount-toast p{font-size:12px;color:#b3c1c9;line-height:1.65;margin:8px 0 15px}
.discount-toast a{display:inline-flex;gap:14px;align-items:center;font-weight:800;color:#ffd22e;font-size:12px}
@media(max-width:600px){.discount-toast{bottom:79px;left:14px;right:14px;width:auto;padding:19px 20px}.mobile-call{background:#ffd22e}}
/* Full-screen installed card; do not block scroll on registration screens. */
html:has(body.installed-app),body.installed-app{height:100%;overflow:hidden;overscroll-behavior:none}
body.installed-app{touch-action:manipulation;background:#0d151b}
body.installed-app #installedCard{max-width:none;width:100%;margin:0 auto;min-height:0;height:100vh;height:100dvh;gap:0;padding:max(8px,env(safe-area-inset-top)) max(9px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(9px,env(safe-area-inset-left));background:#0d151b}
body.installed-app .loyalty-entry{max-width:540px;width:100%;margin:auto;max-height:100%;overflow-y:auto;overscroll-behavior:contain}
body.installed-app .loyalty-wallet{flex:1;min-height:0;display:flex;flex-direction:column;gap:3px;width:min(100%,540px);margin:0 auto}
body.installed-app .loyalty-flip-scene{min-height:0;flex:1}
body.installed-app .loyalty-flip-inner{transition:transform .68s cubic-bezier(.2,.8,.18,1)}
body.installed-app .loyalty-face{background:linear-gradient(155deg,#25353f,#17232b 55%,#111b22);border:1px solid #3a4a54;border-radius:clamp(18px,5vw,28px);padding:clamp(13px,3.4vw,26px);box-shadow:0 15px 60px #0003;gap:0}
body.installed-app .wallet-top{font-size:clamp(9px,2.5vw,11px);color:#ffde75;letter-spacing:.13em}
body.installed-app .wallet-active{display:flex;align-items:center;gap:7px;color:#75e1ac;font-size:clamp(9px,2.5vw,11px);letter-spacing:0}
body.installed-app .wallet-active i{width:8px;height:8px;display:inline-block;border-radius:50%;background:#68d9a4}
body.installed-app .loyalty-front h1{font-size:clamp(29px,7.5vw,44px);margin:clamp(12px,2.4dvh,21px) 0 4px;line-height:1.08;letter-spacing:-.055em}
body.installed-app .wallet-sub{font-size:clamp(11px,3vw,14px);color:#a8bac4;margin:0}
body.installed-app .installed-call{background:#ffd22e;color:#161b18;margin:clamp(12px,2.3dvh,22px) 0 0;border:0;border-radius:15px;display:flex;align-items:center;justify-content:center;gap:9px;min-height:clamp(48px,7.5dvh,71px);padding:8px;font-size:clamp(17px,4.4vw,25px);font-weight:850;letter-spacing:-.03em;white-space:nowrap}
body.installed-app .loyalty-discount-panel{display:block;flex:none;background:linear-gradient(130deg,#2c2c27,#1d2529);border:1px solid #dcba4a9e;border-radius:18px;min-height:0;margin:clamp(10px,1.9dvh,17px) 0 0;padding:clamp(12px,3.3vw,22px);color:#fff;box-shadow:none}
body.installed-app .loyalty-discount-panel>span:first-child{color:#ffdd7a;font-weight:800;letter-spacing:.11em;font-size:clamp(9px,2.5vw,12px)}
body.installed-app .loyalty-discount-panel strong{color:#ffd22e;font-size:clamp(44px,10.2dvh,84px);font-weight:900;line-height:1;margin:clamp(4px,1dvh,10px) 0 5px;letter-spacing:-.07em}
body.installed-app .loyalty-discount-panel small{font-size:clamp(10px,2.7vw,13px);line-height:1.45;color:#e2e1d5;display:block}
body.installed-app .loyalty-progress{height:6px;display:block;background:#ffffff30;border-radius:99px;overflow:hidden;margin-top:clamp(7px,1.2dvh,12px)}
body.installed-app .loyalty-progress i{height:100%;display:block;background:#ffd22e;border-radius:99px;transition:width .35s}
body.installed-app .wallet-tap{color:#f6dd91;margin-top:clamp(8px,1.2dvh,14px);font-size:clamp(10px,2.55vw,12px);font-weight:750;display:flex;justify-content:space-between;align-items:center}
body.installed-app .wallet-tap b{font-size:18px}
body.installed-app .wallet-services{flex:1;min-height:0;margin:clamp(10px,2dvh,20px) 0 0;overflow:hidden;display:flex;flex-direction:column;gap:clamp(5px,1dvh,10px)}
body.installed-app .wallet-services strong{letter-spacing:.16em;font-size:clamp(9px,2.45vw,11px);color:#ffdd7a}
body.installed-app .wallet-services ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:clamp(3px,.65dvh,9px)}
body.installed-app .wallet-services li{font-size:clamp(10px,2.75vw,13px);color:#eff3f4;display:flex;justify-content:space-between;gap:6px;align-items:baseline;border-bottom:1px solid #ffffff16;padding-bottom:clamp(3px,.52dvh,8px);line-height:1.3}
body.installed-app .wallet-services li:last-child{border:0}
body.installed-app .wallet-services li b{font-size:clamp(10px,2.65vw,13px);color:#ffe087;white-space:nowrap}
body.installed-app .wallet-legal{text-align:center;color:#95aab4;font-size:clamp(9px,2.2vw,11px);line-height:1.3;margin:5px auto 0;max-width:98%}
body.installed-app .loyalty-back{align-items:center}
body.installed-app .loyalty-back .wallet-top{align-self:stretch}
body.installed-app .loyalty-back .wallet-back-name{margin:clamp(20px,4dvh,38px) auto 0;gap:5px}
body.installed-app .loyalty-back .wallet-back-name strong{font-size:clamp(22px,5vw,29px);color:#fff}
body.installed-app .loyalty-back .wallet-back-name span{color:#b9c5cb;font-size:clamp(12px,3vw,15px)}
body.installed-app .loyalty-qr-tap{flex:1;min-height:0;border:0;background:none;padding:10px 0 20px;margin:0;display:flex;align-items:center;justify-content:center;align-self:stretch;cursor:pointer}
body.installed-app .loyalty-qr-frame{display:grid;place-items:center;border-radius:16px;border:9px solid #fff;background:#fff;min-height:0;width:min(75vw,45dvh,325px);max-width:90%;height:auto;aspect-ratio:1;box-shadow:0 10px 40px #0006;margin:0;overflow:hidden;padding:0}
body.installed-app .loyalty-qr-frame canvas{width:100%;height:auto;max-height:100%;image-rendering:pixelated}
body.installed-app .loyalty-pending{font-size:11px;color:#ffdf87;border:1px solid #e0b9375c;background:#f5ca2519;padding:9px;border-radius:9px;margin:0 auto 12px;text-align:center}
body.installed-app .loyalty-history{flex:none;margin:0 auto;border:0;max-height:min(17dvh,105px);width:100%;padding:2px 9px;overflow-y:auto;color:#d5e0e5}
body.installed-app .loyalty-history summary{font-size:clamp(10px,2.5vw,12px);color:#ffda65;font-weight:700;cursor:pointer}
body.installed-app .loyalty-history p{font-size:10px;line-height:1.3;margin:3px 0;padding:3px 0}
body.installed-app .loyalty-message{flex:none;margin:0 auto;max-width:540px;padding:0 6px;color:#86e2b4;font-size:11px;line-height:1.3}
body.installed-app .loyalty-message:empty{display:none}
body.installed-app .loyalty-qr-overlay[hidden]{display:none!important}
body.installed-app .loyalty-qr-overlay{position:absolute;inset:0;border-radius:6px}
body.installed-app .loyalty-entry input:focus-visible{outline-color:#ffd22e}
body.installed-app .loyalty-entry .loyalty-agree input{accent-color:#ffd22e}
body.installed-app .loyalty-entry .loyalty-agree a{color:#ffe17a}
body.installed-app .loyalty-btn{background:#ffd22e;color:#11191e}
body.installed-app .loyalty-btn-outline{color:#ffdf81;border:1px solid #ffd22e;background:none}
@media(max-height:685px){body.installed-app .loyalty-face{padding:10px 15px}body.installed-app .loyalty-front h1{font-size:clamp(25px,6vw,34px);margin:7px 0 3px}body.installed-app .loyalty-discount-panel{padding:10px 13px;margin-top:7px}body.installed-app .loyalty-discount-panel strong{font-size:clamp(37px,7.5dvh,59px);margin:3px 0}body.installed-app .loyalty-discount-panel small{font-size:10px}body.installed-app .wallet-tap{margin-top:4px}body.installed-app .installed-call{margin-top:8px;min-height:44px}body.installed-app .wallet-services{margin-top:7px;gap:3px}body.installed-app .wallet-services ul{gap:2px}body.installed-app .wallet-services li{padding-bottom:1px;font-size:10px}body.installed-app .wallet-legal{font-size:9px}}
@media(prefers-reduced-motion:reduce){body.installed-app .loyalty-flip-inner{transition:none}}

/* v7: modal views, independent of the fixed-size PWA card. */
body.installed-app #installedCard .wallet-modal[hidden],.wallet-modal[hidden],.pwa-splash[hidden]{display:none!important}
.wallet-modal{position:fixed;inset:0;z-index:3000;display:grid;place-items:center;padding:calc(10px + env(safe-area-inset-top)) 13px calc(10px + env(safe-area-inset-bottom))}
.wallet-modal-scrim{position:absolute;inset:0;background:#020507e6;backdrop-filter:blur(9px);-webkit-backdrop-filter:blur(9px)}
.wallet-modal-card{position:relative;z-index:1;width:min(460px,100%);max-height:100%;border:1px solid #495762;border-radius:23px;background:linear-gradient(150deg,#27333c,#121e27);color:#fff;padding:clamp(16px,4vw,25px);box-shadow:0 28px 90px #000a;display:flex;flex-direction:column;gap:13px;animation:walletModalOpen .28s cubic-bezier(.2,.7,.2,1)}
@keyframes walletModalOpen{from{opacity:0;transform:translateY(25px) scale(.965)}to{opacity:1;transform:translateY(0) scale(1)}}
.wallet-modal-card h2{margin:0;font-size:clamp(20px,5vw,25px);letter-spacing:-.04em}
.wallet-modal-body{overflow:auto;min-height:0;flex:1;overscroll-behavior:contain}
.wallet-modal-body p{margin:0 0 12px;color:#b9cbd3;font-size:12px}
.wallet-modal-form{display:grid;gap:9px}.wallet-modal-form label:not(.loyalty-agree){font-size:12px;font-weight:800}
.wallet-modal-form input:not([type=checkbox]){width:100%;border-radius:11px;padding:12px;border:1px solid #52616c;background:#1e2d37;color:#fff;font:inherit;font-size:15px}
.wallet-modal-form .loyalty-agree{display:flex;gap:10px;align-items:center;color:#b9cbd3;font-size:11px;margin:6px 0}
.wallet-modal-form input[type=checkbox]{accent-color:#ffd22e}
.wallet-modal-close{flex:none;width:100%;background:#2e3b44;color:#fff;border:1px solid #5a6870;border-radius:12px;padding:13px;font-weight:800;font-size:13px;cursor:pointer}
#loyaltyHistory p{border-bottom:1px solid #ffffff19;padding:10px 0;margin:0;font-size:12px;color:#e7edf0}
.loyalty-history-button{border:1px solid #ffffff30;background:#ffffff0b;color:#ffdf7a;border-radius:10px;align-self:stretch;font-weight:800;font-size:12px;min-height:38px;cursor:pointer}
body.installed-app .loyalty-history-button{flex:none;margin:5px 4px 0}
.wallet-active.is-blocked{color:#ff777c!important}.wallet-active.is-blocked i{background:#eb404d!important;box-shadow:0 0 0 4px #eb404d22}
body.installed-app .loyalty-discount-panel.is-blocked{border-color:#ff515a;color:#ffd5d5;background:linear-gradient(130deg,#532a30,#241d24)}
body.installed-app .loyalty-discount-panel.is-blocked strong{color:#ff596a}
body.installed-app .wallet-services ul{overflow-y:auto;min-height:0;overscroll-behavior:contain;scrollbar-width:thin}
/* True full-height card on short/tall devices. Content list scrolls only if too many services are added. */
body.installed-app .loyalty-face{min-height:0}
@media (max-height:570px){body.installed-app .loyalty-front .wallet-sub{display:none}body.installed-app .loyalty-discount-panel strong{font-size:clamp(28px,6.4dvh,44px)}body.installed-app .loyalty-services li{line-height:1.05}body.installed-app .wallet-services{margin-top:4px}}
/* v7.1 PWA launch: exactly black + letter-by-letter shimmer, no glow rectangle. */
body.installed-app #pwaSplash:not([hidden]){display:flex!important}
.pwa-splash{position:fixed;inset:0;z-index:9999;display:flex;align-items:center;justify-content:center;overflow:hidden;background:#000;color:#fff;pointer-events:all;isolation:isolate}
.splash-wordmark{display:flex;white-space:nowrap;align-items:baseline;justify-content:center;font-weight:900;font-size:clamp(29px,8.8vw,64px);letter-spacing:-.055em;line-height:1.15;font-family:Manrope,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.splash-letter{display:inline-block;color:#fff;opacity:0;will-change:opacity,color,text-shadow;animation:kmLetterShow .64s cubic-bezier(.2,.8,.2,1) calc(.13s + var(--letter)*.045s) both,kmLetterGlimmer .65s ease-in-out calc(1.1s + var(--letter)*.195s) 1 both}
.splash-letter.splash-gold{color:#ffd22e;--base-letter:#ffd22e}
.splash-letter:not(.splash-gold){--base-letter:#fff}
@keyframes kmLetterShow{from{opacity:0;transform:translateY(9px);filter:blur(3px)}to{opacity:1;transform:translateY(0);filter:blur(0)}}
@keyframes kmLetterGlimmer{0%,100%{color:var(--base-letter);text-shadow:none}48%{color:#fffbe8;text-shadow:0 0 8px #fff5c9,0 0 19px #ffd22e99}}
.pwa-splash.is-closing{opacity:0;transition:opacity .32s ease}
.loyalty-qr-frame canvas[hidden]{display:none!important}
@media(prefers-reduced-motion:reduce){.splash-letter{animation:none;opacity:1;filter:none}.wallet-modal-card{animation:none}}

/* v8: unified icon language, real PWA flip demo, footer-only rights line. */
.service-icon svg{fill:none!important;stroke:currentColor!important;stroke-width:1.8!important;stroke-linecap:round;stroke-linejoin:round}
.service-icon svg *{fill:none;stroke:inherit;stroke-width:inherit;stroke-linecap:round;stroke-linejoin:round}
.pwa-showcase{min-width:0;display:grid;place-items:center;perspective:1100px;padding:10px 2px}
.pwa-demo-scene{width:min(365px,100%);height: min(650px, 78vh);min-height:525px;perspective:1000px}
.pwa-demo-inner{position:relative;width:100%;height:100%;transform-style:preserve-3d;transition:transform .85s cubic-bezier(.22,.72,.17,1)}
.pwa-demo-inner.show-back{transform:rotateY(180deg)}
.pwa-demo-face{position:absolute;inset:0;backface-visibility:hidden;-webkit-backface-visibility:hidden;border:1px solid #4d5a64;background:linear-gradient(150deg,#283943,#1b2932 58%,#111a22);border-radius:27px;padding:clamp(16px,4vw,26px);color:#fff;box-shadow:0 18px 50px #0006;display:flex;flex-direction:column;overflow:hidden}
.pwa-demo-back{transform:rotateY(180deg);align-items:center}
.pwa-demo-top{display:flex;justify-content:space-between;font-size:10px;letter-spacing:.09em;color:#ffe283;gap:10px}
.pwa-demo-top b{color:#77d8a6;font-size:10px;letter-spacing:0}
.pwa-demo-face h3{font-size:clamp(30px,4vw,39px);margin:24px 0 1px;letter-spacing:-.055em}
.pwa-demo-face p{font-size:12px!important;line-height:1.5!important;color:#bac9ce!important;margin:0 0 14px!important}
.pwa-demo-phone{background:#ffdb37;color:#141820;text-align:center;padding:17px 8px;border-radius:14px;font-size:clamp(16px,3vw,21px);font-weight:900;letter-spacing:-.025em}
.pwa-demo-discount{border:1px solid #d5b73d;border-radius:16px;padding:17px;background:linear-gradient(135deg,#34332c,#21272b);display:flex;flex-direction:column;gap:5px;margin-top:14px}
.pwa-demo-discount small{color:#ffe38b;font-size:10px;font-weight:800;letter-spacing:.05em}
.pwa-demo-discount strong{font-size:72px;line-height:1;color:#ffda38;letter-spacing:-.065em}
.pwa-demo-discount span{color:#c6d0d1;font-size:11px}
.pwa-demo-discount i{height:5px;background:#ffffff30;border-radius:20px;margin-top:6px}
.pwa-demo-services{display:flex;flex-direction:column;gap:10px;margin:18px 0 8px;font-size:12px;flex:1}
.pwa-demo-services>b{font-size:10px;letter-spacing:.2em;color:#ffdc60}
.pwa-demo-services>span{border-bottom:1px solid #ffffff15;padding-bottom:6px;display:flex;justify-content:space-between;gap:8px}
.pwa-demo-services em{font-style:normal;color:#ffe58b;white-space:nowrap}
.pwa-demo-legal{font-size:9px;text-align:center;color:#a8b8c1;line-height:1.4}
.pwa-demo-back-title{font-weight:800;font-size:26px;text-align:center;margin-top:50px;line-height:1.55}
.pwa-demo-back-title small{color:#aabbc3;font-weight:400;font-size:13px}
.pwa-demo-qr-wrap{width:min(87%,285px);aspect-ratio:1;background:#fff;border-radius:19px;margin:auto;display:grid;place-items:center;padding:16px;box-shadow:0 14px 36px #0005}
.pwa-demo-qr-wrap canvas{max-width:100%;height:auto;image-rendering:pixelated}
body.installed-app .pwa-copyright{flex:none;margin:2px auto 0;padding:0 0 1px;text-align:center;color:#8497a1;font-size:clamp(8px,2.1vw,10px);line-height:1.25}
@media(max-width:800px){.pwa-demo-scene{height:590px;min-height:500px}}
@media(max-width:380px){.pwa-demo-scene{height:550px;min-height:510px}}
@media(prefers-reduced-motion:reduce){.pwa-demo-inner{transition:none}}

/* v8.1: Personalized 4-second white splash after successful registration/restoration.
   Intentionally REUSES .splash-letter, kmLetterShow and kmLetterGlimmer from the
   approved 5-second black PWA launch splash. No separate/invented shimmer effect. */
.pwa-welcome-splash[hidden]{display:none!important}
body.installed-app > #pwaWelcome:not([hidden]){display:flex!important}
.pwa-welcome-splash{position:fixed;inset:0;inset-block:0;z-index:10001;background:#fff;color:#18212a;display:flex;align-items:center;justify-content:center;overflow:hidden;isolation:isolate;pointer-events:all;padding:env(safe-area-inset-top) 14px env(safe-area-inset-bottom)}
.pwa-welcome-center{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:clamp(28px,6dvh,50px);transform:translateY(-3vh);max-width:100%}
.pwa-welcome-spinner{width:54px;height:54px;border-radius:50%;border:4px solid #e8ebef;border-top-color:#eab900;animation:kmWelcomeSpin .86s linear infinite;box-sizing:border-box}
@keyframes kmWelcomeSpin{to{transform:rotate(360deg)}}
.pwa-welcome-wordmark{font-size:clamp(27px,8vw,55px);}
.pwa-welcome-wordmark .splash-letter:not(.splash-gold){--base-letter:#1a222b;color:#1a222b}
.pwa-welcome-wordmark .splash-letter.splash-gold{--base-letter:#dfac00;color:#dfac00}
.pwa-welcome-greeting{position:absolute;bottom:calc(34px + env(safe-area-inset-bottom));left:16px;right:16px;margin:0;text-align:center;color:#1b2229;font-size:clamp(15px,4.3vw,22px);font-weight:800;letter-spacing:-.02em;line-height:1.35;overflow-wrap:anywhere;animation:kmWelcomeGreeting .56s ease-out .42s both}
@keyframes kmWelcomeGreeting{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}
.pwa-welcome-splash.is-closing{opacity:0;transition:opacity .35s ease}
@media(prefers-reduced-motion:reduce){.pwa-welcome-spinner{animation:kmWelcomeSpin 2s linear infinite}.pwa-welcome-greeting{animation:none}}

/* v8.2: reliable scannable QR on the back of the showcase. */
.pwa-demo-qr-link{display:grid;align-items:center;justify-items:center;text-decoration:none!important;cursor:pointer;box-sizing:border-box}
.pwa-demo-qr-link img{display:block;width:100%;max-width:100%;height:auto;aspect-ratio:1;object-fit:contain;image-rendering:pixelated;border-radius:7px}
.pwa-demo-qr-site{display:block;color:#f5e4a5;text-align:center;font-weight:700;font-size:13px;letter-spacing:.025em;margin:-18px auto 30px}
@media(max-width:380px){.pwa-demo-back-title{margin-top:28px}.pwa-demo-qr-site{margin-bottom:22px}}

/* v8.3: recovered standalone combination-dial demo link */
.dial-demo-teaser{margin-top:24px;padding:24px 26px;display:flex;align-items:center;justify-content:space-between;gap:20px;background:#17222b;border:1px solid #40505b;border-radius:16px;color:#f7f9fb}
.dial-demo-teaser h3{font-size:21px;margin:7px 0 6px;letter-spacing:-.02em}
.dial-demo-teaser p{color:#b8c5cf;font-size:13px;margin:0;max-width:560px;line-height:1.6}
.dial-demo-eyebrow{font-size:10px;font-weight:800;letter-spacing:.15em;color:#ffda38}
.dial-demo-button{white-space:nowrap;border-radius:9px;padding:14px 18px;background:#ffda38;color:#171c23;font-size:13px;font-weight:800;display:inline-flex;gap:18px;align-items:center}
.dial-demo-button:hover{background:#ffec76}
@media(max-width:650px){.dial-demo-teaser{flex-direction:column;align-items:stretch;padding:21px}.dial-demo-button{justify-content:space-between}}


/* v8.4: рабочий лимбовый замок на главной */
.hero-visual-dial{height:555px;display:grid;place-items:center}.hero-dial-stage{position:relative;z-index:2;width:min(100%,520px);display:grid;place-items:center;gap:0}.hero-safe-housing{position:relative;width:min(100%,485px);aspect-ratio:1;border-radius:50%;padding:5.6%;background:linear-gradient(135deg,rgba(248,252,253,.4),transparent 15% 43%,rgba(244,250,252,.07) 62%,rgba(1,8,13,.8)),radial-gradient(circle at 30% 22%,#596870 0%,#15232c 52%,#080e14 80%,#47535b 94%,#111b22 98%);box-shadow:0 24px 75px rgba(0,0,0,.45),0 0 0 2px rgba(200,210,217,.16),0 0 0 10px rgba(6,12,17,.58),0 0 0 12px rgba(162,171,177,.08),0 0 65px 24px rgba(188,147,41,.04)}.hero-safe-housing::before{content:"";position:absolute;inset:3%;border-radius:50%;border:2px solid rgba(240,246,246,.1);box-shadow:inset 0 0 0 7px #0e171e,inset 0 0 0 8px rgba(217,226,229,.25);pointer-events:none}.hero-safe-housing::after{content:"";position:absolute;inset:7.2%;border-radius:50%;box-shadow:inset 0 12px 25px rgba(0,0,0,.5),inset 0 -9px 18px rgba(210,230,235,.08);pointer-events:none}.hero-safe-housing .inner-ring{position:relative;width:100%;height:100%;border-radius:50%;padding:3.3%;background:conic-gradient(from 25deg,#35444f,#a0afb6 17%,#202e38 30%,#090f15 45%,#64737c 64%,#0c161f 82%,#788994 98%,#35444f);box-shadow:inset 0 0 0 3px rgba(10,16,21,.85),0 0 0 2px rgba(213,226,230,.16),inset 0 0 15px rgba(255,255,255,.12)}.hero-dial-face{width:100%;height:100%;display:block;border-radius:50%;position:relative;touch-action:none;cursor:grab;user-select:none;-webkit-user-select:none;background:radial-gradient(circle at 38% 27%,#3f4c56 0%,#202e37 48%,#101a23 82%,#080e15 100%);box-shadow:inset 0 0 0 3px #0b141c,inset 0 0 0 7px rgba(151,167,177,.24),inset 0 0 32px 10px rgba(0,0,0,.78),0 0 0 2px rgba(12,20,27,.85)}.hero-dial-face:active{cursor:grabbing}.hero-dial-face:focus-visible{outline:2px solid #ffd22e;outline-offset:5px}.hero-dial-face::before{content:"";position:absolute;inset:10%;border:1px solid rgba(201,223,227,.09);border-radius:50%;box-shadow:0 0 0 2px rgba(6,14,20,.6),0 0 15px 1px rgba(192,212,218,.04);pointer-events:none}.hero-safe-housing .dial-rotor{position:absolute;inset:0;transform:rotate(var(--rotation,0deg));will-change:transform;pointer-events:none;border-radius:50%}.hero-safe-housing .dial-rotor svg{display:block;width:100%;height:100%;filter:drop-shadow(0 2px 1px rgba(0,0,0,.68))}.hero-hub{width:44%;height:44%;position:absolute;left:28%;top:28%;border-radius:50%;pointer-events:none;background:radial-gradient(circle at 35% 28%,#62727b 0%,#35454f 23%,#1b2a34 46%,#111c26 73%,#09121a 75%,#3e4d55 87%,#111a22 93%);box-shadow:0 7px 15px 5px rgba(0,0,0,.52),0 0 0 1px rgba(194,210,215,.2),inset 0 0 0 8px rgba(6,13,20,.25),inset -10px -13px 24px rgba(1,7,12,.43);display:flex;align-items:center;justify-content:center}.hero-hub::before{content:"";width:54%;height:54%;border-radius:50%;background:radial-gradient(circle at 38% 20%,#293a45,#0e1821 74%);box-shadow:inset 0 3px 9px #03070c,0 0 0 3px #57666c,0 0 0 6px #0a1219}.hero-hub-key{position:absolute;inset:auto;width:38%;height:38%;border-radius:50%;border:2px solid rgba(232,184,64,.7);display:grid;place-items:center;color:#e9c976;background:rgba(7,15,22,.75);font-size:clamp(22px,3vw,28px);font-weight:800;font-variant-numeric:tabular-nums;text-shadow:0 0 20px rgba(239,201,98,.3)}.hero-hub-key::after{content:"";position:absolute;inset:-10px;border:1px dashed rgba(228,181,59,.25);border-radius:50%}.hero-safe-housing .alignment{position:absolute;z-index:3;top:0;left:50%;transform:translate(-50%,-54%);height:13%;width:36px;pointer-events:none;display:flex;align-items:center;flex-direction:column}.hero-safe-housing .alignment::before{content:"";display:block;width:0;height:0;border-left:12px solid transparent;border-right:12px solid transparent;border-top:20px solid #ffd22e;filter:drop-shadow(0 1px 2px #000)}.hero-safe-housing .alignment::after{content:"";width:2px;height:33%;background:linear-gradient(#ffd22e,transparent);box-shadow:0 0 11px #ffd22e}.hero-safe-housing .align-head{position:absolute;top:-22px;color:#f0c96f;font-size:9px;font-weight:800;letter-spacing:.13em}.hero-dial-hint{display:none}@media(max-width:980px){.hero-visual-dial{height:auto;min-height:430px;margin:20px 0 10px}.hero-dial-stage{width:min(100%,420px)}.hero-safe-housing{width:min(100%,390px)}}@media(max-width:720px){.hero-dial-stage{width:min(100%,360px)}.hero-safe-housing{width:min(100%,330px)}.hero-dial-hint{font-size:11px;padding:9px 13px}}

/* v8.5 — accurately circular, machined safe-dial styling.
   The dial remains a decorative interactive element, separate from PWA and QR. */
.hero-visual-dial{
  width:100%;min-width:0;height:auto;min-height:0;max-width:560px;
  margin:0 auto;padding:24px 18px 22px;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:23px;overflow:visible;isolation:isolate;
}
.hero-visual-dial .hero-dial-stage{width:min(100%,440px);min-width:0;flex:none;display:grid;place-items:center}
.hero-visual-dial .hero-safe-housing{
  box-sizing:border-box;width:min(100%,420px);aspect-ratio:1/1;height:auto;flex:none;
  padding:5.2%;border-radius:50%;
  background:
    repeating-conic-gradient(from 0deg,rgba(219,226,227,.022) 0deg,rgba(219,226,227,0) .7deg,rgba(0,0,0,.05) 1.5deg),
    radial-gradient(circle at 32% 24%,#68777e 0%,#36454e 27%,#1b2831 53%,#101920 74%,#46535a 88%,#141b21 95%,#060c10 100%);
  box-shadow:0 26px 54px rgba(0,0,0,.49),inset 0 2px 5px rgba(231,238,240,.24),inset 0 -8px 20px rgba(0,0,0,.69),0 0 0 2px rgba(205,218,223,.19),0 0 0 7px #0b1117,0 0 0 9px rgba(140,153,161,.25);
}
.hero-visual-dial .hero-safe-housing::before{
  inset:3.1%;border:1px solid rgba(218,229,231,.21);
  box-shadow:inset 0 0 0 4px rgba(8,14,18,.78),inset 0 0 0 6px rgba(165,176,180,.26);
}
.hero-visual-dial .hero-safe-housing::after{
  inset:7.9%;box-shadow:inset 0 6px 15px rgba(0,0,0,.53),inset 0 -3px 10px rgba(220,228,230,.1);
}
.hero-visual-dial .inner-ring{
  padding:2.8%;background:conic-gradient(from 15deg,#414d54,#9ba7ac 13%,#38454c 25%,#111a21 41%,#57636a 59%,#172127 78%,#78858a 96%,#414d54);
  box-shadow:inset 0 0 0 2px rgba(9,14,18,.89),inset 0 0 0 4px rgba(175,186,189,.3),0 0 0 2px rgba(9,14,18,.75);
}
.hero-visual-dial .hero-dial-face{
  aspect-ratio:1;border-radius:50%;
  background:
    repeating-conic-gradient(from -12deg,rgba(234,240,238,.012) 0deg,transparent .8deg,rgba(0,0,0,.03) 1.6deg),
    radial-gradient(circle at 35% 27%,#414d53 0%,#29353d 29%,#1b262e 62%,#0d151b 100%);
  box-shadow:inset 0 0 0 3px #090f13,inset 0 0 0 7px rgba(175,186,190,.3),inset 0 0 25px 8px rgba(0,0,0,.5),0 0 0 1px rgba(200,213,215,.32);
}
.hero-visual-dial .hero-dial-face::before{
  inset:32%;border:1px solid rgba(211,222,224,.15);box-shadow:0 0 0 2px rgba(6,12,16,.46);
}
.hero-visual-dial .hero-hub{
  width:34%;height:34%;left:33%;top:33%;
  background:
    repeating-conic-gradient(from 12deg,rgba(231,239,238,.09) 0deg,rgba(16,25,31,.08) 2.1deg,rgba(0,0,0,.2) 3.9deg),
    radial-gradient(circle at 35% 25%,#859199 0%,#424e57 30%,#1e292f 56%,#111b22 74%,#5d676d 87%,#0d151b 97%);
  box-shadow:0 10px 15px rgba(0,0,0,.55),0 0 0 2px #10171b,0 0 0 4px rgba(181,194,199,.25),inset 0 2px 4px rgba(238,244,244,.24),inset 0 -6px 12px rgba(0,0,0,.65);
}
.hero-visual-dial .hero-hub::before{
  width:63%;height:63%;
  background:
    repeating-conic-gradient(from 3deg,#65727a 0deg,#445058 3deg,#303c45 5deg,#627077 7deg),
    radial-gradient(circle,#4d5c66,#131e26);
  box-shadow:inset 0 0 0 2px rgba(220,229,230,.21),inset 0 5px 9px rgba(230,237,238,.11),inset 0 -9px 13px rgba(0,0,0,.65),0 0 0 4px #0c1319,0 0 0 6px #5b676d;
}
.hero-hub-spindle{
  position:absolute;width:22%;height:22%;border-radius:50%;
  background:radial-gradient(circle at 33% 22%,#d0d7d6,#74818a 36%,#344149 72%,#1a252d 100%);
  box-shadow:inset 0 1px 2px rgba(255,255,255,.48),inset 0 -3px 4px rgba(0,0,0,.5),0 0 0 2px #12191f,0 0 0 4px #8d999e;
}
.hero-hub-spindle::after{
  content:'';position:absolute;left:24%;top:46%;width:52%;height:8%;
  background:#26343c;border-top:1px solid rgba(223,233,234,.4);border-radius:2px;
}
.hero-visual-dial .hero-safe-housing .alignment{height:10%;width:28px;transform:translate(-50%,-36%)}
.hero-visual-dial .hero-safe-housing .alignment::before{
  border-left:9px solid transparent;border-right:9px solid transparent;
  border-top:15px solid #ffd22e;filter:drop-shadow(0 2px 2px rgba(0,0,0,.85));
}
.hero-visual-dial .hero-safe-housing .alignment::after{height:25%;width:2px;background:linear-gradient(#ffd22e,#bd9c35 60%,transparent);box-shadow:none}
.hero-visual-dial .hero-safe-housing .align-head{display:none}
.hero-visual-dial .visual-label{
  position:relative;top:auto;right:auto;bottom:auto;left:auto;
  display:inline-flex;width:auto;max-width:100%;gap:9px;
  color:#a7b6bf;font-size:10px;line-height:1.35;letter-spacing:.16em;
  white-space:normal;overflow-wrap:anywhere;
}
.hero-visual-dial .visual-label.label-top{align-self:flex-start;margin-left:12px}
.hero-visual-dial .visual-label.label-bottom{align-self:flex-end;margin-right:12px;text-align:right}
.hero-visual-dial .visual-label .tiny-square,.hero-visual-dial .visual-label .tiny-dot{flex:none}
.hero-visual-dial .orbit,.hero-visual-dial .visual-grid,.hero-visual-dial .visual-techline{pointer-events:none;opacity:.3}
@media(max-width:980px){
  .hero-visual-dial{height:auto;min-height:0;max-width:500px;padding:15px 12px 18px;gap:19px;margin:0 auto 15px}
  .hero-visual-dial .hero-dial-stage{width:min(100%,360px)}
  .hero-visual-dial .hero-safe-housing{width:min(100%,350px)}
}
@media(max-width:600px){
  .hero-visual-dial{height:auto;min-height:0;max-width:380px;padding:13px 14px 16px;gap:17px;margin:0 auto 12px}
  .hero-visual-dial .hero-dial-stage{width:min(100%,270px)}
  .hero-visual-dial .hero-safe-housing{width:min(100%,260px)}
  .hero-visual-dial .visual-label{font-size:8px;letter-spacing:.10em}
  .hero-visual-dial .visual-label.label-top{margin-left:0}
  .hero-visual-dial .visual-label.label-bottom{margin-right:0}
  .hero-visual-dial .orbit,.hero-visual-dial .visual-grid{display:none}
}
@media(max-width:360px){
  .hero-visual-dial .hero-dial-stage{width:min(100%,236px)}
  .hero-visual-dial .hero-safe-housing{width:min(100%,230px)}
}


/* v8.6 — smaller safe dial only on phones; preserve circular shape and interaction. */
@media (max-width: 600px) {
  .hero-visual-dial {
    padding: 8px 12px 10px;
    gap: 12px;
    margin: 0 auto 6px;
  }
  .hero-visual-dial .hero-dial-stage {
    width: min(100%, 225px);
  }
  .hero-visual-dial .hero-safe-housing {
    width: min(100%, clamp(155px, 52vw, 210px));
    height: auto;
    aspect-ratio: 1 / 1;
  }
  .hero-visual-dial .visual-label {
    font-size: 8px;
    line-height: 1.35;
  }
}

/* v8.7 — the mobile safe dial is exactly square at every layer.
   Keep the same visual design, typography and dragging behavior. */
@media (max-width: 600px) {
  .hero-visual-dial {
    --dial-mobile-size: clamp(156px, 52vw, 210px);
    max-width: 100%;
    align-items: center;
  }
  .hero-visual-dial .hero-dial-stage {
    display: grid;
    place-items: center;
    width: var(--dial-mobile-size);
    height: var(--dial-mobile-size);
    min-width: 0;
    min-height: 0;
    aspect-ratio: 1 / 1;
    flex: 0 0 auto;
  }
  .hero-visual-dial .hero-dial-stage .hero-safe-housing {
    display: block;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    min-width: 0;
    min-height: 0;
    padding: 5.2%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    flex: none;
  }
  .hero-visual-dial .hero-safe-housing > .inner-ring {
    display: block;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
  }
  .hero-visual-dial .hero-safe-housing .hero-dial-face {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    touch-action: none;
  }
  .hero-visual-dial .hero-safe-housing .dial-rotor {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
  }
  .hero-visual-dial .hero-safe-housing .dial-rotor svg {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
  }
}

/* ======================================================================
   v8.8  GRAPHITE PRO — PWA client card only
   Presentation overrides: no HTML, JS, loyalty, QR, copy or splash changes.
   Scope all selectors to the installed PWA for the existing client wallet.
   ====================================================================== */
body.installed-app {
  background:#0b1218;
}
body.installed-app #installedCard {
  background:linear-gradient(157deg,#141e26 0%,#0b1218 74%);
  padding:max(9px,env(safe-area-inset-top)) max(9px,env(safe-area-inset-right)) max(9px,env(safe-area-inset-bottom)) max(9px,env(safe-area-inset-left));
}
body.installed-app .loyalty-wallet {
  width:min(100%,540px);
  gap:5px;
}
body.installed-app .loyalty-face {
  background:radial-gradient(ellipse at 95% 0%,rgba(248,192,41,.07),transparent 38%),linear-gradient(155deg,#25333d 0%,#17222b 52%,#111920 100%);
  border:1px solid #4d5d68;
  border-radius:clamp(19px,5vw,26px);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.07),0 14px 40px rgba(0,0,0,.24);
  padding:clamp(13px,3.5vw,23px);
}
body.installed-app .wallet-top {
  color:#f0ce64;
  letter-spacing:.11em;
  font-weight:800;
  gap:7px;
}
body.installed-app .wallet-chip {color:#e9cb68}
body.installed-app .wallet-active {
  padding:5px 10px;
  border-radius:999px;
  border:1px solid rgba(81,188,133,.32);
  background:rgba(21,75,51,.34);
  color:#9ce5bc;
  font-weight:750;
  line-height:1.1;
  white-space:nowrap;
}
body.installed-app .wallet-active i {
  background:#73dfa5;
  box-shadow:0 0 0 3px rgba(115,223,165,.13);
  width:7px;height:7px;
}
body.installed-app .wallet-active.is-blocked {
  color:#ff8e94!important;
  background:rgba(113,28,38,.32);
  border-color:rgba(255,94,109,.48);
}
body.installed-app .loyalty-front h1 {
  font-weight:850;
  color:#f7f9fb;
  letter-spacing:-.055em;
  font-size:clamp(28px,7.4vw,42px);
  margin:clamp(12px,2.2dvh,20px) 0 3px;
}
body.installed-app .wallet-sub {
  color:#adbac4;
  font-weight:400;
  font-size:clamp(11px,2.95vw,14px);
}
body.installed-app .installed-call {
  background:linear-gradient(180deg,#ffde5c,#ffd030 88%);
  color:#152027;
  border:1px solid rgba(255,237,145,.64);
  border-radius:13px;
  box-shadow:0 5px 13px rgba(0,0,0,.12);
  min-height:clamp(46px,7dvh,61px);
  margin-top:clamp(10px,1.9dvh,17px);
  font-weight:850;
  font-size:clamp(16px,4.25vw,23px);
  text-decoration:none;
}
body.installed-app .installed-call:active {filter:brightness(.95)}
body.installed-app .loyalty-discount-panel {
  background:linear-gradient(147deg,#25313b 0%,#1b2731 58%,#18232c 100%);
  border:1px solid #566773;
  border-radius:18px;
  padding:clamp(12px,3.5vw,19px);
  margin-top:clamp(11px,2dvh,17px);
  color:#f5f8fa;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.045);
  text-align:left;
}
body.installed-app .loyalty-discount-panel>span:first-child {
  color:#f9d363;
  font-weight:850;
  letter-spacing:.105em;
  font-size:clamp(9px,2.4vw,11px);
}
body.installed-app .loyalty-discount-panel strong {
  display:block;
  color:#fafbfc;
  font-size:clamp(44px,9.3dvh,75px);
  line-height:.99;
  font-weight:850;
  letter-spacing:-.075em;
  margin:clamp(5px,.9dvh,8px) 0 7px;
}
body.installed-app .loyalty-discount-panel small {
  color:#b8c6d0;
  font-size:clamp(10px,2.75vw,13px);
  line-height:1.3;
}
body.installed-app .loyalty-progress {
  height:5px;
  background:#3f4b55;
  margin-top:clamp(9px,1.4dvh,12px);
}
body.installed-app .loyalty-progress i {background:#ffcf43}
body.installed-app .wallet-tap {
  color:#f7d56e;
  font-weight:750;
  margin-top:clamp(9px,1.4dvh,13px);
  font-size:clamp(10px,2.65vw,12px);
}
body.installed-app .wallet-tap b {font-size:18px}
body.installed-app .wallet-services {
  margin-top:clamp(12px,1.9dvh,18px);
  gap:6px;
}
body.installed-app .wallet-services strong {
  color:#f4d36a;
  font-size:clamp(10px,2.4vw,11px);
  letter-spacing:.17em;
  font-weight:850;
}
body.installed-app .wallet-services ul {gap:0}
body.installed-app .wallet-services li {
  color:#f0f5f7;
  border-bottom:1px solid rgba(172,196,212,.17);
  padding:clamp(5px,.85dvh,9px) 0;
  font-size:clamp(11px,2.8vw,13px);
  line-height:1.22;
}
body.installed-app .wallet-services li:last-child {border-bottom:0}
body.installed-app .wallet-services li b {
  color:#e5edf1;
  font-weight:750;
  font-size:clamp(10px,2.68vw,13px);
}
body.installed-app .wallet-legal {
  color:#aebbc5;
  font-size:clamp(9px,2.25vw,11px);
  text-align:center;
  margin:7px auto 0;
  line-height:1.35;
}
body.installed-app .loyalty-history-button {
  margin:6px 3px 0;
  border:1px solid #485966;
  background:#17232c;
  color:#f8d56b;
  font-size:clamp(11px,2.8vw,13px);
  font-weight:800;
  min-height:clamp(39px,5.5dvh,47px);
  border-radius:12px;
  box-shadow:inset 0 1px rgba(255,255,255,.04);
}
body.installed-app .pwa-copyright {
  color:#8597a2;
  font-size:clamp(8px,2vw,10px);
  margin:1px auto 0;
}
/* Back of the same client card: retain the existing one-tap QR flip. */
body.installed-app .loyalty-back .wallet-back-name {
  gap:6px;
  margin:clamp(22px,4dvh,40px) auto 0;
}
body.installed-app .loyalty-back .wallet-back-name strong {
  color:#f6f9fa;
  font-weight:800;
}
body.installed-app .loyalty-back .wallet-back-name span {color:#adbdc7}
body.installed-app .loyalty-qr-frame {
  border-radius:18px;
  border:9px solid #fff;
  box-shadow:0 16px 38px rgba(0,0,0,.32),0 0 0 1px rgba(202,218,227,.27);
}
body.installed-app .loyalty-pending {
  color:#ffd977;
  background:rgba(255,208,48,.09);
  border-color:rgba(255,208,48,.34);
}
/* Blocked state overrides the ordinary gradient, never hides the red warning. */
body.installed-app .loyalty-discount-panel.is-blocked {
  background:linear-gradient(155deg,#49292f,#241d25);
  border-color:#ef5b66;
}
body.installed-app .loyalty-discount-panel.is-blocked strong {color:#ff7883}
/* Short phones keep the card in a single viewport; the service list alone may scroll. */
@media(max-height:700px){
  body.installed-app .loyalty-face {padding:10px 13px}
  body.installed-app .loyalty-front h1 {font-size:clamp(24px,7vw,34px);margin:8px 0 3px}
  body.installed-app .installed-call {min-height:41px;margin-top:7px}
  body.installed-app .loyalty-discount-panel {padding:10px 12px;margin-top:9px}
  body.installed-app .loyalty-discount-panel strong {font-size:clamp(36px,7dvh,52px);margin:3px 0 4px}
  body.installed-app .loyalty-discount-panel small {font-size:10px}
  body.installed-app .wallet-tap {margin-top:5px}
  body.installed-app .wallet-services {margin-top:8px;gap:3px}
  body.installed-app .wallet-services li {padding:3px 0;font-size:10.5px}
  body.installed-app .wallet-legal {margin-top:4px;font-size:9px}
  body.installed-app .loyalty-history-button {min-height:36px;margin-top:4px}
}
@media(max-width:350px){
  body.installed-app .loyalty-face {padding:10px 11px}
  body.installed-app .installed-call {font-size:clamp(15px,4.6vw,18px)}
  body.installed-app .loyalty-discount-panel>span:first-child {font-size:8px;letter-spacing:.07em}
  body.installed-app .wallet-services li {font-size:10.25px}
}
