/* Публичный сайт BYNEX CRM: холодная синяя гамма + золотые акценты, бирюзовый — для особо важного */
:root { --gold: #E9B949; --gold-2: #F7D57E; --gold-d: #B8862B; --teal: #35B8AE; --line: rgba(36,73,109,.55); --ease: cubic-bezier(.2,.7,.2,1); }
body { background: #0A1426; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.gold-text { background: linear-gradient(100deg, var(--gold-2), var(--gold) 45%, #D79A2B); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { display: inline-block; color: var(--gold); font-weight: 800; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 10px; }
.btn-primary { background: linear-gradient(135deg, var(--gold-2), var(--gold) 55%, #D99E30); color: #1B1405; box-shadow: 0 6px 22px rgba(233,185,73,.22); }
.btn-primary:hover { filter: brightness(1.06); box-shadow: 0 8px 28px rgba(233,185,73,.32); }
.btn-lg { min-height: 52px; padding: 14px 24px; font-size: 16px; border-radius: 14px; }
.link { background: none; border: 0; padding: 0; color: var(--gold); font: inherit; font-weight: 700; cursor: pointer; }
.link:hover { text-decoration: underline; }
.center { text-align: center; margin-top: 22px; }

/* шапка */
.site-top { position: sticky; top: 0; z-index: 30; background: rgba(10,20,38,.86); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.site-top .wrap { display: flex; align-items: center; gap: 18px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #EAF5FF; font-weight: 900; font-size: 20px; letter-spacing: .04em; }
.bx-mark { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-weight: 900; color: #1B1405; background: linear-gradient(135deg, var(--gold-2), var(--gold) 60%, var(--gold-d)); box-shadow: 0 4px 16px rgba(233,185,73,.3); }
.bx-name em { font-style: normal; color: var(--gold); }
.site-nav { display: flex; gap: 2px; margin-left: auto; align-items: center; }
.nav-item { position: relative; }
.nav-top { display: inline-flex; align-items: center; gap: 4px; color: #EAF5FF; text-decoration: none; padding: 10px 12px; border-radius: 10px; font-weight: 600; }
.nav-top:hover, .nav-item:focus-within .nav-top, .nav-top[aria-current] { background: #142B49; }
.caret { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s var(--ease); }
.nav-item:hover .caret, .nav-item:focus-within .caret { transform: rotate(180deg); color: var(--gold); }
.dd { position: absolute; top: calc(100% + 8px); left: 50%; min-width: 340px; padding: 8px; background: #0E1C33; border: 1px solid #24496D; border-radius: 16px; box-shadow: 0 24px 60px rgba(0,0,0,.45); opacity: 0; visibility: hidden; transform: translate(-50%, 6px); transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s; }
.dd::before { content: ''; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.nav-item:hover .dd, .nav-item:focus-within .dd { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.dd a { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; color: #EAF5FF; text-decoration: none; }
.dd a:hover, .dd a:focus-visible { background: #142B49; }
.dd a .icon { width: 22px; height: 22px; color: var(--gold); flex: none; margin-top: 2px; }
.dd a b { display: block; font-size: 15px; }
.dd a small { display: block; color: #A9C3DD; font-size: 13px; line-height: 1.35; }
.nav-cta { margin-left: 8px; }
.burger { display: none; margin-left: auto; }
@media (max-width: 980px) {
  .burger { display: inline-flex; }
  .site-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: #0A1426; padding: 12px 20px 20px; border-bottom: 1px solid #24496D; max-height: calc(100vh - 68px); overflow: auto; }
  .site-nav.open { display: flex; }
  .nav-top { width: 100%; justify-content: space-between; color: var(--gold); font-size: 13px; text-transform: uppercase; letter-spacing: .1em; padding: 14px 4px 6px; pointer-events: none; }
  .nav-top .caret { display: none; }
  .dd { position: static; opacity: 1; visibility: visible; transform: none; min-width: 0; padding: 0; background: none; border: 0; box-shadow: none; }
  .dd a { padding: 8px 4px; }
  .nav-cta { margin: 14px 0 0; }
}

/* общие блоки */
.hero { padding: 72px 0 48px; background: radial-gradient(70% 60% at 85% 0%, rgba(71,140,203,.26), transparent 60%), radial-gradient(40% 40% at 10% 10%, rgba(233,185,73,.08), transparent 70%); }
.hero h1 { font-size: clamp(32px, 4.6vw, 56px); line-height: 1.05; margin: 0 0 18px; letter-spacing: -.02em; }
.hero p.lead { font-size: 19px; color: #CFE6FA; line-height: 1.55; margin: 0 0 26px; max-width: 40em; }
.hero .cta, .cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
section.block { padding: 84px 0; border-top: 1px solid var(--line); }
section.block h2 { font-size: clamp(28px, 3.2vw, 42px); line-height: 1.1; margin: 0 0 12px; letter-spacing: -.01em; }
section.block p.sub { color: #A9C9E6; margin: 0 0 28px; font-size: 17px; line-height: 1.55; max-width: 46em; }
.sec-head.two { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 36px; }
.sec-head.two p.sub { margin-bottom: 0; }
@media (max-width: 900px) { .sec-head.two { grid-template-columns: 1fr; gap: 8px; } }
.cards2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 900px) { .cards2 { grid-template-columns: 1fr; } }
.feat { background: #142B49; border: 1px solid #24496D; border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.feat h3 { margin: 0; font-size: 20px; }
.feat ul { margin: 0; padding-left: 18px; color: #CFE6FA; line-height: 1.6; }
section.block h2 > .icon { color: var(--gold); width: 30px; height: 30px; vertical-align: -4px; }
.tabs-prod { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }

/* раскрывающиеся блоки */
.more-wrap { margin-top: 26px; }
.more-btn { gap: 8px; }
.more-btn[aria-expanded="true"] { border-color: var(--gold); color: var(--gold); }
.more-btn[aria-expanded="true"] .caret { transform: rotate(180deg); }
.more-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease), opacity .35s var(--ease); opacity: 0; }
.more-body > div { overflow: hidden; }
.more-body.open { grid-template-rows: 1fr; opacity: 1; }
.more-body.open > div { padding-top: 20px; }

/* тарифы */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.plan { position: relative; background: #142B49; border: 1px solid #24496D; border-radius: 20px; padding: 26px; display: flex; flex-direction: column; }
.plan h3 { margin: 0; }
.plan.gold { border-color: var(--gold); background: linear-gradient(180deg, rgba(233,185,73,.10), #142B49 50%); box-shadow: 0 20px 50px rgba(233,185,73,.10); }
.plan.teal .price { color: var(--teal); }
.plan.gold .price { color: var(--gold); }
.plan-tag { position: absolute; top: -12px; right: 20px; background: var(--gold); color: #1B1405; font-weight: 800; font-size: 12px; padding: 4px 10px; border-radius: 999px; letter-spacing: .04em; }
.plan .price { font-size: 34px; font-weight: 900; margin: 10px 0 2px; }
.plan ul { list-style: none; padding: 0; margin: 18px 0 22px; color: #CFE6FA; line-height: 1.5; display: grid; gap: 8px; flex: 1; }
.plan li { display: flex; gap: 8px; }
.plan li .icon { width: 18px; height: 18px; color: var(--teal); flex: none; margin-top: 3px; }

/* вопросы */
.faq-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 40px; }
@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; } }
.faq details { background: #142B49; border: 1px solid #24496D; border-radius: 14px; padding: 16px 18px; margin-bottom: 10px; transition: border-color .2s; }
.faq details[open] { border-color: rgba(233,185,73,.5); }
.faq summary { cursor: pointer; font-weight: 700; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--gold); font-size: 22px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: #CFE6FA; line-height: 1.6; margin: 10px 0 0; }

/* контакты и заявка */
.cta-band { display: flex; gap: 30px; justify-content: space-between; align-items: center; flex-wrap: wrap; padding: 40px; border-radius: 24px; border: 1px solid rgba(233,185,73,.45); background: radial-gradient(80% 120% at 100% 0%, rgba(233,185,73,.16), transparent 60%), #10223D; }
.cta-band .sub { margin-bottom: 10px !important; }
.cta-band-r { display: grid; gap: 8px; justify-items: center; }
.contact-row, .foot-contacts { display: flex; gap: 10px 18px; flex-wrap: wrap; }
.contact-row a, .contact-row span, .foot-contacts a, .foot-contacts span { display: inline-flex; gap: 8px; align-items: center; color: #CFE6FA; text-decoration: none; }
.contact-row .icon, .foot-contacts .icon { width: 18px; height: 18px; color: var(--gold); }
.foot-contacts { flex-direction: column; }
.lead-dlg { width: min(640px, calc(100vw - 24px)); max-height: calc(100vh - 24px); padding: 0; border: 1px solid #24496D; border-radius: 22px; background: #10223D; color: #EAF5FF; box-shadow: 0 40px 100px rgba(0,0,0,.6); }
.lead-dlg::backdrop { background: rgba(5,10,20,.7); backdrop-filter: blur(4px); }
.lead-dlg[open] { animation: dlg-in .25s var(--ease); }
@keyframes dlg-in { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.lead-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 26px; }
.lead-form .full { grid-column: 1 / -1; }
.lead-h { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.lead-h h2 { margin: 0 0 6px; font-size: 26px; }
.lead-h p { margin: 0; }
#leadMsg { color: var(--gold-2); }
@media (max-width: 640px) { .lead-form { grid-template-columns: 1fr; padding: 20px; } .cta-band { padding: 26px; } }
.check { display: flex; gap: 10px; align-items: flex-start; color: #CFE6FA; }
.check input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--gold); }

.site-foot { padding: 36px 0 48px; color: #A9C9E6; border-top: 1px solid var(--line); }
.site-foot .wrap { display: flex; gap: 24px; flex-wrap: wrap; justify-content: space-between; }
.site-foot a { color: #CFE6FA; text-decoration: none; }
.site-foot a:hover { color: var(--gold); }

/* демо */
.demo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.demo-card { background: #142B49; border: 1px solid #24496D; border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 10px; transition: border-color .2s, transform .2s var(--ease); }
.demo-card:hover { border-color: rgba(233,185,73,.5); transform: translateY(-2px); }
.demo-card h3 { margin: 0; display: flex; gap: 10px; align-items: center; }
.demo-card h3 .icon { color: var(--gold); }
.demo-card p { margin: 0; color: #CFE6FA; line-height: 1.5; }
.demo-card .row { margin-top: auto; }
.steps { display: grid; gap: 8px; color: #CFE6FA; padding-left: 20px; line-height: 1.55; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

.site-foot .stack { display: flex; flex-direction: column; gap: 8px; }
html, body { overflow-x: clip; }
.hero-main > .wrap > *, .sc-body > *, .sec-head > *, .faq-grid > * { min-width: 0; }
