:root {
  --bg-page: #F6F8FC;
  --bg-card: #FFFFFF;
  --bg-subtle: #E4E8F0;
  --border: #E4E8F0;
  --border-dashed: #C7CEDC;
  --text: #071326;
  --text-secondary: #4B5565;
  --text-muted: #667085;
  --accent: #0A62F2;
  --accent-hover: #0850C9;
  --accent-2: #00E8FE;
  --accent-gradient: linear-gradient(90deg, #00E8FE 0%, #008DFF 45%, #3B45F5 67%, #A83CF3 84%, #FF35D8 100%);
  --header-bg: rgba(255, 255, 255, 0.92);
  --success: #087B53;
  --shadow-sm: 0 8px 24px rgba(7, 19, 38, 0.08);
  --shadow-lg: 0 24px 64px rgba(7, 19, 38, 0.14);
  --transition: 160ms ease;
  --panel-strong: #071326;
  --panel-strong-text: #F0F3FA;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-page: #05080F;
    --bg-card: #0D1220;
    --bg-subtle: #1B2333;
    --border: #232C40;
    --border-dashed: #313C54;
    --text: #F0F3FA;
    --text-secondary: #B6C0D6;
    --text-muted: #7E8AA3;
    --accent: #3D93FF;
    --accent-hover: #63ABFF;
    --accent-2: #00E8FE;
    --header-bg: rgba(5, 8, 15, 0.85);
    --success: #48D8A4;
    --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.24);
    --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.36);
    --panel-strong: #111827;
    --panel-strong-text: #F8FAFC;
  }
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg-page);
  color-scheme: light dark;
  -webkit-font-smoothing: antialiased;
  font-family: Manrope, system-ui, sans-serif;
  color: var(--text);
  font-size: 16px;
  line-height: 1.55;
}
h1, h2, h3, h4 { font-family: 'Onest', sans-serif; font-weight: 600; letter-spacing: -0.01em; text-wrap: balance; margin: 0; }
p { margin: 0; }
a { color: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 3px; }
.skip-link { position: fixed; z-index: 100; left: 12px; top: -80px; padding: 10px 16px; border-radius: 8px; background: var(--text); color: var(--bg-page); text-decoration: none; transition: top var(--transition); }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.shell { max-width: 1180px; margin: 0 auto; padding-inline: clamp(20px, 3vw, 28px); }
.eyebrow { font-size: 12.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }

/* header/nav */
.site-header { position: sticky; top: 0; z-index: 30; background: var(--header-bg); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.site-header .shell { display: flex; align-items: center; gap: 24px; padding-block: 16px; }
.brand { display: flex; align-items: center; gap: 9px; font-family: 'Onest', sans-serif; font-weight: 700; font-size: 17px; text-decoration: none; color: var(--text); }
.brand img { width: 22px; height: 16px; }
.brand .tag { font-weight: 500; color: var(--text-muted); font-size: 13.5px; margin-left: 2px; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { text-decoration: none; color: var(--text-secondary); font-size: 15px; font-weight: 500; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links .nav-section-link { color: var(--text-muted); }
.nav-links .nav-section-link span[aria-hidden="true"] { color: var(--accent); font-weight: 700; }
.nav-cta { flex: none; }
.nav-toggle { display: none; margin-left: auto; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-card); color: var(--text); min-height: 44px; padding: 8px 14px; font: inherit; font-weight: 600; cursor: pointer; }
.burger-icon { width: 22px; display: grid; gap: 5px; }
.burger-icon span { height: 2px; border-radius: 99px; background: currentColor; transition: transform var(--transition), opacity var(--transition); }
.nav-toggle[aria-expanded="true"] .burger-icon span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .burger-icon span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .burger-icon span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-calc { display: none; }
@media (max-width: 900px) {
  body { padding-top: 65px; }
  .site-header { position: fixed; inset: 0 0 auto; width: 100%; background: var(--bg-page); backdrop-filter: none; -webkit-backdrop-filter: none; transform: translateZ(0); }
  .brand .tag { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; }
  .site-header .nav-cta { display: none; }
  .site-header .shell { position: relative; }
  .nav-links { display: none; position: absolute; top: calc(100% + 1px); inset-inline: 0; padding: 14px 20px 20px; background: var(--bg-card); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-sm); }
  .nav-links.open { display: grid; gap: 4px; }
  .nav-links a { padding: 12px 10px; min-height: 44px; border-radius: 8px; }
  .nav-links a:hover, .nav-links a.active { background: var(--bg-page); color: var(--accent); }
  .nav-links .nav-calc { display: flex; align-items: center; justify-content: center; margin-top: 8px; background: var(--accent); color: #fff; font-weight: 700; }
}

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; background: var(--accent); color: #fff; font-size: 15.5px; font-weight: 600; padding: 12px 22px; border-radius: 9px; text-decoration: none; border: none; cursor: pointer; font-family: inherit; transition: background var(--transition), border-color var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition); }
.btn:hover { background: var(--accent-hover); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: wait; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border-dashed); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-white { background: #fff; color: #071326; }

.badge { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 4px 12px; border-radius: 999px; }
.badge-progress { background: rgba(0,232,254,0.1); color: var(--accent-2); border: 1px solid rgba(0,232,254,0.35); }
.badge-live { background: rgba(10,98,242,0.08); color: var(--accent); border: 1px solid rgba(10,98,242,0.25); }

/* sections */
section { padding-block: clamp(48px, 7vw, 80px); }
section.alt { background: var(--bg-card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(25px, 4.4vw, 34px); line-height: 1.18; }
.section-head p { color: var(--text-secondary); font-size: 16px; margin-top: 14px; }
.section-more { margin-top: 24px; }
.section-more a, .solution-back a { color: var(--accent); font-weight: 700; text-decoration: none; }
.section-more a:hover, .solution-back a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* page hierarchy */
.breadcrumbs { margin-bottom: 30px; color: var(--text-muted); font-size: 13px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; list-style: none; margin: 0; padding: 0; }
.breadcrumbs li { display: flex; align-items: center; min-width: 0; }
.breadcrumbs li + li::before { content: '/'; margin-right: 8px; color: var(--border-dashed); }
.breadcrumbs a { color: var(--text-secondary); text-underline-offset: 3px; }
.breadcrumbs [aria-current="page"] span { max-width: min(52ch, 70vw); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* solutions catalog */
.catalog-hero { padding-bottom: 44px; }
.catalog-intro { display: grid; grid-template-columns: 1.15fr .85fr; align-items: end; gap: clamp(28px, 7vw, 90px); }
.catalog-intro h1 { margin-bottom: 0; }
.catalog-intro .lede { margin-bottom: 4px; }
.catalog-section { padding-top: 24px; }
.solutions-catalog { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.solution-catalog-card { display: flex; flex-direction: column; min-height: 390px; padding: clamp(24px, 4vw, 36px); border: 1px solid var(--border); border-radius: 18px; background: var(--bg-card); color: inherit; text-decoration: none; transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition); }
.solution-catalog-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.solution-card-top { margin-bottom: 32px; color: var(--text-muted); font-size: 12px; }
.solution-kind { color: var(--accent); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.solution-catalog-card h2 { font-size: clamp(23px, 3vw, 31px); line-height: 1.16; margin-bottom: 14px; }
.solution-catalog-card > p { color: var(--text-secondary); max-width: 58ch; }
.solution-catalog-card dl { display: grid; gap: 13px; margin: 28px 0 0; }
.solution-catalog-card dl > div { display: grid; grid-template-columns: 92px 1fr; gap: 12px; padding-top: 13px; border-top: 1px solid var(--border); }
.solution-catalog-card dt { color: var(--text-muted); font-size: 12.5px; }
.solution-catalog-card dd { margin: 0; color: var(--text-secondary); font-size: 13.5px; }
.solution-open { margin-top: auto; padding-top: 24px; color: var(--accent); font-weight: 700; }
.solution-custom-card { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(220px, .72fr) minmax(0, 1fr) auto; gap: 16px 30px; align-items: center; min-height: 0; border-style: dashed; background: linear-gradient(140deg, var(--bg-card), var(--bg-page)); }
.solution-custom-card .solution-card-top, .solution-custom-card h2, .solution-custom-card p, .solution-custom-card dl, .solution-custom-card .solution-open { margin: 0; }
.solution-custom-card .solution-card-top { grid-column: 1 / -1; margin-bottom: 2px; }
.solution-custom-card p { max-width: 56ch; }
.solution-custom-card dl { align-self: stretch; }
.solution-custom-card .solution-open { justify-self: end; white-space: nowrap; }
.solution-choice .section-head { max-width: 760px; }

/* unique solution detail */
.scenario-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; list-style: none; margin: 0; padding: 1px; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; background: var(--border); }
.scenario-steps li { min-height: 250px; padding: 26px 22px; background: var(--bg-card); }
.scenario-number { display: inline-block; margin-bottom: 38px; color: var(--accent); font: 700 13px/1 'Onest', sans-serif; }
.scenario-steps h3 { margin-bottom: 10px; font-size: 18px; }
.scenario-steps p { color: var(--text-secondary); font-size: 14px; }
.solution-detail-grid { display: grid; grid-template-columns: 1fr .82fr; gap: clamp(36px, 7vw, 90px); align-items: start; }
.solution-detail-main h2 { font-size: clamp(25px, 4.4vw, 34px); line-height: 1.18; }
.solution-integrations { padding: clamp(24px, 4vw, 32px); border: 1px solid var(--border); border-radius: 16px; background: var(--bg-card); }
.solution-integrations h3 { font-size: 18px; margin-bottom: 16px; }
.integration-list { display: flex; flex-wrap: wrap; gap: 8px; }
.integration-list span { padding: 7px 11px; border-radius: 999px; background: var(--bg-page); border: 1px solid var(--border); color: var(--text-secondary); font-size: 12.5px; }
.fit-note { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--border); }
.fit-note strong { font-size: 13px; color: var(--text); }
.fit-note p { margin-top: 8px; color: var(--text-secondary); font-size: 13.5px; }
.solution-back { padding-block: 14px 34px; }

/* cards */
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); }
.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 26px; }
.card h3 { font-size: 18px; margin-bottom: 10px; }
.card p { color: var(--text-secondary); font-size: 14.5px; }
.card .num { font-family: 'Onest', sans-serif; font-weight: 700; font-size: 13px; color: var(--accent); }

.step { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.step .line { flex: 1; height: 1px; background: var(--bg-subtle); }
.step .dur { font-size: 12.5px; font-weight: 600; color: var(--text-muted); }
.faq-narrow { max-width: 820px; }

/* case cards */
.case-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 28px; }
.case-card h3 { font-size: 20px; margin: 12px 0 10px; }
.case-card .lede { color: var(--text-secondary); font-size: 15px; margin-bottom: 16px; }
.case-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px,1fr)); gap: 1px; background: var(--bg-subtle); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; margin-top: 16px; }
.case-stats div { background: var(--bg-page); padding: 16px; }
.case-stats .v { font-family: 'Onest', sans-serif; font-weight: 700; font-size: 20px; }
.case-stats .l { font-size: 12.5px; color: var(--text-secondary); margin-top: 4px; }

/* hero */
.hero { padding-block: clamp(56px, 9vw, 100px) clamp(40px, 6vw, 70px); }
.hero-bg {background-image: url("bg.png");background-position: center; background-repeat: no-repeat; background-size: cover;}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }
.hero-simple { max-width: 980px; }
.hero h1 { font-size: clamp(32px, 5.6vw, 50px); line-height: 1.12; letter-spacing: -0.02em; margin-bottom: 20px; }
.hero .lede { font-size: 18px; color: var(--text-secondary); max-width: 54ch; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-microcopy { margin-top: 12px; color: var(--text-muted); font-size: 13px; }
.hero-proof-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; width: fit-content; max-width: 100%; margin-top: 28px; padding: 14px 18px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-card); color: var(--text-secondary); text-decoration: none; font-size: 14px; }
.hero-proof-row:hover { border-color: var(--accent); }
.hero-proof-row strong { color: var(--accent); font-family: 'Onest', sans-serif; font-size: 17px; font-weight: 700; }
.hero-proof-row span:first-child { color: var(--text); font-weight: 700; }
.hero-proof-row em { color: var(--accent); font-style: normal; font-weight: 700; }

/* contact / form */
.contact-panel { background: var(--accent-gradient); border-radius: 20px; padding: clamp(32px, 5vw, 56px); color: #fff; position: relative; overflow: hidden; }
.contact-panel h2 { color: #fff; }
.contact-panel .lede { color: #EAF0FF; }
.contact-hero-copy { max-width: 760px; }
.contact-page { width: 100%; }
.contact-simple { display: grid; gap: 28px; width: 100%; }
.contact-direct-standalone { margin-top: 0; padding-top: 0; border-top: 0; }
.contact-note { display: grid; gap: 10px; max-width: 760px; padding: 24px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-card); }
.contact-note strong { color: var(--text); font-size: 20px; }
.contact-note p { margin: 0; color: var(--text-secondary); line-height: 1.65; }
.contact-note .btn { width: fit-content; margin-top: 4px; }
form.lead { display: grid; gap: 20px; width: 100%; margin-top: 24px; }
.lead-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 4vw, 36px); align-items: stretch; }
.lead-column { display: grid; gap: 16px; align-content: start; min-width: 0; }
.lead-column .field-grow { align-self: stretch; }
.field { display: grid; gap: 7px; }
.field label { font-size: 13.5px; font-weight: 700; color: var(--text); }
.field .optional { font-weight: 400; color: var(--text-muted); }
.required-star { color: #ff7d7d; }
.field-hint { color: var(--text-muted); font-size: 12.5px; line-height: 1.45; }
form.lead input, form.lead select, form.lead textarea { width: 100%; padding: 13px 15px; border-radius: 9px; border: 1px solid var(--border-dashed); background: #fff; font-size: 16px; color: #071326; font-family: inherit; }
form.lead input:focus, form.lead select:focus, form.lead textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(10, 98, 242, .12); outline: none; }
form.lead textarea { resize: vertical; }
.lead-consents { display: grid; gap: 12px; padding-top: 2px; }
.consent-row { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; width: 100%; font-size: 13px; color: var(--text-secondary); line-height: 1.5; cursor: pointer; }
.consent-row span { min-width: 0; }
.consent-row input[type="checkbox"] { appearance: auto; width: 20px; height: 20px; min-width: 20px; margin: 2px 0 0; padding: 0; border: 0; box-shadow: none; accent-color: var(--accent); cursor: pointer; }
.consent-row a { color: var(--accent); text-decoration: underline; }
.form-legal-note { margin: -2px 0 0; color: var(--text-muted); font-size: 12.5px; line-height: 1.5; }
.form-legal-note a { color: var(--accent); text-decoration: underline; }
.lead-submit { width: fit-content; }
.contact-direct { margin-top: 38px; padding-top: 28px; border-top: 1px solid var(--border); }
.contact-direct-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; }
.contact-direct a { display: grid; gap: 4px; min-width: 0; padding: 16px 18px; border: 1px solid var(--border); border-radius: 9px; background: var(--bg-card); color: var(--text); text-decoration: none; transition: border-color var(--transition), transform var(--transition); }
.contact-direct a:hover { border-color: var(--accent); transform: translateY(-1px); }
.contact-direct span { color: var(--text-muted); font-size: 12.5px; }
.contact-direct strong { color: var(--text); font-size: 15px; overflow-wrap: anywhere; }
.flash-ok, .flash-err { display: none; padding: 13px 16px; border-radius: 9px; font-size: 14.5px; font-weight: 600; margin-bottom: 16px; }
.flash-ok { background: var(--accent-2); color: #071326; }
.flash-err { background: #FFD1D1; color: #7A1F1F; }

#ai-chat-panel {
  overflow-y: auto !important;
  overflow-x: hidden !important;
  max-height: calc(100dvh - 32px) !important;
  scrollbar-width: thin;
}
#ai-chat-panel[data-state="profile"],
#ai-chat-panel[data-state="pending"],
#ai-chat-panel[data-state="declined"] {
  height: min(640px, calc(100dvh - 32px)) !important;
}
#ai-chat-consent,
#ai-chat-profile,
#ai-chat-declined {
  padding: 16px;
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  flex: none;
}
#ai-chat-consent[hidden],
#ai-chat-profile[hidden],
#ai-chat-declined[hidden] { display: none !important; }
#ai-chat-panel[data-state="pending"] #ai-chat-messages,
#ai-chat-panel[data-state="profile"] #ai-chat-messages,
#ai-chat-panel[data-state="declined"] #ai-chat-messages {
  flex: 0 0 auto !important;
  max-height: 132px;
  min-height: 0;
  overflow-y: auto;
  border-bottom: 1px solid var(--border);
}
#ai-chat-panel[data-state="profile"] #ai-chat-messages {
  max-height: 72px;
}
#ai-chat-panel[data-state="chat"] #ai-chat-messages {
  flex: 1 1 auto !important;
}
.ai-msg {
  max-width: 86%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.ai-msg-user {
  align-self: flex-end;
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.ai-msg-assistant,
.ai-msg-operator {
  align-self: flex-start;
  background: var(--bg-page);
  color: var(--text);
  border-bottom-left-radius: 4px;
}
.ai-msg-operator {
  background: color-mix(in srgb, var(--accent-2) 18%, var(--bg-page));
}
.ai-msg-system {
  align-self: center;
  max-width: 94%;
  background: transparent;
  color: var(--text-muted);
  border-style: dashed;
  font-size: 12.5px;
  text-align: center;
}
#ai-chat-panel[data-state="profile"] #ai-chat-profile {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding-bottom: 18px;
}
#ai-chat-profile-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  width: 100%;
  min-width: 0;
}
#ai-chat-profile-form label {
  display: block;
  margin: 2px 0 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}
#ai-chat-profile-form input {
  display: block;
  width: 100%;
  min-width: 0;
  height: 40px;
  padding: 9px 11px;
  border: 1px solid var(--border-dashed);
  border-radius: 8px;
  background: var(--bg-page);
  color: var(--text);
  font: inherit;
  font-size: 14px;
}
#ai-chat-profile-form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(10, 98, 242, .15);
  outline: none;
}
.ai-chat-hint {
  display: block;
  margin-top: -3px;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.35;
}
.ai-chat-legal {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.45;
}
.ai-chat-legal a { color: var(--accent); text-decoration: underline; }
.ai-chat-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ai-chat-primary,
.ai-chat-secondary,
#ai-chat-escalate {
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.ai-chat-primary { background: var(--accent); color: #fff; }
.ai-chat-primary:hover { background: var(--accent-hover); }
.ai-chat-secondary { background: transparent; color: var(--text-secondary); border-color: var(--border); }
.ai-chat-error {
  margin: 0;
  color: #ff9a9a;
  font-size: 12.5px;
  line-height: 1.35;
}
@media (max-width: 520px), (max-height: 620px) {
  #ai-chat-bubble { right: 12px !important; bottom: 12px !important; }
  #ai-chat-panel {
    inset: 8px !important;
    width: auto !important;
    height: auto !important;
    max-width: none !important;
    max-height: none !important;
    border-radius: 14px !important;
  }
  #ai-chat-panel[data-state="pending"],
  #ai-chat-panel[data-state="profile"],
  #ai-chat-panel[data-state="declined"],
  #ai-chat-panel[data-state="chat"] {
    height: auto !important;
  }
  #ai-chat-panel[data-state="profile"] #ai-chat-messages {
    max-height: 48px;
  }
  #ai-chat-consent,
  #ai-chat-profile,
  #ai-chat-declined {
    padding: 14px;
  }
  #ai-chat-profile-form input {
    height: 38px;
  }
}

footer.site-footer { max-width: 1180px; margin: 0 auto; padding: 30px clamp(20px,3vw,28px) 48px; border-top: 1px solid var(--border); display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: 24px; align-items: end; }
.footer-identity { display: grid; gap: 12px; min-width: 0; }
.footer-identity .brand { width: fit-content; font-size: 15px; }
.footer-identity .brand img { width: 20px; height: auto; }
footer.site-footer .muted, .footer-copy { color: var(--text-muted); font-size: 14px; }
.footer-links { display: flex; align-items: center; gap: 20px; }
.footer-links a, .footer-links .cookie-settings { min-height: 44px; display: inline-flex; align-items: center; padding: 0; color: var(--text-muted); font-size: 14px; line-height: 1.4; white-space: nowrap; text-decoration: underline; text-underline-offset: 3px; }
.footer-copy { min-height: 44px; display: inline-flex; align-items: center; white-space: nowrap; }

.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* === Упаковка «ИИ-сотрудники» === */
.pain-num { font-family: 'Onest', sans-serif; font-weight: 700; font-size: 26px; color: var(--accent); margin-bottom: 10px; }
.pain-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; max-width: 760px; }
.pain-list li { background: var(--bg-card); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: 10px; padding: 16px 20px; font-size: 15.5px; }

.role-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.role-card { display: flex; flex-direction: column; gap: 4px; min-width: 0; text-decoration: none; color: inherit; transition: border-color .15s, transform .15s; }
.role-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.role-card p { flex: 1; }
.role-metric { font-size: 12.5px; color: var(--text-muted); margin-top: 12px; }
.role-more { font-size: 14px; font-weight: 600; color: var(--accent); margin-top: 10px; }
.role-custom { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(180px, .7fr) minmax(0, 1fr) minmax(190px, .8fr) auto; gap: 18px 24px; align-items: center; border-style: dashed; border-color: var(--border-dashed); }
.role-custom h3, .role-custom p, .role-custom .role-metric, .role-custom .role-more { margin: 0; }
.role-custom p { max-width: 58ch; }
.role-custom .role-metric { margin-top: 0; }
.role-custom .role-more { justify-self: end; white-space: nowrap; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-block; padding: 10px 18px; border-radius: 999px; background: var(--bg-card); border: 1px solid var(--border); font-size: 15px; font-weight: 600; color: var(--text); text-decoration: none; }
.chip-link { border-color: var(--accent); color: var(--accent); }

.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.price-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.price-card.featured { border: 2px solid var(--accent); }
.price-card .size { font-size: 12px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-muted); }
.price-card h3 { font-size: 17px; }
.price-card .price { font-family: 'Onest', sans-serif; font-weight: 700; font-size: 22px; font-variant-numeric: tabular-nums; }
.price-card p { color: var(--text-secondary); font-size: 14px; }
.guarantee { margin-top: 24px; padding: 18px 22px; border-radius: 12px; background: var(--bg-card); border: 1px dashed var(--accent); font-size: 15.5px; }

.faq { display: grid; gap: 10px; }
.faq details { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 0 22px; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 16px; padding: 18px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--accent); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq details p { color: var(--text-secondary); font-size: 15px; padding-bottom: 18px; }
.faq details a { color: var(--accent); }

/* conversion path */
.calculator-section { background: linear-gradient(145deg, var(--bg-card), var(--bg-page)); border-bottom: 1px solid var(--border); }
.calculator-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(28px, 6vw, 72px); align-items: start; }
.calculator-copy { position: sticky; top: 110px; }
.calculator-copy h2, .case-proof-section h2 { font-size: clamp(27px, 4.6vw, 38px); line-height: 1.16; margin-bottom: 16px; }
.calculator-copy > p { color: var(--text-secondary); font-size: 16px; }
.check-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 26px; color: var(--text-secondary); font-size: 14px; }
.check-list li::before { content: '✓'; position: absolute; left: 0; color: var(--success); font-weight: 800; }
.calculator { display: grid; gap: 18px; padding: clamp(24px, 4vw, 34px); box-shadow: var(--shadow-lg); border-color: transparent; }
.calculator input, .calculator select { width: 100%; padding: 13px 14px; border: 1px solid var(--border-dashed); border-radius: 9px; background: var(--bg-page); color: var(--text); font: inherit; }
.calculator input:focus, .calculator select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(10, 98, 242, .12); outline: none; }
.calculator-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.calculator-submit { width: 100%; }
.calculator-note { color: var(--text-muted); font-size: 12px; }
.calculator-result { margin-top: 32px; background: var(--panel-strong); color: var(--panel-strong-text); border-radius: 18px; padding: clamp(26px, 5vw, 48px); display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px 42px; box-shadow: var(--shadow-lg); }
.calculator-result[hidden] { display: none; }
.calculator-result .eyebrow { color: var(--accent-2); }
.calculator-result-title { font-size: clamp(24px, 4vw, 32px); line-height: 1.2; margin-bottom: 10px; }
.calculator-result-text { color: color-mix(in srgb, var(--panel-strong-text) 76%, transparent); }
.calculator-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.calculator-metric { padding: 16px; border: 1px solid color-mix(in srgb, var(--panel-strong-text) 22%, transparent); border-radius: 12px; }
.calculator-metric strong { display: block; font-family: Onest, sans-serif; font-size: 25px; color: var(--accent-2); }
.calculator-metric span { display: block; margin-top: 4px; font-size: 12px; color: color-mix(in srgb, var(--panel-strong-text) 70%, transparent); }
.calculator-next { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 24px; border-top: 1px solid color-mix(in srgb, var(--panel-strong-text) 22%, transparent); }
.calculator-next p { max-width: 62ch; color: color-mix(in srgb, var(--panel-strong-text) 82%, transparent); font-size: 14px; }

.why-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 7vw, 90px); align-items: start; }
.why-list { display: grid; }
.why-item { display: grid; grid-template-columns: 42px 1fr; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--border); }
.why-item:first-child { padding-top: 0; }
.why-item > span { color: var(--accent); font-family: Onest, sans-serif; font-size: 13px; font-weight: 700; }
.why-item h3 { font-size: 18px; margin-bottom: 6px; }
.why-item p { color: var(--text-secondary); font-size: 14.5px; }

.case-proof-section { background: var(--panel-strong); color: var(--panel-strong-text); }
.case-proof-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px, 7vw, 84px); align-items: center; }
.case-proof-lede { color: color-mix(in srgb, var(--panel-strong-text) 76%, transparent); margin-bottom: 24px; }
.case-proof-section .btn-ghost { color: var(--panel-strong-text); border-color: color-mix(in srgb, var(--panel-strong-text) 35%, transparent); }
.before-after { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: center; }
.before-after-col { min-height: 230px; padding: 26px; border-radius: 16px; border: 1px solid color-mix(in srgb, var(--panel-strong-text) 20%, transparent); }
.before-after-col.after { background: rgba(0, 232, 254, .1); border-color: rgba(0, 232, 254, .35); }
.before-after-col ul { margin: 14px 0 0; padding-left: 20px; display: grid; gap: 12px; color: color-mix(in srgb, var(--panel-strong-text) 82%, transparent); }
.before-after-arrow { color: var(--accent-2); font-size: 30px; }

/* case detail */
.case-detail-shell { max-width: 980px; }
.case-detail-hero { padding-bottom: 0; }
.case-detail-summary { padding-top: 36px; }
.case-detail-intro { border-left: 3px solid var(--accent-2); padding-left: 18px; font-size: 15.5px; color: var(--text-secondary); }
.case-context-grid, .case-responsibility-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 18px; margin-top: 32px; }
.case-context-card { padding: 24px; border: 1px solid var(--border); border-radius: 14px; background: var(--bg-card); }
.case-context-card h2, .case-responsibility-grid h2 { margin-bottom: 14px; font-size: clamp(22px, 3.6vw, 30px); line-height: 1.18; }
.case-context-target { display: flex; flex-direction: column; justify-content: center; }
.case-context-card p { color: var(--text-secondary); }
.case-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; color: var(--text-secondary); }
.case-list li { position: relative; padding-left: 20px; }
.case-list li::before { content: ''; position: absolute; left: 0; top: .72em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.case-detail-stats { margin-top: 28px; }
.case-steps { display: grid; gap: 22px; margin: 0; padding: 0; list-style: none; }
.case-steps li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 18px; align-items: start; }
.case-step-number { color: var(--accent); font: 700 13px/1.3 'Onest', sans-serif; font-variant-numeric: tabular-nums; }
.case-steps h3 { margin-bottom: 4px; font-size: 18px; line-height: 1.25; }
.case-steps p { color: var(--text-secondary); font-size: 15px; }
.case-measurement { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--border); }
.case-measurement p { max-width: 760px; color: var(--text-secondary); font-size: 16px; }

.compact-why .grid > div { padding-right: 20px; }
.compact-why strong { display: block; margin-bottom: 8px; font-family: Onest, sans-serif; font-size: 17px; }
.compact-why p { color: var(--text-secondary); font-size: 14px; }

/* calculator modal */
body.modal-open { overflow: hidden; }
.calculator-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; }
.calculator-modal[hidden] { display: none; }
.calculator-modal-backdrop { position: absolute; inset: 0; background: rgba(2, 7, 17, .76); backdrop-filter: blur(8px); }
.calculator-dialog { position: relative; width: min(760px, 100%); max-height: min(860px, calc(100dvh - 48px)); overflow-y: auto; overscroll-behavior: contain; background: var(--bg-card); color: var(--text); border: 1px solid var(--border); border-radius: 20px; padding: clamp(24px, 5vw, 42px); box-shadow: var(--shadow-lg); }
.calculator-close { position: sticky; z-index: 2; top: 0; float: right; width: 44px; height: 44px; margin: -8px -8px 4px 12px; border: 1px solid var(--border); border-radius: 50%; background: var(--bg-page); color: var(--text); font: 30px/1 system-ui, sans-serif; cursor: pointer; }
.calculator-modal-head { margin-bottom: 24px; padding-right: 48px; }
.calculator-modal-head h2 { font-size: clamp(25px, 5vw, 36px); line-height: 1.16; }
.calculator-modal-head > p { margin-top: 10px; color: var(--text-secondary); }
.calculator-dialog .calculator { padding: 0; box-shadow: none; border: 0; background: transparent; }
.calculator-dialog .calculator-result { margin-top: 24px; }

#calculator-modal, #calculator, #resheniya, #ceny { scroll-margin-top: 88px; }

@media (max-width: 860px) {
  .role-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .role-custom { grid-template-columns: 1fr; align-items: start; }
  .role-custom .role-more { justify-self: start; white-space: normal; }
  .solution-custom-card { grid-template-columns: 1fr; align-items: start; }
  .solution-custom-card .solution-open { justify-self: start; white-space: normal; }
  .calculator-grid, .why-grid, .case-proof-grid { grid-template-columns: 1fr; }
  .calculator-copy { position: static; }
  .catalog-intro, .solution-detail-grid { grid-template-columns: 1fr; }
  .case-context-grid, .case-responsibility-grid { grid-template-columns: 1fr; }
  .scenario-steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .calculator-fields, .calculator-result, .calculator-metrics { grid-template-columns: 1fr; }
  .calculator-next { display: grid; }
  .calculator-contact { width: 100%; }
  .before-after { grid-template-columns: 1fr; }
  .before-after-arrow { transform: rotate(90deg); justify-self: center; }
  .shell { padding-inline: 16px; }
  .site-header .shell { min-height: 64px; padding-block: 10px; gap: 12px; }
  .brand { font-size: 16px; }
  .brand img { width: 26px; height: auto; }
  .hero { padding-block: 42px 34px; }
  .breadcrumbs { margin-bottom: 22px; }
  .hero h1 { font-size: clamp(30px, 9vw, 38px); line-height: 1.1; margin-bottom: 16px; }
  .hero .lede { font-size: 16px; line-height: 1.55; margin-bottom: 22px; }
  .hero-lede-detail { display: none; }
  .hero-actions { display: grid; }
  .hero-actions .btn { width: 100%; }
  section { padding-block: 44px; }
  .card, .case-card { padding: 20px; }
  .contact-panel { padding: 28px 22px; border-radius: 16px; }
  .contact-panel .btn { width: 100%; }
  .role-grid { grid-template-columns: 1fr; }
  .lead-columns, .contact-direct-grid { grid-template-columns: 1fr; }
  form.lead { gap: 18px; }
  .lead-column { gap: 14px; }
  form.lead .btn[type="submit"] { width: 100% !important; }
  .calculator-modal { padding: 0; align-items: end; }
  .calculator-dialog { width: 100%; max-height: 92dvh; border-radius: 20px 20px 0 0; border-bottom: 0; padding: 22px 16px max(24px, env(safe-area-inset-bottom)); }
  .calculator-modal-head { padding-right: 40px; margin-bottom: 20px; }
  .calculator-modal-head h2 { font-size: 26px; }
  .calculator-dialog .calculator-fields { gap: 12px; }
  .calculator-dialog .calculator-result { padding: 22px 18px; }
  footer.site-footer { grid-template-columns: 1fr; gap: 16px; padding: 30px 30px max(44px, env(safe-area-inset-bottom)); align-items: start; }
  .footer-identity { gap: 18px; }
  .footer-identity .muted { max-width: 30ch; line-height: 1.55; }
  .footer-links { gap: 24px; flex-wrap: wrap; }
  .footer-copy { min-height: 32px; }
  .solutions-catalog, .scenario-steps { grid-template-columns: 1fr; }
  .solution-catalog-card { min-height: 0; }
  .solution-card-top { margin-bottom: 24px; }
  .scenario-steps li { min-height: 0; }
  .scenario-number { margin-bottom: 20px; }
  .case-steps { gap: 18px; }
  .case-steps li { grid-template-columns: 34px minmax(0, 1fr); gap: 12px; }
  .case-context-card { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Управление cookie: аналитика запускается только после явного выбора. */
.cookie-panel { position: fixed; z-index: 110; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); width: min(680px, calc(100% - 32px)); transform: translateX(-50%); padding: 22px; background: var(--bg-card); color: var(--text); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-lg); }
.cookie-panel[hidden] { display: none; }
.cookie-panel h2 { margin: 0 0 7px; font-size: 20px; line-height: 1.25; }
.cookie-panel p { margin: 0; color: var(--text-secondary); font-size: 14px; line-height: 1.55; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 17px; }
.cookie-button { min-height: 44px; padding: 10px 17px; border-radius: 9px; border: 1px solid var(--border); background: transparent; color: var(--text); font: 600 14px/1.2 inherit; cursor: pointer; }
.cookie-button.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.cookie-button:hover { border-color: var(--accent); }
.cookie-button:focus-visible, .cookie-settings:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.cookie-settings { border: 0; padding: 4px 0; background: none; color: var(--text-muted); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
@media (max-width: 520px) {
  .cookie-panel { bottom: max(10px, env(safe-area-inset-bottom)); width: calc(100% - 20px); padding: 18px; }
  .cookie-actions { display: grid; }
  .cookie-button { width: 100%; }
}
