/* Sana Chat — home page. Navy + gold brand, glass, gradient mesh, motion. */
:root {
  --navy: #0b3a5b; --navy2: #0a2740; --ink: #0d1b2a; --text: #22313f; --muted: #5d6b7a; --line: #e5e9f0;
  --gold: #d4a64a; --gold2: #f1c86a; --violet: #7b5cff; --blue: #2f6fc0; --bg: #f6f8fb; --r: 18px;
  --shadow: 0 10px 40px rgba(11, 58, 91, .10); --shadow2: 0 24px 70px rgba(11, 58, 91, .18);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
/* Decorative glows must never widen the page (iOS Safari zooms out and shows an empty strip on the right). */
main, section, footer { max-width: 100%; overflow-x: hidden; overflow-x: clip; }
body { margin: 0; font: 16px/1.6 Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif; color: var(--text); background: #fff; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
h1, h2, h3 { color: var(--ink); line-height: 1.15; margin: 0 0 14px; letter-spacing: -.02em; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 22px; }
.wrap.narrow { max-width: 860px; }
section { padding: 96px 0; position: relative; }
section.soft { background: var(--bg); }

/* animated background */
.bg-mesh { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg-mesh i { position: absolute; width: 46vw; height: 46vw; border-radius: 50%; filter: blur(90px); opacity: .28; animation: drift 22s ease-in-out infinite alternate; }
.bg-mesh .b1 { background: #8fc4ff; top: -14vw; left: -10vw; }
.bg-mesh .b2 { background: var(--gold2); top: 10vh; right: -16vw; animation-duration: 28s; }
.bg-mesh .b3 { background: #b9a6ff; bottom: -20vw; left: 30vw; animation-duration: 34s; }
@keyframes drift { to { transform: translate(6vw, 8vh) scale(1.15); } }
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--gold), var(--violet)); transform-origin: 0 50%; transform: scaleX(0); z-index: 60; }

/* header */
.hdr { position: fixed; top: 0; left: 0; right: 0; z-index: 50; transition: background .3s, box-shadow .3s, padding .3s; padding: 14px 0; }
.hdr.solid { background: rgba(255, 255, 255, .82); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); box-shadow: 0 1px 0 var(--line); padding: 8px 0; }
.hdr .wrap { display: flex; align-items: center; gap: 26px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: var(--ink); }
.logo img { transition: transform .5s cubic-bezier(.2, 1.4, .4, 1); }
.logo:hover img { transform: rotate(-12deg) scale(1.08); }
#nav { display: flex; gap: 24px; margin-left: 12px; }
#nav a { font-weight: 600; font-size: 15px; color: var(--muted); position: relative; }
#nav a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: -4px; height: 2px; background: var(--gold); transition: right .3s; }
#nav a:hover { color: var(--ink); } #nav a:hover::after { right: 0; }
.acts { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.login { font-weight: 600; font-size: 15px; }
.langs { display: flex; background: rgba(11, 58, 91, .06); border-radius: 999px; padding: 3px; }
.langs a { padding: 4px 10px; font-size: 12.5px; font-weight: 700; border-radius: 999px; color: var(--muted); transition: .2s; }
.langs a.on { background: #fff; color: var(--navy); box-shadow: 0 2px 8px rgba(0, 0, 0, .08); }
.burger { display: none; margin-left: auto; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; flex-direction: column; justify-content: center; gap: 5px; }
.burger span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: 14px; font-weight: 700; font-size: 15px; border: 0; cursor: pointer; transition: transform .25s, box-shadow .25s, background .25s; position: relative; overflow: hidden; }
.btn.sm { height: 40px; padding: 0 16px; font-size: 14px; border-radius: 12px; }
.btn.big { height: 56px; padding: 0 30px; font-size: 16.5px; border-radius: 16px; }
.btn.gold { background: linear-gradient(135deg, var(--gold2), var(--gold)); color: #2a1d00; box-shadow: 0 8px 24px rgba(212, 166, 74, .38); }
.btn.gold:hover { box-shadow: 0 14px 34px rgba(212, 166, 74, .5); }
.btn.ghost { background: rgba(255, 255, 255, .7); color: var(--navy); box-shadow: inset 0 0 0 1.5px rgba(11, 58, 91, .18); }
.btn.ghost:hover { background: #fff; }
.btn.line { background: #fff; color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--navy); }
.btn.wide { width: 100%; }
.btn b { transition: transform .3s; } .btn:hover b { transform: translateX(4px); }
.shine::after { content: ''; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .65), transparent); transform: skewX(-20deg); animation: shine 4.5s ease-in-out infinite; }
@keyframes shine { 0%, 60% { left: -60%; } 100% { left: 130%; } }

/* hero */
.hero { padding: 150px 0 40px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.badge { display: inline-flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px 7px 10px; font-size: 14px; font-weight: 600; color: var(--navy); box-shadow: var(--shadow); }
.badge i { width: 9px; height: 9px; border-radius: 50%; background: #2fb36b; box-shadow: 0 0 0 0 rgba(47, 179, 107, .6); animation: ping 1.8s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(47, 179, 107, 0); } 100% { box-shadow: 0 0 0 0 rgba(47, 179, 107, 0); } }
.hero h1 { font-size: clamp(38px, 5.4vw, 66px); font-weight: 900; margin: 22px 0 18px; }
.grad { font-style: normal; background: linear-gradient(90deg, var(--gold), var(--violet), var(--blue), var(--gold)); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: flow 8s linear infinite; }
@keyframes flow { to { background-position: 300% 0; } }
.type { color: var(--navy); position: relative; }
.type::after { content: ''; display: inline-block; width: 3px; height: .9em; background: var(--gold); margin-left: 6px; vertical-align: -.08em; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.lead { font-size: 19px; color: var(--muted); max-width: 560px; }
.cta { display: flex; gap: 14px; flex-wrap: wrap; margin: 30px 0 22px; }
.note { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; color: var(--muted); font-weight: 500; }

.mock { position: relative; transition: transform .3s ease-out; transform-style: preserve-3d; }
.browser { background: #fff; border-radius: 20px; box-shadow: var(--shadow2); overflow: hidden; border: 1px solid var(--line); position: relative; min-height: 440px; color: var(--text); }
.bar { height: 40px; background: #f2f4f8; display: flex; align-items: center; gap: 7px; padding: 0 16px; }
.bar i { width: 11px; height: 11px; border-radius: 50%; background: #e0e4ea; } .bar i:nth-child(1) { background: #ff6159; } .bar i:nth-child(2) { background: #ffbd2e; } .bar i:nth-child(3) { background: #28c941; }
.bar span { margin-left: 14px; background: #fff; border-radius: 8px; padding: 3px 14px; font-size: 12px; color: var(--muted); }
.page { padding: 24px; display: grid; gap: 12px; }
.ph { height: 12px; background: linear-gradient(90deg, #eef1f6, #f6f8fb, #eef1f6); background-size: 200% 100%; border-radius: 6px; animation: shimmer 2.4s infinite linear; }
.ph.h { height: 90px; border-radius: 12px; } .w40 { width: 40%; } .w60 { width: 60%; } .w70 { width: 70%; } .w80 { width: 80%; }
@keyframes shimmer { to { background-position: -200% 0; } }
.wdg { position: absolute; right: 18px; bottom: 18px; width: 76%; max-width: 330px; background: #fff; border-radius: 18px; box-shadow: 0 18px 50px rgba(11, 58, 91, .25); overflow: hidden; }
.wh { display: flex; gap: 10px; align-items: center; padding: 12px 14px; background: linear-gradient(135deg, var(--navy), #164f7a); color: #fff; }
.wh b { display: block; font-size: 14px; } .wh small { font-size: 12px; opacity: .85; display: flex; align-items: center; gap: 6px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: #3ddc84; display: inline-block; }
.av { width: 36px; height: 36px; border-radius: 50%; background: var(--gold); display: grid; place-items: center; font-weight: 800; color: #2a1d00; }
.av.ai { background: linear-gradient(135deg, var(--violet), var(--gold2)); color: #fff; font-size: 13px; animation: glowpulse 2.6s infinite; }
@keyframes glowpulse { 50% { box-shadow: 0 0 0 6px rgba(123, 92, 255, .2); } }
.wb { padding: 14px; display: flex; flex-direction: column; gap: 8px; min-height: 210px; background: #f8fafc; }
.msg { max-width: 85%; padding: 9px 13px; border-radius: 14px; font-size: 13.5px; line-height: 1.45; opacity: 0; transform: translateY(10px) scale(.96); transition: .35s cubic-bezier(.2, 1.2, .4, 1); }
.msg.show { opacity: 1; transform: none; }
.msg.in { background: #fff; border: 1px solid #e3e8ef; border-bottom-left-radius: 4px; align-self: flex-start; }
.msg.out { background: var(--navy); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.msg small { display: block; margin-top: 5px; font-size: 11px; color: var(--violet); }
.msg.typing { display: flex; gap: 4px; padding: 12px 14px; }
.msg.typing i { width: 7px; height: 7px; border-radius: 50%; background: #9aa6b4; animation: bounce 1.2s infinite; }
.msg.typing i:nth-child(2) { animation-delay: .15s; } .msg.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 30% { transform: translateY(-5px); opacity: .6; } }
.orbit { position: absolute; width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; color: #fff; box-shadow: 0 12px 30px rgba(0, 0, 0, .16); animation: float 6s ease-in-out infinite; }
.orbit svg { width: 26px; height: 26px; }
.o1 { background: #25d366; top: -18px; left: 8%; } .o2 { background: #2aa1da; top: 22%; left: -26px; animation-delay: -1.2s; }
.o3 { background: linear-gradient(45deg, #f09433, #dc2743, #bc1888); top: -10px; right: 18%; animation-delay: -2.4s; }
.o4 { background: #7b3ff2; bottom: 34%; left: -20px; animation-delay: -3.6s; } .o5 { background: #0077ff; top: 30%; right: -22px; animation-delay: -4.8s; }
@keyframes float { 50% { transform: translateY(-14px) rotate(4deg); } }
.notif { position: absolute; left: -30px; bottom: 26px; display: flex; gap: 10px; align-items: center; background: #fff; border-radius: 14px; padding: 10px 16px 10px 10px; box-shadow: var(--shadow2); font-size: 13px; opacity: 0; transform: translateX(-20px); transition: .5s cubic-bezier(.2, 1.3, .4, 1); }
.notif.show { opacity: 1; transform: none; }
.notif b { display: block; color: var(--ink); } .notif .ic { width: 38px; height: 38px; border-radius: 10px; background: #e9f8ef; display: grid; place-items: center; font-size: 19px; }

.marquee { margin-top: 70px; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.track { display: flex; gap: 34px; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
.mq { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.mq i { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; color: #fff; } .mq svg { width: 18px; height: 18px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* stats */
.stats { padding: 30px 0 60px; }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { background: rgba(255, 255, 255, .75); backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; text-align: center; box-shadow: var(--shadow); }
.stat b { font-size: 40px; font-weight: 900; color: var(--navy); } .stat small { font-weight: 700; color: var(--gold); margin-left: 4px; }
.stat span { display: block; color: var(--muted); font-size: 14px; }

/* sections */
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.kicker { display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); background: rgba(212, 166, 74, .12); padding: 6px 14px; border-radius: 999px; margin-bottom: 14px; }
.sec-head h2 { font-size: clamp(30px, 3.6vw, 46px); font-weight: 900; }
.sec-head p { font-size: 18px; color: var(--muted); margin: 0; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 28px; transition: transform .3s ease-out, box-shadow .3s; position: relative; overflow: hidden; }
.card::before { content: ''; position: absolute; inset: 0; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(212, 166, 74, .14), transparent 40%); opacity: 0; transition: opacity .3s; }
.card:hover { box-shadow: var(--shadow2); } .card:hover::before { opacity: 1; }
.card h3 { font-size: 19px; margin-top: 18px; } .card p { color: var(--muted); margin: 0; font-size: 15px; }
.fi { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(11, 58, 91, .08), rgba(212, 166, 74, .18)); color: var(--navy); transition: transform .4s cubic-bezier(.2, 1.4, .4, 1); }
.fi svg { width: 26px; height: 26px; } .card:hover .fi { transform: rotate(-8deg) scale(1.1); }
.glow { background: linear-gradient(#fff, #fff) padding-box, linear-gradient(135deg, rgba(123, 92, 255, .5), rgba(212, 166, 74, .6)) border-box; border: 1.5px solid transparent; }

/* AI flow */
.ai { background: radial-gradient(1200px 500px at 50% 0%, rgba(123, 92, 255, .08), transparent 70%); }
.ai-flow { display: flex; align-items: center; justify-content: center; gap: 0; margin: -20px auto 48px; flex-wrap: wrap; }
.node { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 10px 18px; font-weight: 700; color: var(--navy); box-shadow: var(--shadow); text-transform: uppercase; font-size: 13px; letter-spacing: .06em; }
.node span { font-size: 18px; }
.beam { width: 70px; height: 3px; background: linear-gradient(90deg, transparent, var(--violet), var(--gold), transparent); background-size: 200% 100%; animation: beam 1.6s linear infinite; border-radius: 3px; }
@keyframes beam { from { background-position: 100% 0; } to { background-position: -100% 0; } }

/* channels */
.channels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.ch { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 24px; transition: transform .3s ease-out, box-shadow .3s; }
.ch:hover { box-shadow: var(--shadow2); }
.lg { width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; color: #fff; margin-bottom: 14px; transition: transform .4s cubic-bezier(.2, 1.4, .4, 1); }
.lg svg { width: 26px; height: 26px; } .ch:hover .lg { transform: scale(1.12) rotate(6deg); }
.ch h3 { font-size: 17px; margin-bottom: 6px; } .ch p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* steps */
.dark { background: linear-gradient(160deg, var(--navy2), var(--navy) 60%, #164f7a); color: #c9d6e3; overflow: hidden; }
.dark::before { content: ''; position: absolute; inset: 0; background: radial-gradient(600px 300px at 80% 0%, rgba(212, 166, 74, .2), transparent 60%), radial-gradient(500px 300px at 0% 100%, rgba(123, 92, 255, .22), transparent 60%); }
.dark h2, .dark h3 { color: #fff; } .dark .sec-head p { color: #b8c6d4; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; position: relative; }
.step { background: linear-gradient(160deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .03)); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--r); padding: 28px; position: relative; transition: transform .3s, border-color .3s; }
.step:hover { transform: translateY(-4px); border-color: rgba(212, 166, 74, .45); }
.num { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-weight: 900; font-size: 20px; color: #2a1d00; background: linear-gradient(135deg, var(--gold2), var(--gold)); margin-bottom: 16px; }
.step p { margin: 0; } .step code { display: block; margin-top: 14px; background: rgba(0, 0, 0, .3); padding: 10px 12px; border-radius: 10px; font-size: 12px; color: var(--gold2); word-break: break-all; }

/* pricing */
.cur { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; margin: -20px 0 34px; }
.cur button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 14px; font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; color: var(--muted); transition: .2s; }
.cur button.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 900px; margin: 0 auto; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 34px; position: relative; }
.plan.pro { background: linear-gradient(#fff, #fff) padding-box, linear-gradient(135deg, var(--gold), var(--violet), var(--gold)) border-box; border: 2px solid transparent; box-shadow: var(--shadow2); }
.plan .tag { position: absolute; top: -13px; right: 24px; background: linear-gradient(135deg, var(--gold2), var(--gold)); color: #2a1d00; font-size: 12.5px; font-weight: 800; padding: 5px 14px; border-radius: 999px; }
.price { font-size: 42px; font-weight: 900; color: var(--ink); margin: 10px 0 22px; } .price small { font-size: 15px; color: var(--muted); font-weight: 500; }
.price .pop { display: inline-block; animation: pop .4s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes pop { from { transform: scale(.7); opacity: .3; } }
.plan ul { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 9px; }
.plan li { padding-left: 28px; position: relative; font-size: 14.5px; }
.plan li::before { content: '✓'; position: absolute; left: 0; top: 0; width: 19px; height: 19px; border-radius: 50%; background: #e4f6ec; color: #1c7a45; font-size: 11px; display: grid; place-items: center; font-weight: 900; }
.plan li.off { color: #a3adb8; text-decoration: line-through; } .plan li.off::before { content: '–'; background: #f0f2f5; color: #a3adb8; }
.disc { text-align: center; color: var(--muted); margin-top: 26px; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 0 22px; transition: box-shadow .3s; }
.faq details[open] { box-shadow: var(--shadow); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 30px 20px 0; font-weight: 700; color: var(--ink); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 0; top: 16px; font-size: 24px; color: var(--gold); transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0 0 20px; color: var(--muted); animation: fadein .4s; }
@keyframes fadein { from { opacity: 0; transform: translateY(-6px); } }

/* CTA */
.cta-box { text-align: center; padding: 64px 30px; border-radius: 28px; background: linear-gradient(135deg, var(--navy), #164f7a 50%, #3a2f7a); color: #d7e3ee; position: relative; overflow: hidden; }
.cta-box::before { content: ''; position: absolute; width: 500px; height: 500px; border-radius: 50%; background: radial-gradient(circle, rgba(212, 166, 74, .35), transparent 60%); top: -250px; right: -150px; animation: drift 12s ease-in-out infinite alternate; }
.cta-box h2 { color: #fff; font-size: clamp(28px, 3.4vw, 42px); position: relative; } .cta-box p { position: relative; font-size: 18px; margin: 0 0 28px; }

/* footer */
footer { background: var(--navy2); color: #9fb2c4; padding: 60px 0 30px; }
footer .wrap { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr 1.2fr; gap: 30px; }
footer .logo { color: #fff; margin-bottom: 12px; }
footer h4 { color: #fff; margin: 0 0 12px; font-size: 15px; }
footer a:not(.logo) { display: block; padding: 3px 0; font-size: 14.5px; } footer a:hover { color: #fff; }
footer .copy { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 22px; font-size: 13.5px; }
.foot-l { display: inline-flex; margin-top: 14px; background: rgba(255, 255, 255, .08); }
.foot-l { gap: 2px; padding: 4px; }
.foot-l a { display: inline-block !important; color: #c9d6e3; padding: 6px 12px !important; font-size: 13px; white-space: nowrap; } .foot-l a.on { background: rgba(255, 255, 255, .16); color: #fff; box-shadow: none; }

/* cookie */
.cookie { position: fixed; left: 50%; bottom: 20px; transform: translate(-50%, 140%); z-index: 70; display: flex; align-items: center; gap: 14px; background: rgba(13, 27, 42, .94); color: #dfe7ef; backdrop-filter: blur(12px); border-radius: 18px; padding: 14px 16px 14px 18px; width: min(720px, calc(100% - 28px)); box-shadow: 0 20px 60px rgba(0, 0, 0, .3); transition: transform .5s cubic-bezier(.2, 1.3, .4, 1); }
.cookie.show { transform: translate(-50%, 0); }
.cookie p { margin: 0; font-size: 13.5px; line-height: 1.5; flex: 1; } .cookie a { color: var(--gold2); text-decoration: underline; }
.cookie .ck { font-size: 26px; animation: float 4s ease-in-out infinite; }

/* reveal */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
.rv.in { opacity: 1; transform: none; }
.d1 { transition-delay: .08s; } .d2 { transition-delay: .16s; } .d3 { transition-delay: .24s; } .d4 { transition-delay: .32s; }

/* mobile */
@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; } .hero { padding-top: 120px; }
  .grid3, .channels { grid-template-columns: 1fr 1fr; } .stats .wrap { grid-template-columns: 1fr 1fr; }
  .steps, .plans { grid-template-columns: 1fr; }
  #nav, .acts .login { display: none; }
  .burger { display: flex; }
  .acts { margin-left: auto; } .acts .btn { display: none; }
  .hdr .wrap { gap: 14px; }
  .logo span { white-space: nowrap; }
}
@media (max-width: 560px) {
  /* Languages move into the menu so the logo and the menu button always fit. */
  .acts .langs { display: none; }
  .hdr .logo { font-size: 17px; } .hdr .logo img { width: 30px; height: 30px; }
}

/* Mobile menu: burger -> panel sliding in from the right */
.burger { flex: 0 0 44px; width: 44px; height: 44px; align-items: center; border-radius: 13px; background: rgba(11, 58, 91, .06); position: relative; z-index: 2; }
.burger span { width: 20px; }
.burger span:nth-child(2) { width: 14px; margin-left: 6px; }
.burger:active { transform: scale(.94); }
.scrim { display: none; position: fixed; inset: 0; z-index: 90; background: rgba(6, 26, 43, .45); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility .35s; }
.drawer { display: none; position: fixed; top: 0; right: 0; bottom: 0; z-index: 100; width: min(86vw, 360px); flex-direction: column; gap: 22px; padding: 18px 22px calc(26px + env(safe-area-inset-bottom)); overflow-y: auto; overscroll-behavior: contain;
  background: radial-gradient(120% 60% at 100% 0, rgba(123, 92, 255, .10), transparent 60%), radial-gradient(90% 50% at 0 100%, rgba(212, 166, 74, .14), transparent 60%), #fff;
  box-shadow: -24px 0 60px rgba(6, 26, 43, .22); border-radius: 26px 0 0 26px;
  transform: translateX(105%); visibility: hidden; transition: transform .5s cubic-bezier(.22, 1, .36, 1), visibility .5s; }
.dr-top { display: flex; align-items: center; justify-content: space-between; }
.dr-top .logo { font-size: 17px; }
.dr-x { width: 42px; height: 42px; border: 0; border-radius: 12px; background: rgba(11, 58, 91, .06); color: var(--navy); font-size: 26px; line-height: 1; cursor: pointer; transition: transform .35s, background .2s; }
.dr-x:hover { background: rgba(11, 58, 91, .12); transform: rotate(90deg); }
.dr-nav { display: flex; flex-direction: column; }
.dr-nav a { display: flex; align-items: center; justify-content: space-between; padding: 15px 4px; font-size: 19px; font-weight: 700; color: var(--ink); border-bottom: 1px solid var(--line); }
.dr-nav a::after { content: '→'; color: var(--gold); font-weight: 800; transition: transform .25s; }
.dr-nav a:active::after, .dr-nav a:hover::after { transform: translateX(5px); }
.dr-langs { align-self: flex-start; }
.dr-langs a { padding: 7px 16px; font-size: 14px; }
.dr-acts { margin-top: auto; display: grid; gap: 10px; }
.dr-acts .btn { height: 52px; font-size: 16px; }
/* staggered entrance of the contents */
.drawer > *, .dr-nav a { opacity: 0; transform: translateX(28px); transition: opacity .4s ease, transform .5s cubic-bezier(.22, 1, .36, 1); }
body.menu-open { overflow: hidden; }
body.menu-open #sanalogos-chat, body.menu-open .cookie { visibility: hidden; opacity: 0; }
body.menu-open .scrim { opacity: 1; visibility: visible; }
body.menu-open .drawer { transform: none; visibility: visible; }
body.menu-open .drawer > *, body.menu-open .dr-nav a { opacity: 1; transform: none; }
body.menu-open .dr-top { transition-delay: .08s; }
body.menu-open .dr-nav a:nth-child(1) { transition-delay: .12s; } body.menu-open .dr-nav a:nth-child(2) { transition-delay: .16s; }
body.menu-open .dr-nav a:nth-child(3) { transition-delay: .20s; } body.menu-open .dr-nav a:nth-child(4) { transition-delay: .24s; }
body.menu-open .dr-nav a:nth-child(5) { transition-delay: .28s; }
body.menu-open .dr-langs { transition-delay: .32s; } body.menu-open .dr-acts { transition-delay: .36s; }
body.menu-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .burger span:nth-child(2) { opacity: 0; transform: translateX(8px); }
body.menu-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 980px) {
  .drawer, .scrim { display: flex; }
  .notif { left: 0; }
  .orbit { width: 40px; height: 40px; } .orbit svg { width: 20px; height: 20px; }
  footer .wrap { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .grid3, .channels { grid-template-columns: 1fr; }
  section { padding: 70px 0; }
  .cookie { flex-wrap: wrap; } .cookie .btn { width: 100%; }
  .beam { width: 26px; }
  .browser { min-height: 400px; } .wdg { width: 88%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv { opacity: 1; transform: none; } .msg { opacity: 1; transform: none; }
}

/* richer section backgrounds */
section { isolation: isolate; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(11, 58, 91, .09) 1px, transparent 1.4px); background-size: 26px 26px; mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%); }
.ai::after { content: ''; position: absolute; inset: 0; z-index: -1; background: conic-gradient(from 200deg at 15% 20%, rgba(123, 92, 255, .10), transparent 25%), conic-gradient(from 20deg at 85% 80%, rgba(212, 166, 74, .14), transparent 25%); }
#channels::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(transparent 0, rgba(246, 248, 251, .7) 40%, transparent 100%), repeating-linear-gradient(90deg, rgba(11, 58, 91, .035) 0 1px, transparent 1px 80px), repeating-linear-gradient(0deg, rgba(11, 58, 91, .035) 0 1px, transparent 1px 80px); }
section.soft { background: radial-gradient(900px 400px at 100% 0%, rgba(212, 166, 74, .10), transparent 60%), radial-gradient(800px 400px at 0% 100%, rgba(47, 111, 192, .08), transparent 60%), var(--bg); }
.dark::after { content: ''; position: absolute; inset: auto 0 0 0; height: 140px; z-index: 0; pointer-events: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 140' preserveAspectRatio='none'%3E%3Cpath d='M0 80 C 240 20 480 140 720 80 S 1200 20 1440 80 V140 H0Z' fill='%23ffffff' fill-opacity='.05'/%3E%3Cpath d='M0 100 C 300 60 600 150 900 100 S 1300 60 1440 100 V140 H0Z' fill='%23ffffff' fill-opacity='.05'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat; animation: wave 12s ease-in-out infinite alternate; }
@keyframes wave { to { transform: translateX(-3%) scaleY(1.15); } }
.dark .wrap { position: relative; z-index: 1; }
#pricing::before { content: ''; position: absolute; left: 50%; top: 40%; width: 700px; height: 700px; transform: translate(-50%, -50%); z-index: -1; border-radius: 50%; background: radial-gradient(circle, rgba(123, 92, 255, .10), rgba(212, 166, 74, .08) 40%, transparent 70%); filter: blur(10px); animation: drift 16s ease-in-out infinite alternate; }
.stats .stat { position: relative; overflow: hidden; }
.stats .stat::after { content: ''; position: absolute; inset: -40%; background: conic-gradient(from 0deg, transparent, rgba(212, 166, 74, .18), transparent 30%); animation: spin 8s linear infinite; z-index: -1; }
@keyframes spin { to { transform: rotate(360deg); } }

/* documents and contacts */
.doc-main { padding: 130px 0 80px; min-height: 60vh; }
.doc-head { text-align: center; margin-bottom: 30px; } .doc-head h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 900; }
.doc-card { padding: 34px 38px; }
.doc-body h2 { font-size: 20px; margin: 26px 0 8px; } .doc-body h2:first-child { margin-top: 0; }
.doc-body p, .doc-body li { color: var(--text); font-size: 15.5px; } .doc-body ul { padding-left: 20px; }
.doc-body a { color: var(--blue); text-decoration: underline; }
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 22px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.contact-list li > span { width: 36px; height: 36px; border-radius: 10px; background: var(--bg); display: grid; place-items: center; flex: none; }
.contact-list a { color: var(--navy); font-weight: 600; }
.cform { display: grid; gap: 12px; }
.cform label { display: grid; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.cform input, .cform textarea { font: inherit; font-size: 15px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; outline: none; transition: border-color .2s, box-shadow .2s; background: #fff; color: var(--ink); }
.cform input:focus, .cform textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(212, 166, 74, .15); }
.cform .small { font-size: 12.5px; margin: 0; text-align: center; } .cform .small a { color: var(--muted); }
.ok-box { background: #e9f8ef; color: #1c7a45; padding: 16px; border-radius: 12px; font-weight: 600; }
.err-box { background: #fdeaea; color: #b4282d; padding: 12px 14px; border-radius: 12px; margin-bottom: 12px; }
.map { margin-top: 22px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); } .map iframe { width: 100%; height: 360px; border: 0; display: block; }
@media (max-width: 980px) { .contact-grid { grid-template-columns: 1fr; } footer .wrap { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { footer .wrap { grid-template-columns: 1fr; } .doc-card { padding: 24px 20px; } }
/* ============ 3.8: AI site check, devices, AI invitations, team ============ */
.muted { color: var(--muted); }
.hidden { display: none !important; }
/* AI check of your site */
.audit { background: radial-gradient(900px 400px at 50% 0%, rgba(123,92,255,.10), transparent 70%), linear-gradient(180deg, #fff, var(--bg)); }
.au-form { max-width: 680px; margin: -18px auto 0; display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 20px; padding: 8px 8px 8px 18px; box-shadow: 0 20px 50px rgba(11,58,91,.14), inset 0 0 0 1.5px rgba(11,58,91,.08); transition: box-shadow .3s; }
.au-form:focus-within { box-shadow: 0 24px 60px rgba(123,92,255,.22), inset 0 0 0 2px var(--violet); }
.au-ic { font-size: 22px; }
.au-form input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 17px; color: var(--ink); background: transparent; height: 48px; }
.au-form .btn { height: 52px; white-space: nowrap; }
.au-wait { max-width: 680px; margin: 28px auto 0; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--muted); }
.au-wait b { color: var(--ink); font-size: 17px; }
.au-scan { width: 220px; height: 6px; border-radius: 99px; background: #e7ebf3; overflow: hidden; }
.au-scan i { display: block; width: 40%; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--violet), var(--gold)); animation: auscan 1.2s ease-in-out infinite; }
@keyframes auscan { 0% { transform: translateX(-100%); } 100% { transform: translateX(250%); } }
.au-err { text-align: center; color: #d23c45; font-weight: 600; margin: 20px 0 0; }
.au-res { margin-top: 44px; display: grid; grid-template-columns: 1.25fr .85fr; gap: 28px; align-items: start; animation: auin .6s cubic-bezier(.2,.9,.3,1); }
@keyframes auin { from { opacity: 0; transform: translateY(24px); } }
.au-col { display: grid; gap: 16px; }
.au-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px 24px; box-shadow: 0 10px 30px rgba(11,58,91,.06); }
.au-card h3 { font-size: 17px; margin: 0 0 10px; }
.au-card p { margin: 0 0 4px; } .au-card ol, .au-card ul { margin: 0; padding-left: 20px; display: grid; gap: 7px; }
.au-card li { animation: auin .5s both; }
.au-phone { display: flex; flex-direction: column; align-items: center; position: sticky; top: 90px; }
.au-cap { font-size: 14px; color: var(--muted); margin: 14px 0 0; text-align: center; }
.au-cta { grid-column: 1 / -1; text-align: center; }
/* device frames */
.phone { position: relative; width: 270px; height: 550px; border-radius: 46px; background: #0f141b; padding: 12px; box-shadow: 0 30px 70px rgba(10,30,60,.35), inset 0 0 0 2px #2b333f; }
.phone .notch { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 92px; height: 26px; border-radius: 20px; background: #000; z-index: 3; }
.phone.and { border-radius: 30px; } .phone .cam { position: absolute; top: 20px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: #000; z-index: 3; box-shadow: 0 0 0 2px #1b222c; }
.phone .scr { width: 100%; height: 100%; border-radius: 36px; background: #f5f7fa; overflow: hidden; display: flex; flex-direction: column; }
.phone.and .scr { border-radius: 22px; }
.mc-h { display: flex; align-items: center; gap: 10px; padding: 44px 14px 12px; background: linear-gradient(135deg, var(--navy), #164f7a); color: #fff; flex: none; }
.mc-h .av { width: 34px; height: 34px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, var(--gold2), var(--gold)); flex: none; box-shadow: 0 0 0 2px rgba(255,255,255,.3); }
.mc-h b { display: block; font-size: 14px; line-height: 1.2; } .mc-h small { font-size: 11px; color: #8ff0b5; }
.mc-b { flex: 1; padding: 14px 12px; display: flex; flex-direction: column; gap: 8px; overflow: auto; font-size: 13.5px; line-height: 1.4; }
.mc-b p { margin: 0; padding: 9px 12px; border-radius: 16px; max-width: 86%; animation: auin .45s both; }
.mc-b .in { background: #fff; box-shadow: 0 1px 2px rgba(16,40,70,.08); border-bottom-left-radius: 5px; align-self: flex-start; }
.mc-b .out { background: linear-gradient(135deg, var(--navy), #164f7a); color: #fff; border-bottom-right-radius: 5px; align-self: flex-end; }
.mc-b .out.st { background: none; font-size: 40px; padding: 0; }
.mc-r { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.mc-r span { border: 1.5px solid #1e9e57; color: #1e9e57; background: #fff; border-radius: 999px; padding: 5px 12px; font-size: 12.5px; font-weight: 600; }
.mc-f { flex: none; display: flex; align-items: center; gap: 8px; padding: 10px 12px 16px; background: #fff; border-top: 1px solid #e6ebf0; }
.mc-f span { flex: 1; height: 30px; border-radius: 15px; background: #f1f4f8; } .mc-f i { font-style: normal; width: 30px; height: 30px; border-radius: 50%; background: var(--gold); color: #fff; display: grid; place-items: center; font-size: 13px; }
/* devices stage */
.dv-tabs { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin: -20px 0 34px; }
.dv-tabs button { border: 0; cursor: pointer; font: inherit; font-weight: 700; font-size: 14.5px; padding: 10px 18px; border-radius: 999px; background: #fff; color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--line); transition: all .25s; }
.dv-tabs button.on { background: var(--navy); color: #fff; box-shadow: 0 10px 24px rgba(11,58,91,.25); }
.dv-stage { position: relative; height: 600px; }
.dv { position: absolute; transition: transform .7s cubic-bezier(.2,.9,.3,1), opacity .5s, filter .5s; transform-origin: 50% 100%; }
.dv-pc { left: 50%; top: 0; width: 760px; margin-left: -380px; }
.dv-tab { left: 0; bottom: 0; } .dv-ph { right: 7%; bottom: 0; } .dv-and { right: -1%; bottom: 10px; }
.mon { position: relative; height: 450px; border-radius: 18px; background: #fff; border: 12px solid #141a22; overflow: hidden; box-shadow: 0 30px 70px rgba(10,30,60,.28); }
.mon .bar { height: 30px; background: #eef1f5; display: flex; align-items: center; gap: 6px; padding: 0 12px; } .mon .bar i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; } .mon .bar i:nth-child(2) { background: #febc2e; } .mon .bar i:nth-child(3) { background: #28c840; }
.mon .bar span { margin-left: 14px; font-size: 12px; color: #7b8794; background: #fff; border-radius: 8px; padding: 3px 14px; }
.stand { width: 160px; height: 70px; margin: 0 auto; background: linear-gradient(#cfd6df, #a9b3bf); clip-path: polygon(38% 0, 62% 0, 70% 85%, 100% 88%, 100% 100%, 0 100%, 0 88%, 30% 85%); }
.site { padding: 18px 22px; } .s-nav { height: 14px; width: 70%; border-radius: 8px; background: #eef1f5; margin-bottom: 26px; }
.s-hero i { display: block; height: 22px; border-radius: 8px; background: #dfe6ef; margin-bottom: 12px; } .s-hero i.w60 { width: 60%; height: 30px; background: linear-gradient(90deg, #c9d6e6, #e3e9f1); } .s-hero i.w40 { width: 40%; }
.s-hero em { display: block; width: 130px; height: 34px; border-radius: 10px; background: var(--gold); margin: 18px 0 26px; }
.s-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; } .s-grid i { height: 110px; border-radius: 12px; background: #eef1f5; }
.mc { position: absolute; display: flex; flex-direction: column; overflow: hidden; background: #f5f7fa; }
.mc-pc { right: 18px; bottom: 16px; width: 250px; height: 330px; border-radius: 18px; box-shadow: 0 18px 44px rgba(10,30,60,.3); } .mc-pc .mc-h, .mc-tab .mc-h { padding-top: 12px; }
.tabl { position: relative; width: 400px; height: 300px; border-radius: 26px; background: #fff; border: 12px solid #141a22; overflow: hidden; box-shadow: 0 30px 60px rgba(10,30,60,.28); }
.tabl .s-grid { grid-template-columns: 1fr 1fr; } .tabl .s-grid i { height: 70px; }
.mc-tab { right: 10px; bottom: 10px; width: 190px; height: 250px; border-radius: 16px; box-shadow: 0 14px 34px rgba(10,30,60,.3); font-size: 12px; }
.mc-tab .mc-b { font-size: 11.5px; } .mc-ph { position: static; height: 100%; }
.dv-ph .phone, .dv-and .phone { width: 230px; height: 470px; }
.dv-and { opacity: 0; transform: translateX(40px) scale(.9); pointer-events: none; }
.dv-stage[data-d="pc"] .dv-tab { transform: translateX(-10px) scale(.8); filter: saturate(.8); } .dv-stage[data-d="pc"] .dv-ph { transform: scale(.82); }
.dv-stage[data-d="tab"] .dv-pc { transform: scale(.78); opacity: .45; filter: blur(1px); } .dv-stage[data-d="tab"] .dv-tab { transform: translate(180px, -30px) scale(1.25); z-index: 5; } .dv-stage[data-d="tab"] .dv-ph { transform: scale(.75); opacity: .6; }
.dv-stage[data-d="ph"] .dv-pc { transform: scale(.78); opacity: .45; filter: blur(1px); } .dv-stage[data-d="ph"] .dv-ph { transform: translateX(-240px) scale(1.18); z-index: 5; } .dv-stage[data-d="ph"] .dv-tab { transform: scale(.75); opacity: .6; }
.dv-stage[data-d="and"] .dv-pc { transform: scale(.78); opacity: .45; filter: blur(1px); } .dv-stage[data-d="and"] .dv-and { opacity: 1; transform: translateX(-280px) scale(1.18); z-index: 5; pointer-events: auto; } .dv-stage[data-d="and"] .dv-ph { opacity: 0; } .dv-stage[data-d="and"] .dv-tab { transform: scale(.75); opacity: .6; }
/* AI invitations */
.invite { background: linear-gradient(160deg, #f3efff, #eef6ff 60%, #fff); overflow: hidden; }
.iv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.iv-text h2 { font-size: clamp(30px, 3.6vw, 46px); font-weight: 900; } .iv-text .lead { font-size: 18px; color: var(--muted); }
.iv-trig { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.iv-trig span { background: #fff; border-radius: 999px; padding: 9px 16px; font-weight: 600; font-size: 14.5px; box-shadow: 0 6px 18px rgba(80,60,180,.1); animation: ivf 4s ease-in-out infinite; animation-delay: calc(var(--i) * .5s); }
@keyframes ivf { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.iv-demo { position: relative; min-height: 420px; display: flex; align-items: center; justify-content: center; }
.iv-glow { position: absolute; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(123,92,255,.35), rgba(47,111,192,.15) 50%, transparent 70%); filter: blur(10px); animation: ivg 6s ease-in-out infinite; }
@keyframes ivg { 50% { transform: scale(1.12); } }
.iv-card { position: relative; width: min(400px, 100%); background: rgba(255,255,255,.72); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid rgba(255,255,255,.9); border-radius: 26px; padding: 22px; box-shadow: 0 30px 70px rgba(60,40,160,.2); }
.iv-op { font-size: 14px; font-weight: 600; color: var(--muted); display: flex; align-items: center; gap: 8px; margin-bottom: 10px; } .iv-op .dot { width: 9px; height: 9px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,.2); }
.iv-msg { background: #fff; border-radius: 20px 20px 20px 6px; padding: 16px 18px 10px; font-size: 19px; line-height: 1.4; color: var(--ink); min-height: 96px; box-shadow: 0 6px 20px rgba(16,40,70,.08); }
.iv-msg small { display: block; text-align: right; color: #a0aab5; font-size: 12px; margin-top: 6px; }
.iv-typed::after { content: '|'; animation: blinkc 1s steps(1) infinite; color: var(--violet); } .iv-typed.done::after { display: none; }
@keyframes blinkc { 50% { opacity: 0; } }
.iv-r { display: flex; flex-direction: column; align-items: flex-end; gap: 9px; margin-top: 14px; }
.iv-r span { border: 2px solid #1e9e57; color: #1e9e57; background: #fff; border-radius: 999px; padding: 8px 18px; font-weight: 700; font-size: 15px; opacity: 0; transform: translateY(8px); transition: all .4s; transition-delay: calc(var(--i) * .15s); }
.iv-card.show .iv-r span { opacity: 1; transform: none; }
.iv-bot { position: absolute; left: 4%; bottom: 8%; width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(135deg, #8b7bff, #5b8cff); display: grid; place-items: center; font-size: 30px; box-shadow: 0 14px 30px rgba(91,92,255,.4); animation: ivf 3s ease-in-out infinite; }
/* team scoreboard */
.tm-box { background: #fff; border-radius: 24px; padding: 26px 0 8px 26px; box-shadow: 0 30px 70px rgba(11,58,91,.12); overflow-x: auto; }
.tm { width: 100%; border-collapse: collapse; min-width: 860px; font-size: 14.5px; }
.tm th { text-align: left; font-size: 12px; font-weight: 500; color: var(--muted); padding: 0 12px 14px; vertical-align: bottom; }
.tm td { padding: 14px 12px; white-space: nowrap; }
.tm tbody tr { animation: auin .5s both; animation-delay: calc(var(--i) * .08s); } .tm tbody tr:nth-child(even) td { background: #f6f9fd; }
.tm td:first-child { display: flex; align-items: center; gap: 12px; } .tm td small { display: block; font-size: 12px; color: var(--muted); text-decoration: underline; }
.tm b { text-decoration: underline; text-underline-offset: 3px; }
.tm-av { width: 38px; height: 38px; border-radius: 50%; color: #fff; display: grid; place-items: center; font-weight: 800; }
.tm i { font-style: normal; } .tm i.g { color: #1e8e4a; } .tm i.o { color: #e08e1a; } .tm i.r { color: #e5484d; }
.tm .rt { position: sticky; right: 0; text-align: center; background: #fff !important; box-shadow: -14px 0 24px -14px rgba(11,58,91,.25); font-size: 17px; min-width: 120px; }
.tm .rt b { text-decoration: none; font-weight: 800; }
@media (max-width: 980px) {
  .au-res, .iv-grid { grid-template-columns: 1fr; } .au-phone { position: static; }
  .dv-stage { height: auto; display: flex; justify-content: center; }
  .dv-stage .dv { position: static; display: none; transform: none !important; opacity: 1 !important; filter: none !important; margin: 0 auto; }
  .dv-stage[data-d="pc"] .dv-pc, .dv-stage[data-d="tab"] .dv-tab, .dv-stage[data-d="ph"] .dv-ph, .dv-stage[data-d="and"] .dv-and { display: block; }
  .dv-pc { width: 100%; max-width: 620px; margin: 0; } .mon { height: 380px; } .mc-pc { width: 210px; height: 290px; }
}
@media (max-width: 640px) {
  .au-form { flex-wrap: wrap; padding: 10px; } .au-form input { width: calc(100% - 40px); } .au-form .btn { width: 100%; }
  .mon { height: 330px; border-width: 8px; } .s-grid i { height: 60px; } .mc-pc { width: 180px; height: 250px; right: 8px; bottom: 8px; font-size: 11px; }
  .tabl { width: 320px; height: 250px; } .iv-msg { font-size: 17px; } .iv-bot { display: none; }
}

/* ============ 3.8: new first screen ============ */
.hx { position: relative; padding: 140px 0 30px; overflow: hidden; isolation: isolate; }
.hx-aurora { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hx-aurora i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; animation: hxa 18s ease-in-out infinite; }
.hx-aurora .a1 { width: 560px; height: 560px; background: #b9a8ff; top: -120px; right: -80px; }
.hx-aurora .a2 { width: 480px; height: 480px; background: #ffd98a; top: 180px; right: 28%; animation-delay: -6s; opacity: .45; }
.hx-aurora .a3 { width: 520px; height: 520px; background: #9fd4ff; top: 260px; left: -180px; animation-delay: -12s; opacity: .45; }
@keyframes hxa { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(40px, 30px) scale(1.08); } 66% { transform: translate(-30px, 20px) scale(.95); } }
.hx .wrap { display: grid; grid-template-columns: 1fr 1.05fr; gap: 40px; align-items: center; }
.hx-pre { font-size: clamp(18px, 1.7vw, 23px); font-weight: 700; color: var(--muted); margin: 22px 0 6px; }
.hx h1 { font-size: clamp(40px, 5.6vw, 72px); line-height: 1.04; letter-spacing: -.035em; margin: 0 0 20px; }
.hx-w { display: inline-block; min-width: 4ch; transition: opacity .35s, transform .35s, filter .35s; }
.hx-w.out { opacity: 0; transform: translateY(14px); filter: blur(6px); }
.hx .lead { font-size: 18.5px; max-width: 540px; }
.hx-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.hx-pills span { background: rgba(255,255,255,.8); backdrop-filter: blur(8px); border: 1px solid rgba(11,58,91,.08); border-radius: 999px; padding: 7px 14px; font-size: 14px; font-weight: 600; color: var(--navy); box-shadow: 0 6px 16px rgba(11,58,91,.06); }
.hx-stage { position: relative; height: 560px; }
.hx-laptop { position: absolute; top: 10px; right: 0; width: 92%; height: 440px; background: #fff; border-radius: 18px; border: 10px solid #141a22; box-shadow: 0 40px 90px rgba(11,40,80,.28); overflow: hidden; }
.hx-laptop::after { content: ''; position: absolute; left: -10px; right: -10px; bottom: -10px; height: 10px; background: #141a22; }
.hx-laptop .bar { height: 28px; background: #eef1f5; display: flex; align-items: center; gap: 6px; padding: 0 12px; }
.hx-laptop .bar i { width: 9px; height: 9px; border-radius: 50%; background: #ff5f57; } .hx-laptop .bar i:nth-child(2) { background: #febc2e; } .hx-laptop .bar i:nth-child(3) { background: #28c840; }
.hx-laptop .bar span { margin-left: 12px; font-size: 11.5px; color: #7b8794; background: #fff; border-radius: 7px; padding: 2px 12px; }
.hx-laptop .wdg { right: 14px; bottom: 14px; width: 62%; max-width: 300px; }
.hx-laptop .wb { min-height: 230px; }
.hx-phone { position: absolute; left: -2%; bottom: -6px; z-index: 3; transform: rotate(-4deg); animation: hxp 7s ease-in-out infinite; }
.hx-phone .phone { width: 210px; height: 420px; border-radius: 38px; padding: 9px; }
.hx-phone .phone .scr { border-radius: 30px; } .hx-phone .notch { top: 15px; width: 74px; height: 20px; }
.hx-phone .mc-h { padding-top: 34px; } .hx-phone .mc-b { font-size: 12.5px; justify-content: flex-end; }
@keyframes hxp { 0%, 100% { transform: rotate(-4deg) translateY(0); } 50% { transform: rotate(-3deg) translateY(-10px); } }
.hx-f { position: absolute; z-index: 4; display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,.9); border-radius: 16px; padding: 10px 16px 10px 10px; box-shadow: 0 18px 40px rgba(11,40,80,.16); font-size: 13px; animation: float 6s ease-in-out infinite; }
.hx-f span { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-size: 19px; background: #fff3e3; }
.hx-f b { display: block; color: var(--ink); font-size: 13.5px; } .hx-f small { color: var(--muted); }
.hx-f.f1 { top: -8px; left: 6%; }
.hx-f.f2 { right: -14px; bottom: 70px; animation-delay: -2s; opacity: 1; transform: none; } .hx-f.f2 span { background: #e9f8ef; }
.hx-f.f3 { left: 30%; bottom: -14px; animation-delay: -4s; } .hx-f.f3 span { background: #fff8d9; }
.hx-f.f2:not(.show) { animation: float 6s ease-in-out infinite, hxpulse 2.4s ease-in-out infinite; }
@keyframes hxpulse { 50% { box-shadow: 0 18px 40px rgba(11,40,80,.16), 0 0 0 6px rgba(47,179,107,.15); } }
.hx .orbit.o1 { top: 34%; right: -22px; } .hx .orbit.o2 { top: 4%; right: 18%; } .hx .orbit.o3 { top: 46%; left: 14%; }
.hx .marquee { margin-top: 50px; }
@media (max-width: 1100px) { .hx-phone { left: -6%; } .hx-f.f2 { right: 0; } }
@media (max-width: 980px) {
  .hx { padding-top: 110px; } .hx .wrap { grid-template-columns: 1fr; gap: 26px; }
  .hx-stage { height: 470px; max-width: 620px; width: 100%; margin: 0 auto; }
  .hx-laptop { height: 360px; }
}
@media (max-width: 640px) {
  .hx h1 { font-size: 38px; } .hx .lead { font-size: 16.5px; }
  .hx .cta .btn { width: 100%; }
  .hx-stage { height: 420px; }
  .hx-laptop { width: 100%; height: 300px; border-width: 7px; } .hx-laptop .s-grid { display: none; }
  .hx-laptop .wdg { width: 70%; right: 8px; bottom: 8px; } .hx-laptop .wb { min-height: 170px; font-size: 12px; }
  .hx-phone { left: 0; bottom: 0; } .hx-phone .phone { width: 150px; height: 300px; border-radius: 28px; padding: 6px; } .hx-phone .phone .scr { border-radius: 23px; }
  .hx-phone .mc-h { padding: 26px 8px 8px; } .hx-phone .mc-h b { font-size: 11px; } .hx-phone .mc-b { font-size: 10.5px; padding: 8px; } .hx-phone .mc-r span { font-size: 10px; padding: 3px 8px; } .hx-phone .mc-f { padding: 6px 8px 10px; }
  .hx-f { font-size: 11.5px; padding: 7px 12px 7px 7px; } .hx-f span { width: 30px; height: 30px; font-size: 15px; } .hx-f b { font-size: 12px; }
  .hx-f.f1 { left: auto; right: 0; top: -20px; } .hx-f.f3 { display: none; } .hx-f.f2 { right: 0; bottom: 20px; }
  .hx .orbit { display: none; }
}

/* header: one line on every width */
.logo, #nav a, header .btn { white-space: nowrap; }
#nav { gap: 20px; }
@media (max-width: 1320px) { #nav { gap: 16px; } #nav a { font-size: 14.5px; } }
@media (max-width: 1220px) { #nav a[href$="#guard"] { display: none; } }

/* ============ 3.9: devices fix, AI guide, sales guard ============ */
.mc-tab .mc-h { padding-top: 10px; } .mc-tab .mc-h b { font-size: 12px; } .mc-tab .mc-r span { font-size: 11px; padding: 4px 10px; }
.dv-stage { height: 580px; }
.dv-tab { left: 2%; bottom: 10px; } .dv-ph { right: 4%; bottom: 0; }
.dv-stage[data-d="ph"] .dv-ph { transform: translateX(-300px) scale(1.15); z-index: 5; }
.iv-free { display: inline-flex; gap: 8px; align-items: center; margin: 4px 0 0; padding: 8px 14px; border-radius: 12px; background: rgba(34,197,94,.1); color: #137a3d; font-weight: 600; font-size: 14.5px; }
/* AI guide */
.guide { background: linear-gradient(180deg, #fff, #f3f7ff); overflow: hidden; }
.gu-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 54px; align-items: center; }
.gu-text h2 { font-size: clamp(30px, 3.6vw, 46px); font-weight: 900; } .gu-text .lead { font-size: 18px; color: var(--muted); }
.gu-browser { position: relative; height: 420px; border-radius: 18px; background: #fff; border: 10px solid #141a22; overflow: hidden; box-shadow: 0 34px 80px rgba(11,40,80,.25); }
.gu-browser .bar { height: 28px; background: #eef1f5; display: flex; align-items: center; gap: 6px; padding: 0 12px; } .gu-browser .bar i { width: 9px; height: 9px; border-radius: 50%; background: #ff5f57; } .gu-browser .bar i:nth-child(2) { background: #febc2e; } .gu-browser .bar i:nth-child(3) { background: #28c840; }
.gu-browser .bar span { margin-left: 12px; font-size: 11.5px; color: #7b8794; background: #fff; border-radius: 7px; padding: 2px 12px; }
.gu-page { padding: 20px 22px; width: 56%; transition: transform 1s cubic-bezier(.3,.8,.3,1); }
.gu-l { height: 14px; border-radius: 7px; background: #e9eef5; margin-bottom: 12px; } .gu-l.w50 { width: 50%; height: 22px; background: #d6e0ec; } .gu-l.w80 { width: 80%; } .gu-l.w70 { width: 70%; } .gu-l.w60 { width: 60%; } .gu-l.w40 { width: 40%; }
.gu-blk { margin: 22px 0; padding: 14px; border-radius: 12px; background: #f6f8fb; display: grid; gap: 8px; transition: box-shadow .4s, background .4s; }
.gu-blk b { font-size: 14px; color: var(--ink); } .gu-blk span { height: 10px; border-radius: 5px; background: #e1e7ef; } .gu-blk .s2 { width: 70%; }
.gu-chat { position: absolute; right: 12px; bottom: 12px; width: 42%; display: flex; flex-direction: column; gap: 8px; font-size: 12.5px; }
.gu-chat p { margin: 0; padding: 9px 12px; border-radius: 14px; opacity: 0; transform: translateY(8px); transition: all .4s; }
.gu-chat .out { align-self: flex-end; background: var(--navy); color: #fff; border-bottom-right-radius: 4px; }
.gu-chat .in { background: #fff; box-shadow: 0 6px 18px rgba(16,40,70,.12); border-bottom-left-radius: 4px; }
.gu-ask { background: #fff; border-radius: 14px; padding: 10px; box-shadow: 0 10px 26px rgba(16,40,70,.16); display: flex; flex-wrap: wrap; gap: 6px; opacity: 0; transform: translateY(8px); transition: all .4s; }
.gu-ask b { flex: 1 1 100%; font-size: 12.5px; } .gu-ask span { border-radius: 999px; padding: 5px 12px; font-weight: 700; font-size: 12px; } .gu-ask .y { background: var(--gold); color: #2a1d00; transition: transform .2s; } .gu-ask .n { color: var(--muted); background: #f1f4f8; }
.gu-cursor { position: absolute; width: 22px; height: 22px; right: 30%; bottom: -30px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 2l16 9-7 2 4 8-3 1-4-8-6 5z' fill='%23111' stroke='%23fff' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat; opacity: 0; transition: all .9s cubic-bezier(.3,.8,.3,1); z-index: 3; }
#guDemo.s1 .gu-chat .out, #guDemo.s2 .gu-chat .in, #guDemo.s3 .gu-ask { opacity: 1; transform: none; }
#guDemo.s2 .gu-chat .out, #guDemo.s3 .gu-chat .out, #guDemo.s3 .gu-chat .in, #guDemo.s4 .gu-chat .out, #guDemo.s4 .gu-chat .in, #guDemo.s4 .gu-ask { opacity: 1; transform: none; }
#guDemo.s3 .gu-cursor { opacity: 1; right: 33%; bottom: 40px; }
#guDemo.s4 .gu-cursor { opacity: 1; right: 33%; bottom: 40px; transform: scale(.85); }
#guDemo.s4 .gu-ask .y { transform: scale(.94); }
#guDemo.s5 .gu-page { transform: translateY(-40px); }
#guDemo.s5 .gu-blk { background: #fff8e8; box-shadow: 0 0 0 3px var(--gold), 0 0 0 9px rgba(212,166,74,.25); animation: gublk 1.1s ease-in-out 3; }
#guDemo.s5 .gu-chat { opacity: .25; transition: opacity .4s; }
@keyframes gublk { 50% { box-shadow: 0 0 0 3px var(--gold), 0 0 0 16px rgba(212,166,74,0); } }
/* sales guard */
.guard { position: relative; }
.gd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; }
.gd-text h2 { font-size: clamp(30px, 3.6vw, 46px); font-weight: 900; } .gd-text .lead { font-size: 18px; color: #b8c6d4; }
.gd-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.gd-list li { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); border-radius: 14px; padding: 12px 16px; color: #e6eef6; font-weight: 500; }
.guard .rv.in .gd-list li, .guard .gd-list li { animation: auin .6s both; animation-delay: calc(var(--i) * .12s + .2s); }
.gd-demo { position: relative; min-height: 440px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; }
.gd-push { width: min(400px, 100%); display: flex; gap: 12px; align-items: center; background: rgba(255,255,255,.96); color: var(--ink); border-radius: 18px; padding: 14px 16px; box-shadow: 0 24px 50px rgba(0,0,0,.35); animation: gdpush 5s ease-in-out infinite; }
.gd-push small { display: block; font-size: 11.5px; color: #e5484d; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; } .gd-push b { display: block; font-size: 15px; } .gd-push em { font-style: normal; font-size: 12.5px; color: var(--muted); }
.gd-ico { width: 44px; height: 44px; border-radius: 12px; background: #ffe9ea; display: grid; place-items: center; font-size: 22px; flex: none; animation: gdshake 5s ease-in-out infinite; }
@keyframes gdpush { 0% { transform: translateY(-30px); opacity: 0; } 8%, 80% { transform: none; opacity: 1; } 92%, 100% { transform: translateY(-14px); opacity: 0; } }
@keyframes gdshake { 10%, 14% { transform: rotate(-12deg); } 12%, 16% { transform: rotate(12deg); } 18% { transform: none; } }
.gd-card { width: min(400px, 100%); background: #fff; color: var(--ink); border-radius: 22px; padding: 20px; box-shadow: 0 30px 70px rgba(0,0,0,.35); }
.gd-ch { display: flex; justify-content: space-between; align-items: center; font-weight: 800; }
.gd-ring { position: relative; width: 64px; height: 64px; } .gd-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gd-ring circle { fill: none; stroke: #edf1f6; stroke-width: 3.2; } .gd-ring circle.v { stroke: #2fb36b; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; animation: gdring 1.6s .4s cubic-bezier(.3,.8,.3,1) forwards; }
@keyframes gdring { to { stroke-dashoffset: calc(100 - var(--v) * 10); } }
.gd-ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 20px; } .gd-ring small { font-size: 10px; color: var(--muted); }
.gd-name { display: flex; align-items: center; gap: 10px; font-weight: 700; margin: 6px 0 12px; } .gd-name i { width: 34px; height: 34px; border-radius: 50%; background: #2f6fc0; color: #fff; display: grid; place-items: center; font-style: normal; }
.gd-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.gd-checks li { display: flex; gap: 10px; align-items: center; animation: auin .5s both; animation-delay: calc(var(--i) * .15s + .6s); }
.gd-checks li::before { content: '✓'; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; background: #e6f7ee; color: #1e8e4a; flex: none; }
.gd-checks li.no::before { content: '✕'; background: #ffe9ea; color: #e5484d; } .gd-checks li.no { color: #b23a3f; }
@media (max-width: 980px) {
  .gu-grid, .gd-grid { grid-template-columns: 1fr; gap: 30px; } .gu-text { order: -1; }
  .dv-stage { height: auto; }
}
@media (max-width: 640px) {
  .gu-browser { height: 360px; } .gu-page { width: 100%; } .gu-chat { width: 70%; } .gd-demo { min-height: 0; }
}

.gu-browser .bar { position: relative; z-index: 2; }

/* region switch (two servers: KZ and RU) */
.region-sw { font-size: 12.5px; font-weight: 700; text-decoration: none; padding: 5px 9px; border-radius: 8px; border: 1px solid rgba(127,127,127,.35); color: inherit; white-space: nowrap; margin-right: 6px; }
.region-sw:hover { border-color: currentColor; }
.region-sw.dr { display: block; margin: 12px 0 0; text-align: center; }
.region-note { font-size: 13px; line-height: 1.45; background: #eef4fa; border-radius: 10px; padding: 9px 12px; margin: 0 0 14px; color: #33475b; }
.region-note.warn { background: #fff4d6; color: #6b4e00; box-shadow: inset 0 0 0 1px #f0cf73; }
.region-note a { font-weight: 700; }
/* «Полезное»: menu and pages */
.dd { position: relative; display: flex; align-items: center; }
.dd-t { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; font-size: 15px; color: var(--muted); cursor: pointer; display: flex; align-items: center; gap: 4px; }
.dd-t i { font-style: normal; font-size: 11px; transition: transform .2s; }
.dd:hover .dd-t, .dd:focus-within .dd-t { color: var(--ink); } .dd:hover .dd-t i, .dd:focus-within .dd-t i { transform: rotate(180deg); }
.dd-m { position: absolute; top: 100%; left: 50%; transform: translate(-50%, 8px); margin-top: 14px; width: min(760px, 92vw); background: #fff; border: 1px solid #e3e8ee; border-radius: 18px; box-shadow: 0 24px 60px rgba(11, 58, 91, .16); padding: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 22px; opacity: 0; visibility: hidden; transition: opacity .18s, transform .18s, visibility .18s; z-index: 50; }
.dd-m::before { content: ''; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.dd:hover .dd-m, .dd:focus-within .dd-m { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.dd-col h5 { margin: 0 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
#nav .dd-m a { display: grid; grid-template-columns: 26px 1fr; column-gap: 8px; padding: 8px 10px; border-radius: 12px; color: var(--ink); white-space: normal; font-size: 14.5px; }
#nav .dd-m a::after { display: none; }
#nav .dd-m a:hover { background: rgba(11, 58, 91, .05); }
.dd-m a span { grid-row: span 2; font-size: 18px; line-height: 1.2; }
.dd-m a small { color: var(--muted); font-weight: 400; font-size: 12.5px; line-height: 1.35; }
#nav .dd-m a.dd-all { grid-column: 1 / -1; display: block; text-align: center; margin-top: 6px; color: var(--blue); font-weight: 700; }
@media (max-width: 1400px) { #nav a[href$="/contacts"] { display: none; } }
.lead-s { color: var(--muted); font-size: 17px; max-width: 720px; margin-top: 10px; }
.info-h { font-size: 22px; margin: 38px 0 14px; }
.info-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.info-card { display: flex; flex-direction: column; gap: 6px; padding: 22px; background: #fff; border: 1px solid #e3e8ee; border-radius: 18px; color: var(--ink); transition: transform .2s, box-shadow .2s; }
.info-card:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(11, 58, 91, .12); }
.info-card .ic { font-size: 26px; } .info-card b { font-size: 17px; } .info-card small { color: var(--muted); font-size: 14px; line-height: 1.45; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 10px; } .crumbs a { color: var(--blue); }
.info-cta { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 22px; padding: 22px 26px; border-radius: 18px; background: linear-gradient(135deg, #0b3a5b, #12385e); color: #fff; }
.info-cta b { display: block; font-size: 18px; } .info-cta span { color: rgba(255, 255, 255, .75); font-size: 14.5px; }
.doc-body h2 + p code, .doc-body p { overflow-wrap: anywhere; }
.doc-body pre.embed { background: #0b2236; color: #e6f0f8; padding: 14px 16px; border-radius: 12px; overflow-x: auto; font-size: 14px; margin: 10px 0; }
.doc-body p:empty { display: none; }

/* «Ресурсы» v2: four-column menu, mock-ups, code, calculator, billing period */
.dd-m { width: min(980px, 94vw); grid-template-columns: repeat(4, 1fr); gap: 4px 18px; padding: 20px 22px; }
#nav .dd-m a { grid-template-columns: 24px 1fr; padding: 6px 8px; font-size: 14px; align-items: center; }
.dd-m a span { grid-row: auto; font-size: 16px; }
.dd-m a span.lt, .info-card .ic.ic-l { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: #0b3a5b; color: #fff; font-size: 12px; font-weight: 800; }
.info-card .ic.ic-l { width: 34px; height: 34px; font-size: 16px; border-radius: 9px; }
.crumbs span { color: var(--muted); } .crumbs > span:last-child { color: var(--ink); }
.upd { color: var(--muted); margin-top: 8px; }
.doc-body pre.code { background: #0b2236; color: #e6f0f8; padding: 14px 16px; border-radius: 12px; overflow-x: auto; font-size: 13.5px; line-height: 1.55; margin: 12px 0; }
.doc-body code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; }
.doc-body p code, .doc-body li code { background: rgba(11, 58, 91, .07); padding: 1px 6px; border-radius: 6px; color: #0b3a5b; }
.doc-body h2 { scroll-margin-top: 90px; }
.toc { background: #fff; border: 1px solid #e3e8ee; border-radius: 16px; padding: 16px 20px; margin: 0 0 16px; }
.toc b { display: block; margin-bottom: 6px; } .toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 28px; } .toc a { color: var(--blue); font-size: 14.5px; }
.dl-card { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; background: #fff; border: 1px solid #e3e8ee; border-radius: 18px; padding: 18px 22px; margin-bottom: 16px; }
.dl-card > div { flex: 1; min-width: 180px; } .dl-card b { display: block; } .dl-card small { color: var(--muted); }
.dl-ic { width: 46px; height: 46px; border-radius: 50%; background: #21759b; color: #fff; display: grid; place-items: center; font-weight: 900; font-size: 22px; }
.mock-chat { max-width: 380px; margin: 0 auto 22px; background: #fff; border-radius: 20px; box-shadow: 0 24px 60px rgba(11, 58, 91, .18); overflow: hidden; border: 1px solid #e3e8ee; }
.mc-hd { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: linear-gradient(135deg, #0b3a5b, #12385e); color: #fff; }
.mc-hd small { margin-left: auto; opacity: .7; } .mc-dot { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; }
.mc-body { padding: 14px; display: flex; flex-direction: column; gap: 8px; background: #f6f8fb; }
.mc-m { max-width: 82%; padding: 9px 12px; border-radius: 14px; font-size: 14px; line-height: 1.4; }
.mc-m.in { align-self: flex-end; background: #d4a64a; color: #1d1d1d; border-bottom-right-radius: 4px; }
.mc-m.out { align-self: flex-start; background: #fff; border: 1px solid #e3e8ee; border-bottom-left-radius: 4px; }
.mc-m i { display: block; font-style: normal; font-size: 11px; color: var(--muted); margin-bottom: 2px; }
.mc-in { display: flex; justify-content: space-between; padding: 12px 16px; color: var(--muted); font-size: 14px; border-top: 1px solid #e3e8ee; } .mc-in span { color: #0b3a5b; }
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; padding: 24px; margin-bottom: 18px; }
.calc-in { display: grid; gap: 10px; } .calc-in label { display: grid; gap: 4px; font-size: 14px; font-weight: 600; color: var(--muted); }
.calc-in input { padding: 10px 12px; border: 1px solid #d6dde5; border-radius: 10px; font: inherit; font-size: 16px; color: var(--ink); }
.calc-out { display: grid; gap: 10px; align-content: start; } .calc-out div { background: #f6f8fb; border-radius: 14px; padding: 12px 16px; }
.calc-out span { display: block; font-size: 13px; color: var(--muted); } .calc-out b { font-size: 22px; } .calc-out .big { background: linear-gradient(135deg, #0b3a5b, #12385e); color: #fff; } .calc-out .big span { color: rgba(255,255,255,.75); } .calc-out .big b { font-size: 30px; color: #f3d38a; }
@media (max-width: 760px) { .calc { grid-template-columns: 1fr; } .toc ol { columns: 1; } .dd-m { grid-template-columns: 1fr 1fr; } }
.period { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; margin: 0 auto 10px; }
.period button { border: 1px solid #d6dde5; background: #fff; border-radius: 999px; padding: 8px 14px; font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; color: var(--ink); }
.period button.on { background: #0b3a5b; color: #fff; border-color: #0b3a5b; } .period button em { font-style: normal; color: #1f9d55; font-weight: 800; } .period button.on em { color: #f3d38a; }
#priceOld { color: var(--muted); font-size: .55em; font-weight: 600; margin-right: 4px; }
.price-total { margin: -4px 0 10px; color: var(--muted); font-size: 14px; }

/* The hover glow of cards never takes clicks from forms inside them */
.card::before { pointer-events: none; }

/* ===== Header v3: wider, five dropdowns, typography instead of icons ===== */
.hdr .wrap { max-width: 1400px; gap: 22px; }
#nav { gap: 2px; margin-left: 18px; align-items: center; }
#nav > a.nl, .dd-t { display: inline-flex; align-items: center; gap: 4px; height: 40px; padding: 0 12px; border-radius: 10px; font-weight: 600; font-size: 15px; color: var(--text); background: none; border: 0; cursor: pointer; font-family: inherit; white-space: nowrap; transition: background .15s, color .15s; }
#nav > a.nl::after { display: none; }
#nav > a.nl:hover, .dd-t:hover, .dd.open .dd-t { background: rgba(11, 58, 91, .06); color: var(--ink); }
.dd-t svg { width: 12px; height: 12px; transition: transform .2s; opacity: .6; }
.dd:hover .dd-t svg, .dd.open .dd-t svg { transform: rotate(180deg); }
.dd { position: relative; }
.dd-m { position: absolute; top: calc(100% + 10px); left: 0; transform: translateY(6px); width: auto; min-width: 300px; display: block; grid-template-columns: none; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 30px 70px -20px rgba(13, 27, 42, .28), 0 2px 6px rgba(13, 27, 42, .05); opacity: 0; visibility: hidden; transition: opacity .16s, transform .16s, visibility .16s; z-index: 60; }
.dd-m::before { top: -14px; height: 14px; }
.dd:hover .dd-m, .dd:focus-within .dd-m, .dd.open .dd-m { opacity: 1; visibility: visible; transform: translateY(0); }
.dd-m.w2 { width: 560px; } .dd-m.w3 { width: 780px; }
.dd-cols { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; }
.dd-col { display: flex; flex-direction: column; gap: 2px; padding: 4px; }
.dd-col h5 { margin: 4px 10px 6px; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #8a96a3; min-height: 14px; }
.dd-col:not(:first-child) h5:empty, .dd-col:not(:has(h5)) { padding-top: 26px; }
#nav .dd-m a.mi { display: block; padding: 9px 10px; border-radius: 10px; color: var(--ink); white-space: normal; font-size: 14.5px; line-height: 1.3; }
#nav .dd-m a.mi::after { display: none; }
#nav .dd-m a.mi:hover { background: #f4f6f9; }
.dd-m a.mi b { display: block; font-weight: 650; }
.dd-m a.mi small { display: block; margin-top: 2px; color: var(--muted); font-size: 13px; font-weight: 400; }
.dd-foot { border-top: 1px solid var(--line); margin: 6px 4px 0; padding-top: 6px; }
#nav .dd-foot a.mi { color: var(--blue); font-weight: 650; }
@media (max-width: 1400px) { #nav a[href$="/contacts"] { display: inline-flex; } }
#nav .dd:nth-of-type(3) .dd-m { left: 50%; margin-left: -390px; }
#nav .dd:nth-of-type(4) .dd-m { left: auto; right: 0; }
@media (max-width: 1320px) { #nav > a.nl[href$="/contacts"] { display: none; } #nav > a.nl, .dd-t { padding: 0 9px; font-size: 14.5px; } .hdr .wrap { gap: 14px; } }
@media (max-width: 1100px) { #nav, .acts .login { display: none !important; } .burger { display: flex !important; } }
/* mobile drawer: sections open like an accordion */
.dr-nav { display: flex; flex-direction: column; }
.dr-g { border-bottom: 1px solid var(--line); }
.dr-g summary, .dr-l { display: flex; justify-content: space-between; align-items: center; padding: 15px 4px; font-weight: 700; font-size: 17px; color: var(--ink); cursor: pointer; list-style: none; }
.dr-l { border-bottom: 1px solid var(--line); }
.dr-g summary::-webkit-details-marker { display: none; }
.dr-g summary::after { content: ''; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-right: 6px; transition: transform .2s; opacity: .5; }
.dr-g[open] summary::after { transform: rotate(-135deg); }
.dr-g .dd-col { padding: 0 0 4px; }
.dr-g a.mi { display: block; padding: 10px 6px; border-radius: 10px; color: var(--ink); }
.dr-g a.mi b { display: block; font-weight: 600; font-size: 15.5px; } .dr-g a.mi small { display: block; color: var(--muted); font-size: 13px; }

/* ===== Resource pages ===== */
.res { background: #fff; }
.r-main { padding-top: 76px; }
.r-hero { padding: 54px 0 46px; background: linear-gradient(180deg, #f3f6fa 0%, #fff 100%); border-bottom: 1px solid var(--line); }
.r-hero .wrap { max-width: 1240px; }
.r-hero-2 .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; align-items: center; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13.5px; color: var(--muted); margin: 0 0 22px; }
.crumbs a { color: var(--muted); text-decoration: none; } .crumbs a:hover { color: var(--ink); } .crumbs .sep { opacity: .4; } .crumbs [aria-current] { color: var(--ink); font-weight: 600; }
.r-kicker { display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.r-hero h1 { font-size: clamp(30px, 4.2vw, 50px); line-height: 1.08; letter-spacing: -.025em; font-weight: 800; color: var(--ink); margin: 0 0 18px; max-width: 18ch; }
.r-hero:not(.r-hero-2) h1 { max-width: 24ch; }
.r-lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; color: var(--muted); max-width: 60ch; margin: 0 0 28px; }
.r-btns { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.r-meta { font-size: 13.5px; color: var(--muted); }
.btn.ghost-w { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .45); } .btn.ghost-w:hover { background: rgba(255, 255, 255, .1); }
.r-jump { display: flex; flex-wrap: wrap; gap: 8px; }
.r-jump a { padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: 14px; color: var(--ink); }
.r-jump a:hover { border-color: var(--navy); }
/* mock-ups */
.mock-chat { max-width: 400px; width: 100%; margin: 0 0 0 auto; box-shadow: 0 40px 80px -30px rgba(11, 58, 91, .45); border-radius: 22px; }
.mc-hd { gap: 12px; padding: 14px 18px; } .mc-hd small { margin-left: 0; display: flex; align-items: center; gap: 6px; opacity: .75; font-size: 12.5px; }
.mc-av { width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, .16); display: grid; place-items: center; font-weight: 800; }
.mc-body { padding: 18px 16px; gap: 10px; min-height: 260px; }
.mc-m { font-size: 14.5px; } .mc-m.in { background: var(--navy); color: #fff; }
.mc-in { align-items: center; } .mc-in svg { width: 20px; height: 20px; color: var(--navy); }
.mock-code { background: #0b1e30; border-radius: 18px; overflow: hidden; box-shadow: 0 40px 80px -30px rgba(11, 30, 48, .6); }
.mk-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: #0f2740; }
.mk-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; } .mk-bar i:nth-child(2) { background: #febc2e; } .mk-bar i:nth-child(3) { background: #28c840; }
.mk-bar span { margin-left: 10px; font-size: 12.5px; color: #8fa6bd; font-family: ui-monospace, Menlo, Consolas, monospace; }
.mock-code pre { margin: 0; padding: 20px 22px; color: #d7e6f5; font-size: 13.5px; line-height: 1.65; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre-wrap; word-break: break-word; }
/* article + aside */
.r-body { max-width: 1240px; display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 64px; padding-top: 52px; padding-bottom: 40px; align-items: start; }
.r-text { font-size: 17.5px; line-height: 1.75; color: var(--text); }
.r-text h2 { font-size: 27px; line-height: 1.25; letter-spacing: -.015em; color: var(--ink); margin: 46px 0 14px; font-weight: 750; }
.r-text h2:first-child { margin-top: 0; }
.r-text p, .r-text li { font-size: 17.5px; color: var(--text); }
.r-text ul { padding-left: 0; list-style: none; margin: 14px 0; }
.r-text ul li { position: relative; padding-left: 26px; margin: 10px 0; }
.r-text ul li::before { content: ''; position: absolute; left: 4px; top: .72em; width: 8px; height: 8px; border-radius: 2px; background: var(--gold); transform: rotate(45deg); }
.r-text pre.code { font-size: 14px; border-radius: 14px; padding: 18px 20px; margin: 18px 0; }
.r-aside { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 18px; }
.r-toc b { display: block; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #8a96a3; margin-bottom: 10px; }
.r-toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.r-toc li a { display: block; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; font-size: 14.5px; color: var(--muted); line-height: 1.4; }
.r-toc li a:hover { color: var(--ink); border-left-color: var(--gold); }
.r-try { padding: 22px; border-radius: 16px; background: #f6f8fb; border: 1px solid var(--line); }
.r-try b { font-size: 17px; color: var(--ink); } .r-try p { font-size: 14.5px; color: var(--muted); margin: 6px 0 14px; }
/* questions and answers */
.r-faq { padding: 56px 0; background: #f6f8fb; border-top: 1px solid var(--line); }
.r-faq .wrap { max-width: 900px; }
.r-faq h2, .r-more h2, .r-group h2 { font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -.02em; color: var(--ink); margin: 0 0 22px; font-weight: 800; }
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-list details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 0 22px; transition: box-shadow .2s; }
.faq-list details[open] { box-shadow: 0 10px 30px -14px rgba(13, 27, 42, .2); }
.faq-list summary { list-style: none; cursor: pointer; padding: 18px 34px 18px 0; font-weight: 650; font-size: 17px; color: var(--ink); position: relative; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 24px; font-weight: 400; color: var(--muted); transition: transform .2s; }
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-list details p { margin: 0 0 20px; color: var(--text); font-size: 16px; line-height: 1.65; }
/* still have questions */
.r-left { background: linear-gradient(135deg, #0b3a5b, #0a2740); color: #fff; padding: 46px 0; }
.r-left .wrap { max-width: 1240px; display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.r-left h2 { margin: 0 0 6px; font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -.02em; color: #fff; }
.r-left p { margin: 0; color: rgba(255, 255, 255, .72); max-width: 56ch; font-size: 16px; }
/* cards */
.r-more { max-width: 1240px; padding-top: 56px; padding-bottom: 70px; }
.r-group { padding: 46px 0 6px; }
.r-group:last-child { padding-bottom: 70px; }
.rc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.rc { display: flex; flex-direction: column; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: 16px; color: var(--ink); transition: border-color .2s, box-shadow .2s, transform .2s; }
.rc:hover { border-color: #c9d3de; box-shadow: 0 18px 40px -22px rgba(13, 27, 42, .3); transform: translateY(-2px); }
.rc-k { font-size: 11.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--gold); }
.rc b { font-size: 19px; line-height: 1.3; margin: 10px 0 8px; letter-spacing: -.01em; }
.rc p { margin: 0 0 18px; color: var(--muted); font-size: 15px; line-height: 1.55; flex: 1; }
.rc-go { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; font-size: 14.5px; color: var(--blue); }
.rc-go svg { width: 16px; height: 16px; transition: transform .2s; } .rc:hover .rc-go svg { transform: translateX(3px); }
/* calculator inside the article */
.r-article .calc { padding: 26px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 20px 50px -30px rgba(13, 27, 42, .3); margin: 0 0 40px; }
/* tablet */
@media (max-width: 1024px) {
  .r-hero-2 .wrap { grid-template-columns: 1fr; gap: 34px; }
  .mock-chat, .mock-code { margin: 0 auto; max-width: 560px; }
  .r-body { grid-template-columns: 1fr; gap: 34px; }
  .r-aside { position: static; order: -1; }
  .r-aside .r-try { display: none; }
  .r-toc ol { columns: 2; column-gap: 24px; border-left: 0; } .r-toc li a { border-left: 0; padding-left: 0; }
  .dd-m.w3 { width: 640px; }
}
/* phone */
@media (max-width: 640px) {
  .r-main { padding-top: 64px; }
  .r-hero { padding: 30px 0 32px; }
  .r-hero h1 { font-size: 30px; }
  .r-lead { font-size: 16.5px; margin-bottom: 22px; }
  .r-btns .btn { flex: 1 1 auto; }
  .r-body { padding-top: 32px; }
  .r-text, .r-text p, .r-text li { font-size: 16.5px; }
  .r-text h2 { font-size: 22px; margin-top: 34px; }
  .r-toc ol { columns: 1; }
  .r-faq { padding: 40px 0; } .faq-list details { padding: 0 16px; } .faq-list summary { font-size: 16px; }
  .r-left { padding: 34px 0; } .r-left .r-btns { width: 100%; }
  .rc-grid { grid-template-columns: 1fr; }
  .mock-code pre { font-size: 12.5px; padding: 16px; }
}

/* the menu stays open only while hovered or opened by click/keyboard */
.dd:focus-within:not(.open):not(:hover) .dd-m { opacity: 0; visibility: hidden; transform: translateY(6px); }
.dd-t:focus { outline: none; } .dd-t:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* drawer v3: clean items inside sections */
.dr-nav .dr-g a.mi { display: block; padding: 10px 6px; font-size: 15.5px; font-weight: 600; border-bottom: 0; }
.dr-nav .dr-g a.mi::after { display: none; }
.dr-nav .dr-g a.mi small { font-weight: 400; margin-top: 2px; }
.dr-nav a.dr-l { font-size: 17px; }
.dr-nav a.dr-l::after { content: ''; }
.dr-g .dd-col { gap: 0; }
.dr-g[open] { padding-bottom: 8px; }

/* ===== Pricing v3: three plans, Monthly / Yearly ===== */
.bill { display: flex; justify-content: center; align-items: center; gap: 16px; flex-wrap: wrap; margin: 0 auto 30px; }
.bill-seg { display: inline-flex; padding: 4px; background: rgba(11, 58, 91, .07); border-radius: 999px; }
.bill-seg button { border: 0; background: none; padding: 10px 22px; border-radius: 999px; font: inherit; font-weight: 700; font-size: 15px; color: var(--text); cursor: pointer; transition: background .2s, color .2s; }
.bill-seg button.on { background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(13, 27, 42, .12); }
.bill-seg em { font-style: normal; color: #1f9d55; font-weight: 800; margin-left: 4px; }
.bill-cur { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.bill-cur select { padding: 9px 12px; border: 1px solid var(--line); border-radius: 12px; font: inherit; font-weight: 600; color: var(--ink); background: #fff; }
.plans.plans3 { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 1120px; margin: 0 auto; gap: 20px; align-items: stretch; }
.plans3 .plan { display: flex; flex-direction: column; }
.plans3 .plan .btn { margin: 4px 0 18px; }
.plans3 .plan ul { margin-top: 0; }
.plan-d { color: var(--muted); font-size: 14.5px; margin: 4px 0 14px; min-height: 42px; }
.pp-note { margin: -6px 0 12px; color: #1f9d55; font-size: 13.5px; font-weight: 600; }
.period, .cur { display: none !important; }
@media (max-width: 980px) { .plans.plans3 { grid-template-columns: 1fr; max-width: 520px; } .plan-d { min-height: 0; } }

/* four plans and the promotion */
.plans.plans4 { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 1320px; gap: 16px; }
.plans4 .plan { padding: 26px 22px; }
.plans4 .price .pp { font-size: clamp(30px, 2.6vw, 40px); }
.pp-old { color: var(--muted); font-size: 16px; font-weight: 600; margin-right: 4px; }
.promo-badge { display: inline-block; align-self: flex-start; margin-bottom: 8px; padding: 4px 10px; border-radius: 999px; background: #e9f8ef; color: #1f9d55; font-weight: 800; font-size: 12.5px; }
@media (max-width: 1200px) { .plans.plans4 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 820px; } }
@media (max-width: 640px) { .plans.plans4 { grid-template-columns: 1fr; max-width: 520px; } }

/* ===== Footer v2 ===== */
footer.ft { background: #0a2236; color: rgba(255, 255, 255, .72); padding: 64px 0 28px; margin-top: 0; }
footer.ft .wrap { display: block; max-width: 1320px; }
.ft-top { display: grid; grid-template-columns: minmax(260px, 1.1fr) 3fr; gap: 56px; padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.ft .logo { color: #fff; } .ft .logo span { color: #fff; }
.ft-brand p { margin: 14px 0 0; font-size: 15px; line-height: 1.6; max-width: 36ch; }
.ft-cta { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; align-items: flex-start; }
.ft-cta .btn { height: 44px; }
.btn.ghost-d { background: rgba(255, 255, 255, .06); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); font-weight: 600; } .btn.ghost-d:hover { background: rgba(255, 255, 255, .12); }
.ft-data { display: flex; gap: 8px; align-items: flex-start; font-size: 13px !important; color: rgba(255, 255, 255, .55); margin-top: 22px !important; }
.ft-data svg { flex: 0 0 16px; width: 16px; height: 16px; margin-top: 2px; color: #6fd39b; }
.ft-cols { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px; }
.ft-cols h4 { color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin: 4px 0 14px; }
.ft-cols a { display: block; color: rgba(255, 255, 255, .68); font-size: 14.5px; padding: 5px 0; line-height: 1.35; overflow-wrap: anywhere; }
.ft-cols a:hover, .ft-legal a:hover { color: #fff; }
.ft-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; padding-top: 24px; }
.ft-legal { display: flex; flex-wrap: wrap; gap: 6px 20px; } .ft-legal a { color: rgba(255, 255, 255, .6); font-size: 13.5px; }
.ft .foot-l a { color: rgba(255, 255, 255, .6); } .ft .foot-l a.on { color: #fff; }
.ft .copy { width: 100%; font-size: 13px; color: rgba(255, 255, 255, .45); border: 0; padding: 0; margin: 0; }
@media (max-width: 1100px) { .ft-top { grid-template-columns: 1fr; gap: 36px; } .ft-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { footer.ft { padding: 44px 0 24px; } .ft-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; } .ft-cta { width: 100%; } .ft-cta .btn { width: 100%; } }

/* pricing v4 and footer polish */
#pricing .wrap { max-width: 1360px; }
.plans4 .price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.plans4 .price .pp { font-size: clamp(28px, 2.3vw, 36px); white-space: nowrap; letter-spacing: -.02em; }
.plans4 .price .pp-old { flex-basis: 100%; margin: 0; font-size: 15px; }
.plans4 .price .pp-old[hidden] { display: none; }
.plans4 .price small { white-space: nowrap; }
.ft-cta { max-width: 300px; }
.ft-cta .btn { width: 100%; justify-content: center; padding: 0 18px; }
.ft-cols { grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1.25fr); }
.ft-cols a { overflow-wrap: normal; word-break: normal; }
.ft-cols a[href^="mailto:"] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.ft-cta .btn { text-align: center; }

/* footer call to action: one clean button and a light link */
.ft .ft-cta { gap: 14px; max-width: 260px; }
.ft .ft-cta a.btn { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 22px; width: auto; line-height: 1; border-radius: 12px; font-size: 15px; box-shadow: 0 8px 22px rgba(212, 166, 74, .28); }
.ft .ft-cta a.ft-ask { display: inline-flex; align-items: center; gap: 6px; padding: 0; color: rgba(255, 255, 255, .78); font-size: 14.5px; font-weight: 600; border-bottom: 1px solid rgba(255, 255, 255, .25); }
.ft .ft-cta a.ft-ask:hover { color: #fff; border-bottom-color: #fff; }
@media (max-width: 640px) { .ft .ft-cta a.btn { width: 100%; } }

/* plans: the same blocks in every card, buttons on one line */
.plans4 .ph { visibility: hidden; }
.plans4 .plan-d { min-height: 66px; margin-bottom: 10px; }
.plans4 .pp-note { visibility: hidden; min-height: 38px; margin: 2px 0 10px; line-height: 1.35; }
.plans4 .price { min-height: 72px; align-content: flex-end; }
.plans4 .plan .btn { white-space: nowrap; height: 48px; display: flex; align-items: center; justify-content: center; }
@media (max-width: 1200px) { .plans4 .plan-d { min-height: 44px; } }

/* plans: one shared row grid (subgrid) — badges, titles, prices and buttons line up exactly */
@supports (grid-template-rows: subgrid) {
  .plans.plans4 { grid-template-rows: auto; align-items: stretch; }
  .plans4 .plan { display: grid; grid-row: span 7; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
  .plans4 .plan > .promo-badge { align-self: start; justify-self: start; }
  .plans4 .plan > .plan-d { min-height: 0; }
  .plans4 .plan > .price { min-height: 0; align-self: end; }
  .plans4 .plan > .pp-note { min-height: 0; }
  .plans4 .plan > .btn { align-self: start; }
}

/* ---------- App downloads: menu cards («Полезное») and footer chips ---------- */
.dd-m.wapps { width: 640px; }
.dd-apps { margin: 4px 4px 8px; padding: 14px 0 6px; border-bottom: 1px solid var(--line); }
.dd-apps-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 6px 10px; }
.dd-apps-h h5 { margin: 0; }
#nav .dd-apps-h a { padding: 0; font-size: 13px; font-weight: 650; color: var(--blue); }
#nav .dd-apps-h a::after { display: none; }
.dd-apps-l { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
#nav .dd-apps a.app-card, .dr-g a.app-card, .r-apps a.app-card {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 64px; padding: 12px 12px 12px 14px;
  border-radius: 14px; background: #f3f6fa; color: var(--ink); overflow: hidden; isolation: isolate;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
#nav .dd-apps a.app-card::after { display: none; }
.app-card .ac-t { display: flex; flex-direction: column; min-width: 0; }
.app-card .ac-t b { font-size: 14px; font-weight: 700; line-height: 1.2; }
.app-card .ac-t small { margin-top: 3px; font-size: 12px; color: var(--muted); line-height: 1.2; }
.app-card svg { width: 26px; height: 26px; flex: none; opacity: .9; transition: transform .2s ease; }
.app-card::before { content: ''; position: absolute; z-index: -1; width: 70px; height: 70px; border-radius: 50%; right: -22px; bottom: -30px; opacity: .55; transition: transform .25s ease; }
.app-card.ac-win { background: linear-gradient(135deg, #1d2b3a, #0b3a5b); color: #fff; }
.app-card.ac-win .ac-t small { color: rgba(255, 255, 255, .7); }
.app-card.ac-win::before { background: radial-gradient(circle, rgba(241, 200, 106, .55), transparent 70%); }
.app-card.ac-mac::before { background: radial-gradient(circle, rgba(140, 200, 120, .55), transparent 70%); }
.app-card.ac-android::before { background: radial-gradient(circle, rgba(61, 220, 132, .5), transparent 70%); }
.app-card.ac-web::before { background: radial-gradient(circle, rgba(47, 111, 192, .4), transparent 70%); }
#nav .dd-apps a.app-card:hover, .dr-g a.app-card:hover, .r-apps a.app-card:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -12px rgba(11, 58, 91, .45); background-color: #eaf0f6; }
#nav .dd-apps a.app-card.ac-win:hover { background: linear-gradient(135deg, #22344a, #0e4670); }
.app-card:hover svg { transform: scale(1.08); }
.app-card:hover::before { transform: scale(1.35); }
.app-card.soon { opacity: .72; }
.app-card.soon .ac-t small { font-style: italic; }
.dr-g .dd-apps-l { grid-template-columns: 1fr 1fr; }
.dr-g .dd-apps { border: 0; padding-top: 8px; }

footer.ft .ft-apps { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; padding: 22px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.ft-apps-t { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
.ft-apps-l { display: flex; flex-wrap: wrap; gap: 10px; }
footer.ft a.app-chip {
  display: inline-flex; align-items: center; gap: 9px; height: 42px; padding: 0 16px 0 13px; border-radius: 12px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); color: #fff; font-size: 14px; font-weight: 600;
  transition: background .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
footer.ft a.app-chip svg { width: 19px; height: 19px; flex: none; color: rgba(255, 255, 255, .88); transition: transform .2s ease, color .2s ease; }
footer.ft a.app-chip em { font-style: normal; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: rgba(241, 200, 106, .16); color: #f1c86a; }
footer.ft a.app-chip:hover { background: rgba(255, 255, 255, .12); border-color: rgba(241, 200, 106, .55); transform: translateY(-2px); box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .6); }
footer.ft a.app-chip:hover svg { color: #f1c86a; transform: scale(1.1); }
footer.ft a.app-chip:active { transform: translateY(0); }
footer.ft a.app-chip:focus-visible, .app-card:focus-visible { outline: 2px solid #f1c86a; outline-offset: 2px; }
footer.ft a.app-chip.soon { color: rgba(255, 255, 255, .7); }
@media (max-width: 860px) { .dd-m.wapps { width: 560px; } .dd-apps-l { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { footer.ft .ft-apps { flex-direction: column; align-items: flex-start; } .ft-apps-l { display: grid; grid-template-columns: 1fr; width: 100%; } footer.ft a.app-chip { justify-content: flex-start; } }
.r-apps { margin-top: 22px; max-width: 620px; }
@media (max-width: 640px) { .r-apps.dd-apps-l { grid-template-columns: 1fr 1fr; } }

/* ---------- App cards v2: clean white cards, coloured icon tile, download arrow (menu + apps page) ---------- */
#nav .dd-apps-h a, .dd-apps-h a { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; padding: 4px 8px; margin: -4px -8px; border-radius: 8px; background: none; font-size: 13px; font-weight: 650; color: var(--blue); grid-template-columns: none; }
#nav .dd-apps-h a:hover { background: none; color: #0b3a5b; text-decoration: underline; text-underline-offset: 3px; }
#nav .dd-apps a.app-card, .dr-g a.app-card, .r-apps a.app-card {
  display: flex; align-items: center; gap: 11px; min-height: 0; padding: 11px 12px; border-radius: 14px;
  background: #fff; border: 1px solid #e3e8ee; color: var(--ink); box-shadow: 0 1px 2px rgba(16, 40, 70, .04);
  overflow: visible; isolation: auto; grid-template-columns: none;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.app-card::before { display: none !important; }
#nav .dd-apps a.app-card.ac-win, .dr-g a.app-card.ac-win { background: #fff; color: var(--ink); }
.app-card .ac-i { width: 38px; height: 38px; flex: none; border-radius: 11px; display: grid; place-items: center; color: #fff; }
.app-card .ac-i svg { width: 20px; height: 20px; opacity: 1; transform: none; }
.app-card.ac-win .ac-i { background: linear-gradient(135deg, #0b3a5b, #145a87); }
.app-card.ac-android .ac-i { background: linear-gradient(135deg, #3ddc84, #1fa463); }
.app-card.ac-web .ac-i { background: linear-gradient(135deg, #f1c86a, #d4a64a); color: #2a1d00; }
.app-card .ac-t { flex: 1; min-width: 0; }
.app-card .ac-t b { font-size: 14px; font-weight: 700; color: var(--ink); }
.app-card .ac-t small, #nav .dd-apps a.app-card.ac-win .ac-t small { color: var(--muted); font-size: 12px; margin-top: 2px; }
.app-card .ac-go { width: 16px; height: 16px; flex: none; color: #9aa5b1; transition: color .18s ease, transform .18s ease; }
#nav .dd-apps a.app-card:hover, .dr-g a.app-card:hover, .r-apps a.app-card:hover, #nav .dd-apps a.app-card.ac-win:hover {
  background: #fff; border-color: #e2c37f; box-shadow: 0 10px 24px -14px rgba(11, 58, 91, .35), 0 0 0 3px rgba(212, 166, 74, .12); transform: translateY(-2px);
}
.app-card:hover .ac-go { color: #b5862a; transform: translateY(2px); }
.app-card.ac-web:hover .ac-go { transform: translate(2px, -2px); }
.app-card:hover .ac-i svg { transform: none; }
.app-card:focus-visible { outline: 2px solid #d4a64a; outline-offset: 2px; }
.app-card.soon { opacity: .6; }
.dd-m.wapps { width: 720px; }
.app-card .ac-t small { white-space: nowrap; }
@media (max-width: 860px) { .dd-m.wapps { width: 600px; } }

/* ---------- Mobile menu: «Скачать приложение» inside the drawer ---------- */
.dr-nav .dd-apps { margin: 6px 0 4px; padding: 12px 0 4px; border-top: 1px solid var(--line); border-bottom: 0; }
.dr-nav .dd-apps-h { margin: 0 4px 10px; }
.dr-nav .dd-apps-h h5 { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.dr-nav .dd-apps-h a, .dr-nav .dd-apps-l a { border-bottom: 0; }
.dr-nav .dd-apps-h a { display: inline; padding: 0; margin: 0; font-size: 13.5px; font-weight: 650; color: var(--blue); }
.dr-nav .dd-apps a::after { content: none !important; display: none !important; }
.dr-nav .dd-apps-l { display: grid; grid-template-columns: 1fr; gap: 8px; }
.dr-nav .dd-apps-l a.app-card { display: flex; justify-content: flex-start; align-items: center; gap: 12px; padding: 11px 12px; font-size: 15px; font-weight: 400; min-width: 0; }
.dr-nav .dd-apps-l a.app-card .ac-t { flex: 1; min-width: 0; }
.dr-nav .dd-apps-l a.app-card .ac-t b { font-size: 15px; }
.dr-nav .dd-apps-l a.app-card .ac-t small { white-space: normal; }
.dr-nav .dd-apps-l a.app-card .ac-go { margin-left: auto; }
.dr-nav .dd-apps-l a.app-card:hover { transform: none; }
.dr-nav .dr-g > a.mi:last-child { margin-top: 4px; color: var(--blue); }
/* ---------- Footer: tablets and phones (a later desktop rule used to force 5 columns everywhere) ---------- */
@media (max-width: 1100px) {
  footer.ft .ft-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 24px; }
}
@media (max-width: 640px) {
  footer.ft { padding: 40px 0 22px; }
  footer.ft .ft-top { gap: 28px; padding-bottom: 28px; }
  footer.ft .ft-cols { grid-template-columns: 1fr 1fr; gap: 26px 18px; }
  footer.ft .ft-cols > div:last-child { grid-column: 1 / -1; }
  footer.ft .ft-cols h4 { font-size: 11.5px; letter-spacing: .1em; margin: 0 0 12px; color: #f1c86a; }
  footer.ft .ft-cols a { display: block; padding: 6px 0; font-size: 14.5px; line-height: 1.35; overflow-wrap: anywhere; }
  footer.ft .ft-bottom { flex-direction: column; align-items: flex-start; gap: 16px; }
  footer.ft .ft-legal { display: flex; flex-wrap: wrap; gap: 8px 16px; }
  footer.ft .ft-legal a { font-size: 13px; }
  footer.ft .ft-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
}
/* ---------- Pricing on phones: plan tabs + sideways swipe; comparison table for every screen ---------- */
.plan-tabs { display: none; }
@media (max-width: 760px) {
  .plan-tabs { display: flex; gap: 4px; margin: 4px auto 14px; padding: 4px; border-radius: 14px; background: #eef1f5; max-width: 440px; position: sticky; top: 66px; z-index: 5; box-shadow: 0 6px 16px -10px rgba(11, 58, 91, .35); }
  .plan-tabs button { flex: 1; border: 0; background: none; padding: 9px 4px; border-radius: 10px; font: inherit; font-size: 14px; font-weight: 700; color: var(--muted); cursor: pointer; transition: background .2s, color .2s; }
  .plan-tabs button.on { background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(11, 58, 91, .12); }
  .plans.plans4 { display: flex; grid-template-columns: none; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 7%; padding: 6px 7% 18px; margin: 0 -20px; max-width: none; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .plans.plans4::-webkit-scrollbar { display: none; }
  .plans.plans4 .plan { flex: 0 0 86%; display: flex; flex-direction: column; grid-row: auto; grid-template-rows: none; scroll-snap-align: center; margin: 0; transform: none !important; opacity: 1 !important; }
  .plans.plans4 .plan ul { margin-top: 14px; }
}

details.cmp { margin: 28px auto 6px; max-width: 1080px; border: 1px solid var(--line); border-radius: 18px; background: #fff; overflow: hidden; }
details.cmp > summary { list-style: none; cursor: pointer; padding: 16px 20px; font-weight: 700; font-size: 16px; display: flex; justify-content: space-between; align-items: center; color: var(--ink); }
details.cmp > summary::-webkit-details-marker { display: none; }
details.cmp > summary::after { content: ''; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s; opacity: .55; }
details.cmp[open] > summary::after { transform: rotate(-135deg); }
.cmp-wrap { overflow-x: auto; border-top: 1px solid var(--line); -webkit-overflow-scrolling: touch; }
.cmp-t { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; min-width: 560px; }
.cmp-t th, .cmp-t td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: center; vertical-align: middle; }
.cmp-t thead th { position: sticky; top: 0; background: #f7f9fb; font-size: 14.5px; z-index: 1; }
.cmp-t thead th.pro { color: #8a6411; background: #fbf4e3; }
.cmp-t tbody th { text-align: left; font-weight: 500; color: #2c3a48; }
.cmp-t tr > :first-child { position: sticky; left: 0; background: #fff; z-index: 2; min-width: 170px; max-width: 220px; box-shadow: 1px 0 0 var(--line); }
.cmp-t thead tr > :first-child { background: #f7f9fb; z-index: 3; }
.cmp-t .yes { color: #2fb36b; font-weight: 800; font-size: 16px; }
.cmp-t .no { color: #c3cbd4; }
.cmp-t tbody tr:hover td, .cmp-t tbody tr:hover th { background: #fafcfe; }
@media (max-width: 760px) { .cmp-t { font-size: 13px; } .cmp-t th, .cmp-t td { padding: 10px 10px; } .cmp-t tr > :first-child { min-width: 140px; } }
.app-card.ac-win .ac-t small, #nav .dd-apps a.app-card.ac-win .ac-t small, .dr-nav .dd-apps-l a.app-card.ac-win .ac-t small { color: var(--muted); }
.app-card.ac-win .ac-t b { color: var(--ink); }

/* Sana Chat wordmark (2026-12) */
.logo.wm img { width: auto; height: 38px; }
.logo.wm:hover img { transform: none; }
.hdr .logo.wm img, .dr-top .logo.wm img { height: 34px; width: auto; }
@media (max-width: 760px) { .hdr .logo.wm img { height: 30px; width: auto; } }
