/* ============================================================
   STRATIX — public site · shamcrm-style restyle 2026
   White canvas · one blue accent #2563eb · slate text ·
   white cards with hairline borders · dark slate footer.
   Inter (latin+cyr) everywhere; 600 for headings.
   ============================================================ */

@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('/static/fonts/inter-cyrillic-400-normal.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('/static/fonts/inter-cyrillic-500-normal.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('/static/fonts/inter-cyrillic-600-normal.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('/static/fonts/inter-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('/static/fonts/inter-latin-500-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('/static/fonts/inter-latin-600-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('/static/fonts/inter-latin-ext-400-normal.woff2') format('woff2'); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('/static/fonts/inter-latin-ext-500-normal.woff2') format('woff2'); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('/static/fonts/inter-latin-ext-600-normal.woff2') format('woff2'); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #FFFFFF;
  --bg-alt: #F8FAFC;
  --soft: #DBEAFE;
  --soft-ink: #1E40AF;
  --ink: #0F172A;
  --muted: #475569;
  --line: #E2E8F0;
  --accent: #2563EB;
  --accent-hover: #1D4ED8;
  --navy: #1E3A8A;
  --footer: #0F172A;
  --on-dark: #F8FAFC;
  --on-dark-2: #94A3B8;
  --r: 16px;
  --r-btn: 10px;
  --mx: clamp(20px, 5vw, 72px);
  --gap: clamp(96px, 11vw, 160px);
  --b: 'Inter', 'Segoe UI', sans-serif;
  --s-sm: 14px;
  --s-b: 16.5px;
  --s-lead: clamp(18px, .5vw + 15px, 20px);
  --s-h: clamp(30px, 2.6vw, 40px);
  --s-disp: clamp(38px, 4.2vw, 62px);
  --ease: cubic-bezier(.22, .8, .24, 1);
  --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 8px 24px -12px rgba(15, 23, 42, .12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--b);
  background: var(--bg);
  color: var(--ink);
  font-size: var(--s-b);
  line-height: 1.6;
  overflow-x: hidden;
  overflow-wrap: break-word;
}
[hidden] { display: none !important; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p a, .chat-consent a, .checkbox a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
button { font: inherit; border: 0; background: none; cursor: pointer; color: inherit; }
input, select, textarea { font: inherit; }
button:disabled { opacity: .55; cursor: wait; }
button:focus-visible, a:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
::selection { background: var(--accent); color: #fff; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -200vw; top: 0; background: var(--ink); color: var(--on-dark); padding: 12px 22px; border-radius: var(--r-btn); z-index: 99; }
.skip-link:focus { left: 16px; top: 16px; }

h1, h2, h3 { font-weight: 600; letter-spacing: -.02em; line-height: 1.15; }
h2 { font-size: var(--s-h); }
section { padding: 0 var(--mx); margin: 0 auto var(--gap); max-width: calc(1140px + 2 * var(--mx)); }

/* ---------------- Motion ---------------- */
html.js .rv { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
html.js .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .rv { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------------- Header ---------------- */
#header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  padding: 13px max(var(--mx), calc(50vw - 570px));
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
}
#header.scrolled { border-bottom-color: var(--line); }
.logo { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.logo-mark { width: 36px; height: 36px; border-radius: 10px; background: var(--accent); color: #fff; display: grid; place-items: center; }
.logo-mark svg { width: 21px; height: 21px; }
.logo-text { font-weight: 600; font-size: var(--s-b); line-height: 1.05; display: flex; flex-direction: column; }
.logo-text small { font-weight: 500; font-size: 13px; color: var(--muted); }
#mainNav ul { display: flex; gap: 24px; list-style: none; }
#mainNav a { font-weight: 500; font-size: 15.5px; color: var(--muted); }
#mainNav a:hover { color: var(--ink); }
.lang-switch { display: flex; background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--r-btn); padding: 3px; }
.lang-switch a { padding: 4px 11px; border-radius: 7px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.lang-switch a.active { background: var(--ink); color: #fff; }
.menu-toggle { display: none; width: 42px; height: 42px; border-radius: var(--r-btn); border: 1px solid var(--line); place-items: center; }
.menu-toggle svg { width: 22px; height: 22px; }

.btn-solid, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--r-btn); font-weight: 600; font-size: 15.5px;
  padding: 11px 22px; transition: transform .15s var(--ease), background .15s var(--ease), border-color .15s var(--ease);
}
.btn-solid { background: var(--accent); color: #fff; }
.btn-solid:hover { background: var(--accent-hover); }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: #CBD5E1; background: var(--bg-alt); }
.btn-solid:active, .btn-ghost:active, .pa:active, .coupon-submit:active { transform: scale(.97); }
.btn-big { padding: 15px 30px; font-size: 16.5px; }

/* ---------------- Hero ---------------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(32px, 4vw, 72px);
  align-items: center;
  min-height: calc(94svh - 70px);
  padding-top: clamp(24px, 4vh, 56px);
  padding-bottom: 24px;
}
.hero h1 {
  font-size: var(--s-disp);
  letter-spacing: -.025em;
  line-height: 1.08;
  max-width: 16ch;
  animation: rise .8s var(--ease) both;
}
.hero .lead { font-size: var(--s-lead); color: var(--muted); max-width: 52ch; margin: 22px 0 30px; animation: rise .8s .1s var(--ease) both; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; animation: rise .8s .18s var(--ease) both; }
.hero-line { margin-top: 26px; font-size: var(--s-sm); color: var(--muted); animation: rise .8s .26s var(--ease) both; }
.hero-line a { font-weight: 600; color: var(--ink); font-size: var(--s-b); white-space: nowrap; }
.hero-line a:hover { color: var(--accent); }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

.hero-shot { position: relative; animation: rise .8s .2s var(--ease) both; }
.console { background: var(--navy); color: #fff; border-radius: var(--r); box-shadow: var(--shadow); max-width: 440px; margin-left: auto; padding: 24px; display: flex; flex-direction: column; min-height: 480px; }
.cons-top { display: flex; justify-content: space-between; align-items: center; }
.cons-chip { display: flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .16); border-radius: 999px; padding: 7px 14px; font-size: 13px; font-weight: 600; }
.cons-time { font-size: var(--s-sm); font-weight: 600; color: #BFDBFE; font-variant-numeric: tabular-nums; }
.cons-wave { display: flex; align-items: center; justify-content: center; gap: 7px; height: 110px; margin: 26px 0 18px; }
.cons-wave i { width: 9px; border-radius: 999px; background: #fff; height: 22%; animation: cw 1.1s ease-in-out infinite; transform-origin: center; }
.cons-wave i:nth-child(1) { animation-delay: 0s; } .cons-wave i:nth-child(2) { animation-delay: .12s; }
.cons-wave i:nth-child(3) { animation-delay: .24s; } .cons-wave i:nth-child(4) { animation-delay: .36s; }
.cons-wave i:nth-child(5) { animation-delay: .48s; } .cons-wave i:nth-child(6) { animation-delay: .6s; }
.cons-wave i:nth-child(7) { animation-delay: .72s; }
@keyframes cw { 0%, 100% { height: 20%; opacity: .7; } 50% { height: 88%; opacity: 1; } }
.cons-num { text-align: center; font-weight: 600; font-size: 24px; letter-spacing: .01em; }
.cons-lbl { text-align: center; font-size: 13px; color: #BFDBFE; margin-top: 3px; }
.cons-tr { display: flex; flex-direction: column; gap: 10px; margin-top: auto; padding-top: 22px; }
.cons-tr .bub.ai { background: rgba(255, 255, 255, .16); border: 0; color: #fff; max-width: 62%; }
.cons-tr .bub.us { background: #fff; color: var(--ink); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #4ADE80; animation: pulse 1.6s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .cons-wave i { animation: none; height: 50%; } }
.shot-mini { position: absolute; bottom: 20px; right: -24px; left: auto; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 14px 18px; min-width: 210px; animation: rise .8s .5s var(--ease) both; }
.sm-row { display: flex; justify-content: space-between; gap: 22px; font-size: 13.5px; padding: 2px 0; }
.sm-k { color: var(--muted); } .sm-v { font-weight: 600; }
.sm-chip { margin-top: 8px; display: inline-block; background: var(--soft); color: var(--soft-ink); border-radius: 999px; padding: 3px 11px; font-size: 13px; font-weight: 600; }

/* ---------------- Stats band ---------------- */
.stat-band {
  max-width: calc(1140px + 2 * var(--mx));
  margin: 0 auto var(--gap);
  padding: 0 var(--mx);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.stat { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 24px; }
.stat .num { font-weight: 600; font-size: var(--s-h); letter-spacing: -.02em; line-height: 1.1; display: block; }
.stat .desc { font-size: var(--s-sm); color: var(--muted); margin-top: 4px; display: block; }

/* ---------------- Services: white card grid ---------------- */
.svc-head { max-width: 720px; margin-bottom: 44px; }
.svc-head h2 { margin-bottom: 12px; }
.svc-head p { color: var(--muted); font-size: var(--s-lead); }
.sgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.scard { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 26px; transition: box-shadow .2s var(--ease), transform .2s var(--ease); }
.scard:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.scard .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--soft); color: var(--soft-ink); display: grid; place-items: center; margin-bottom: 18px; }
.scard .ic svg { width: 22px; height: 22px; }
.scard h3 { font-size: 18px; margin-bottom: 7px; }
.scard p { font-size: var(--s-sm); color: var(--muted); line-height: 1.55; }
.scard .blt { list-style: none; margin-top: 15px; display: grid; gap: 8px; }
.scard .blt li { font-size: var(--s-sm); padding-left: 24px; position: relative; color: var(--ink); }
.scard .blt li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E40AF' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  background-size: 10px; background-position: center; background-repeat: no-repeat;
}

/* ---------------- How it works: accordion (blues) ---------------- */
.how-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 32px; align-items: end; margin-bottom: 44px; }
.how-head p { font-size: var(--s-lead); color: var(--muted); max-width: 46ch; justify-self: end; }
.acc { display: flex; height: 480px; border-radius: var(--r); overflow: hidden; }
.acc-item { flex: 1 1 0; min-width: 72px; position: relative; transition: flex-basis .45s var(--ease), flex-grow .45s var(--ease); display: flex; }
.acc-item.open { flex-grow: 7; }
.t1 { background: var(--navy); color: var(--on-dark); }
.t2 { background: var(--accent-hover); color: var(--on-dark); }
.t3 { background: var(--accent); color: var(--on-dark); }
.t4 { background: var(--soft); color: var(--ink); }
.acc-tab { position: absolute; inset: 0; width: 100%; display: block; }
.acc-tab span { position: absolute; left: 50%; bottom: 24px; transform: rotate(180deg) translateX(50%); writing-mode: vertical-rl; font-weight: 600; font-size: 18px; white-space: nowrap; }
.acc-item.open .acc-tab { display: none; }
.acc-panel { display: none; padding: 40px; width: 100%; position: relative; flex-direction: column; }
.acc-item.open .acc-panel { display: flex; }
.acc-panel h3 { font-size: var(--s-h); margin-bottom: 14px; }
.acc-panel p { max-width: 40ch; font-size: var(--s-b); }
.t1 .acc-panel p, .t2 .acc-panel p, .t3 .acc-panel p { color: #DBEAFE; }
.t4 .acc-panel p { color: var(--muted); }
.acc-art { margin-top: auto; align-self: flex-end; }
.call-card, .lead-mini { background: rgba(255, 255, 255, .14); border-radius: 14px; padding: 18px 22px; min-width: 230px; }
.t4 .call-card, .t4 .lead-mini { background: #fff; border: 1px solid var(--line); }
.call-dot { width: 11px; height: 11px; border-radius: 50%; background: #4ADE80; margin-bottom: 10px; animation: pulse 1.6s infinite; }
.call-num { font-weight: 600; font-size: 19px; }
.call-lbl, .lm-chip, .op-tx { font-size: var(--s-sm); }
.call-lbl { opacity: .85; margin-top: 3px; }
.tr-mini { display: grid; gap: 9px; max-width: 280px; }
.tr-b { padding: 9px 15px; border-radius: 13px; font-size: var(--s-sm); }
.tr-b.ai { background: rgba(255, 255, 255, .16); border-bottom-left-radius: 4px; }
.tr-b.us { background: rgba(255, 255, 255, .32); border-bottom-right-radius: 4px; justify-self: end; }
.lm-row { display: flex; justify-content: space-between; gap: 22px; font-size: var(--s-sm); padding: 3px 0; }
.lm-k { opacity: .8; } .lm-v { font-weight: 600; }
.lm-chip { margin-top: 9px; display: inline-block; background: rgba(255, 255, 255, .2); border-radius: 999px; padding: 3px 11px; }
.t4 .lm-chip { background: var(--soft); color: var(--soft-ink); }
.op-mini { display: flex; gap: 11px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; }
.op-av { width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 13px; }
.t4 .op-tx { color: var(--ink); }

/* ---------------- Showcase ---------------- */
#showcase { display: grid; grid-template-columns: 1fr 1fr; background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; padding: 0; max-width: 1140px; }
.plate-side { padding: 36px; display: grid; place-items: center; }
.plate { width: min(100%, 520px); background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 24px; display: flex; flex-direction: column; min-height: 480px; }
.plate-top { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--muted); margin-bottom: 16px; }
.dialog { display: flex; flex-direction: column; gap: 10px; margin-top: auto; }
.bub { max-width: 86%; padding: 11px 16px; font-size: 14px; line-height: 1.45; border-radius: 14px; }
.bub.us { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.bub.ai { align-self: flex-start; background: var(--bg-alt); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.dlg-chip { align-self: flex-start; margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--soft-ink); background: var(--soft); border-radius: 999px; padding: 6px 14px; }
.plate-copy { display: flex; flex-direction: column; padding: 40px; }
.plate-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.pt { font-size: var(--s-sm); font-weight: 600; color: var(--muted); padding: 8px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); transition: all .2s var(--ease); }
.pt:hover { border-color: #CBD5E1; }
.pt.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.plate-mid { margin: auto 0; padding: 30px 0; }
.plate-mid h2 { margin-bottom: 14px; }
.plate-mid p { font-size: var(--s-b); color: var(--muted); max-width: 44ch; }
.plate-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pa { display: grid; place-items: center; height: 60px; border-radius: var(--r-btn); font-weight: 600; font-size: 15.5px; text-align: center; transition: all .18s var(--ease); }
.pa-ink { background: var(--accent); color: #fff; }
.pa-ink:hover { background: var(--accent-hover); }
.pa-tone { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.pa-tone:hover { background: var(--bg-alt); }

/* ---------------- Technologies ---------------- */
#technologies .tech-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 32px; align-items: end; margin-bottom: 40px; }
#technologies .tech-head p { font-size: var(--s-lead); color: var(--muted); max-width: 46ch; justify-self: end; }
.tech-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; }
.tech-list li { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; padding: 16px 20px; background: var(--bg-alt); border: 1px solid var(--line); border-radius: 12px; }
.tl-name { font-weight: 600; font-size: var(--s-b); }
.tl-desc { color: var(--muted); font-size: var(--s-sm); text-align: right; }

/* ---------------- Chat ---------------- */
#chat { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(36px, 4vw, 80px); align-items: center; }
.chat-info h2 { margin-bottom: 14px; }
.chat-info > p { font-size: var(--s-lead); color: var(--muted); max-width: 46ch; }
.wave-list { list-style: none; margin: 26px 0 18px; display: grid; gap: 12px; }
.wave-list li { padding-left: 26px; position: relative; font-size: var(--s-b); }
.wave-list li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 17px; height: 17px;
  border-radius: 50%; background: var(--soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E40AF' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  background-size: 10px; background-position: center; background-repeat: no-repeat;
}
.chat-note { color: var(--muted); font-size: var(--s-sm); }
.chat-widget { background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 20px; display: flex; flex-direction: column; min-height: 320px; }
.chat-head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; }
.chat-head .av { width: 42px; height: 42px; border-radius: 12px; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 13.5px; }
.chat-head h3 { font-size: var(--s-b); }
.chat-head #chatStatus { font-size: 13.5px; color: var(--muted); }
.chat-head .info { margin-right: auto; }
.text-button { font-weight: 600; font-size: var(--s-sm); color: var(--accent); padding: 7px 13px; border-radius: var(--r-btn); }
.text-button:hover { background: var(--soft); }
.chat-body:empty { display: none; }
.chat-body { flex: 1; overflow-y: auto; background: var(--bg-alt); border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 10px; min-height: 220px; }
.msg { display: flex; gap: 8px; max-width: 92%; }
.msg.user { align-self: flex-end; flex-direction: row-reverse; }
.av-s { width: 28px; height: 28px; flex: none; border-radius: 9px; display: grid; place-items: center; font-size: 12px; font-weight: 600; background: var(--soft); color: var(--soft-ink); }
.msg.user .av-s { background: var(--ink); color: #fff; }
.msg.operator .av-s { background: var(--accent); color: #fff; }
.msg .bub { background: #fff; border: 1px solid var(--line); padding: 9px 13px; border-radius: 12px; font-size: 14px; max-width: 100%; color: var(--ink); }
.msg.user .bub { background: var(--accent); border-color: var(--accent); color: #fff; }
.chat-consent { margin-top: auto; padding: 16px 4px 4px; display: grid; gap: 14px; justify-items: start; }
.chat-consent p { font-size: var(--s-sm); color: var(--muted); }
.quick { display: flex; gap: 8px; flex-wrap: wrap; padding: 12px 0 4px; }
.quick button { background: var(--bg-alt); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-size: 13.5px; font-weight: 600; }
.quick button:hover { border-color: #CBD5E1; }
.chat-foot { display: flex; gap: 8px; padding-top: 12px; }
.chat-foot input { flex: 1; background: #fff; border: 1px solid var(--line); border-radius: var(--r-btn); padding: 12px 16px; font-size: 14px; }
.chat-foot button { width: 46px; height: 46px; flex: none; border-radius: var(--r-btn); background: var(--accent); color: #fff; display: grid; place-items: center; }
.chat-foot button:hover { background: var(--accent-hover); }
.chat-foot button svg { width: 19px; height: 19px; }
.form-result { min-height: 1.3em; font-size: var(--s-sm); color: var(--accent); font-weight: 600; margin-top: 8px; }
.form-result.error { color: #B91C1C; }

/* ---------------- FAQ ---------------- */
#faq { max-width: 880px; }
#faq h2 { margin-bottom: 36px; }
.cards { display: flex; flex-direction: column; gap: 12px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 6px 24px; transition: border-color .2s var(--ease); }
.card:hover { border-color: #CBD5E1; }
.card-tab { display: none; }
.card-q { font-size: 18px; font-weight: 600; padding: 18px 36px 18px 0; cursor: pointer; position: relative; }
.card-q::after {
  content: ""; position: absolute; right: 2px; top: 50%; width: 22px; height: 22px; transform: translateY(-50%);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-size: contain; transition: transform .25s var(--ease);
}
.card.open .card-q::after { transform: translateY(-50%) rotate(180deg); }
.card-a { display: none; }
.card.open .card-a { display: block; }
.card-a p { max-width: 60ch; color: var(--muted); padding: 0 0 20px; }

/* ---------------- Contact: blue band ---------------- */
#contact .coupon {
  background: var(--accent); color: #fff;
  border-radius: var(--r);
  display: grid; grid-template-columns: minmax(0, 5fr) 56px minmax(0, 6fr);
  min-height: 440px;
}
.coupon-left { padding: 46px; display: flex; flex-direction: column; }
.coupon-left h2 { max-width: none; }
.coupon-sub { color: #DBEAFE; margin: 16px 0 24px; max-width: 44ch; }
.contact-links { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.contact-links a { font-weight: 600; font-size: var(--s-lead); }
.contact-links a:hover { color: #DBEAFE; }
.coupon-wave { display: flex; align-items: flex-end; gap: 9px; height: 84px; margin: auto 0 0; }
.coupon-wave i { width: 20px; border-radius: 999px; background: rgba(255, 255, 255, .34); }
.coupon-wave i:nth-child(1) { height: 42%; } .coupon-wave i:nth-child(2) { height: 72%; background: rgba(255, 255, 255, .55); }
.coupon-wave i:nth-child(3) { height: 100%; background: #fff; } .coupon-wave i:nth-child(4) { height: 58%; }
.coupon-wave i:nth-child(5) { height: 84%; background: rgba(255, 255, 255, .55); }
.coupon-note { padding-top: 24px; font-size: var(--s-sm); color: #DBEAFE; max-width: 38ch; }
.coupon-perf { position: relative; }
.coupon-perf::before { content: ""; position: absolute; left: 50%; top: 20px; bottom: 20px; border-left: 4px dotted rgba(255, 255, 255, .45); }
.coupon-form { padding: 46px 46px 46px 0; display: grid; gap: 10px; align-content: center; }
.coupon-form input, .coupon-form select, .coupon-form textarea {
  width: 100%; background: #fff; color: var(--ink);
  border: 0; border-radius: var(--r-btn); padding: 14px 18px; font-size: var(--s-b);
}
.coupon-form textarea { resize: vertical; min-height: 80px; }
.coupon-form ::placeholder { color: var(--muted); opacity: 1; }
.honey { position: absolute; left: -200vw; }
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: var(--s-sm); color: #DBEAFE; padding: 6px 2px; }
.checkbox a { color: #fff; }
.checkbox input { width: 17px; height: 17px; accent-color: #fff; margin-top: 2px; }
.coupon-submit { width: 100%; height: 54px; border-radius: var(--r-btn); background: var(--ink); color: #fff; font-weight: 600; font-size: var(--s-b); transition: background .2s var(--ease), transform .15s var(--ease); }
.coupon-submit:hover { background: #1E293B; }
#contact .form-result { color: #fff; }
#contact .form-result.error { color: #FECACA; }

/* ---------------- About + Footer ---------------- */
#about .about-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 4vw, 64px); align-items: center; }
.about-left { display: grid; gap: 20px; align-content: start; }
#about p { font-size: var(--s-lead); line-height: 1.65; color: var(--muted); max-width: 62ch; }
.an-card { width: 100%; max-width: 340px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 24px; justify-self: end; }
.an-card h3 { font-size: var(--s-b); margin-bottom: 14px; }
.an-row { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: var(--s-sm); color: var(--muted); }
.an-row:last-of-type { border-bottom: 0; }
.an-v { font-weight: 600; color: var(--ink); }
.an-chip { font-weight: 600; font-size: 13px; border-radius: 999px; padding: 4px 12px; }
.an-chip.ok { background: #DCFCE7; color: #166534; }
.an-wave { display: flex; align-items: flex-end; gap: 6px; height: 44px; margin-top: 16px; }
.an-wave i { width: 12px; border-radius: 999px; background: var(--soft); }
.an-wave i:nth-child(1) { height: 40%; } .an-wave i:nth-child(2) { height: 75%; background: var(--accent); }
.an-wave i:nth-child(3) { height: 100%; background: var(--accent); } .an-wave i:nth-child(4) { height: 55%; }
.an-wave i:nth-child(5) { height: 82%; background: var(--accent); }
footer { background: var(--footer); color: var(--on-dark); padding: clamp(44px, 5vw, 72px) max(var(--mx), calc(50vw - 570px)) 36px; }
.foot-inner { max-width: 1140px; margin: 0 auto; }
.foot-mark { display: flex; align-items: center; gap: 12px; margin-bottom: 48px; }
.foot-mark svg { width: 46px; height: 46px; border-radius: 12px; background: var(--accent); padding: 10px; }
.foot-mark svg rect { fill: #fff; }
.foot-mark .fm-name { font-weight: 600; font-size: var(--s-lead); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 48px; }
.foot-brand p { color: var(--on-dark-2); font-size: var(--s-sm); max-width: 32ch; }
.fb-name { font-weight: 600; font-size: var(--s-b); display: block; margin-bottom: 10px; }
.foot-col h3 { font-size: var(--s-sm); margin-bottom: 14px; color: #fff; }
.foot-col ul { list-style: none; display: grid; gap: 9px; }
.foot-col a { color: var(--on-dark-2); font-size: var(--s-sm); }
.foot-col a:hover { color: #fff; }
footer .contact-links { gap: 9px; }
footer .contact-links a { font-size: var(--s-sm); font-weight: 500; color: var(--on-dark-2); }
footer .contact-links a:hover { color: #fff; }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; color: var(--on-dark-2); font-size: 13.5px; border-top: 1px solid #1E293B; padding-top: 24px; }
.btn-top { background: var(--accent); }
.btn-top:hover { background: var(--accent-hover); }
.notice { padding: 18px var(--mx); background: var(--soft); color: var(--soft-ink); }

/* ================= Tablet ≤1024 ================= */
@media (max-width: 1024px) {
  #mainNav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px var(--mx) 20px; }
  #mainNav.open { display: block; }
  #mainNav ul { flex-direction: column; gap: 2px; }
  #mainNav a { display: block; padding: 12px 0; font-size: 17px; color: var(--ink); }
  .menu-toggle { display: grid; }
  .btn-login { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero-shot { max-width: 480px; }
  .console { margin-left: 0; }
  .how-head, #technologies .tech-head { grid-template-columns: 1fr; align-items: start; }
  .how-head p, #technologies .tech-head p { justify-self: start; }
  #showcase { grid-template-columns: 1fr; }
  .plate-side { padding: 22px; }
  .plate-copy { padding: 8px 22px 26px; }
  .plate-tabs { order: -1; padding-bottom: 16px; }
  .plate-mid { padding: 20px 0 26px; }
  #chat { grid-template-columns: 1fr; }
  #contact .coupon { grid-template-columns: 1fr; }
  .coupon-left { padding: 36px 32px 20px; }
  .coupon-perf { height: 44px; }
  .coupon-perf::before { border-left: 0; border-top: 4px dotted rgba(255, 255, 255, .45); left: 24px; right: 24px; top: 50%; bottom: auto; }
  .coupon-form { padding: 10px 32px 36px; }
  .sgrid { grid-template-columns: 1fr 1fr; }
  .stat-band { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  #about .about-grid { grid-template-columns: 1fr; }
  .an-card { justify-self: start; }
}

/* ================= Phone ≤720 ================= */
@media (max-width: 720px) {
  :root { --mx: 16px; --gap: 80px; }
  #header { gap: 12px; padding: 10px var(--mx); }
  #header > .btn-solid { display: none; }
  .hero h1 { font-size: clamp(32px, 9vw, 42px); }
  .hero .lead { font-size: 16px; margin: 18px 0 24px; }
  .btn-big { padding: 14px 24px; font-size: 16px; width: 100%; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .shot-mini { position: static; margin-top: 12px; }
  .console { min-height: 420px; }
  .stat-band { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat { padding: 16px 18px; }
  .sgrid { grid-template-columns: 1fr; gap: 12px; }
  .acc { flex-direction: column; height: auto; }
  .acc-item { min-height: 60px; min-width: 0; }
  .acc-tab { position: relative; }
  .acc-tab span { position: static; writing-mode: horizontal-tb; transform: none; display: block; padding: 18px 20px; font-size: 16.5px; text-align: left; }
  .acc-panel { padding: 22px 20px 26px; }
  .acc-art { align-self: flex-start; margin-top: 20px; }
  .plate { padding: 18px; min-height: 0; }
  .bub { font-size: 14px; }
  .plate-actions { grid-template-columns: 1fr; }
  .pa { height: 54px; }
  .tech-list { grid-template-columns: 1fr; }
  .tech-list li { flex-direction: column; align-items: flex-start; gap: 2px; }
  .tl-desc { text-align: left; }
  .card { padding: 2px 18px; }
  .card-q { font-size: 15.5px; padding: 16px 32px 16px 0; }
  .coupon-left { padding: 26px 18px 16px; }
  .coupon-form { padding: 6px 18px 26px; }
  .foot-grid { grid-template-columns: 1fr; gap: 26px; margin-bottom: 36px; }
}
