/* Chatamba site tokens and components. Plain CSS, no build step. */
/* Manrope (SIL OFL 1.1, see ../fonts/OFL.txt), self-hosted: Cyrillic and Latin subsets from @fontsource/manrope 5.2.8.
   The url()s are relative to this file, so they resolve under the bucket's static/ prefix too (CMP-008 D8). */
@font-face { font-family: Manrope; font-style: normal; font-display: swap; font-weight: 400; src: url(../fonts/manrope-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: Manrope; font-style: normal; font-display: swap; font-weight: 400; src: url(../fonts/manrope-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+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: Manrope; font-style: normal; font-display: swap; font-weight: 500; src: url(../fonts/manrope-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: Manrope; font-style: normal; font-display: swap; font-weight: 500; src: url(../fonts/manrope-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+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: Manrope; font-style: normal; font-display: swap; font-weight: 600; src: url(../fonts/manrope-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: Manrope; font-style: normal; font-display: swap; font-weight: 600; src: url(../fonts/manrope-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+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: Manrope; font-style: normal; font-display: swap; font-weight: 700; src: url(../fonts/manrope-cyrillic-700-normal.woff2) format('woff2'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: Manrope; font-style: normal; font-display: swap; font-weight: 700; src: url(../fonts/manrope-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: Manrope; font-style: normal; font-display: swap; font-weight: 800; src: url(../fonts/manrope-cyrillic-800-normal.woff2) format('woff2'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: Manrope; font-style: normal; font-display: swap; font-weight: 800; src: url(../fonts/manrope-latin-800-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
:root {
  --ground: #FFF9F1;
  --sand: #F4EDE2;
  --surface: #FFFFFF;
  --navy: #12253F;
  --muted: #4A5A6E;
  --line: #E6DED1;
  --teal: #00BCAE;      /* fill and illustration only: 2.3:1 on the ground */
  --teal-deep: #00756D; /* links and teal text */
  --teal-soft: #E0F5F2;
  --coral: #F3695C;     /* fill only, with navy text: white on coral is 3.0:1 */
  --coral-deep: #B83A2B;
  --coral-soft: #FDE7E2;
  --on-navy-muted: #B9C4D0;
  --r-s: 10px;
  --r-m: 16px;
  --r-l: 24px;
}
* { box-sizing: border-box; }
body { margin: 0; }
.site { font-family: Manrope, system-ui, sans-serif; background: var(--ground); color: var(--navy); font-size: 16px; line-height: 1.6; min-height: 100vh; display: flex; flex-direction: column; }
.site a { color: var(--teal-deep); }
.site a:hover { color: var(--navy); }
.wrap { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: 32px; }
.wrap--narrow { max-width: 720px; }
.grow { flex: 1 1 auto; }
.section { padding-block: 72px; }
.section--sand { background: var(--sand); }
.section--navy { background: var(--navy); color: var(--ground); }
.section--navy .muted { color: var(--on-navy-muted); }
.section--navy a { color: var(--teal); }

.h1, .h2, .h3 { font-weight: 800; letter-spacing: -0.02em; margin: 0; }
.h1 { font-size: clamp(36px, 5vw, 60px); line-height: 1.08; }
.h2 { font-size: clamp(26px, 3.2vw, 38px); line-height: 1.15; }
.h3 { font-size: 20px; line-height: 1.3; letter-spacing: -0.01em; }
.lede { font-size: clamp(18px, 2vw, 21px); line-height: 1.5; margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 14px; line-height: 1.5; }
.eyebrow { font-size: 14px; font-weight: 700; color: var(--teal-deep); margin: 0; }
.p0 { margin: 0; }

.stack { display: flex; flex-direction: column; gap: 16px; }
.stack--l { gap: 32px; }
.stack--s { gap: 8px; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.row--top { align-items: flex-start; }
.between { justify-content: space-between; }
.grid { display: grid; gap: 24px; }
.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)); }
.hero { display: grid; gap: 48px; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); align-items: center; }
.hero__art { width: 100%; max-width: 420px; justify-self: center; display: block; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px; border-radius: var(--r-m); border: 2px solid transparent; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.site a.btn--primary, .btn--primary { background: var(--navy); color: var(--ground); }
.site a.btn--primary:hover, .btn--primary:hover { background: #1D3657; color: var(--ground); }
.site a.btn--accent, .btn--accent { background: var(--coral); color: var(--navy); }
.site a.btn--accent:hover, .btn--accent:hover { background: #F7867B; color: var(--navy); }
.site a.btn--ghost, .btn--ghost { background: transparent; border-color: var(--navy); color: var(--navy); }
.site a.btn--ghost:hover, .btn--ghost:hover { background: var(--sand); color: var(--navy); }
.btn[disabled] { background: var(--sand); color: var(--muted); cursor: not-allowed; }
.btn--small { min-height: 44px; padding: 8px 16px; font-size: 15px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: 28px; }
.card--flat { background: transparent; border: 0; padding: 0; }
.tint-teal { background: var(--teal-soft); border-color: transparent; }
.tint-coral { background: var(--coral-soft); border-color: transparent; }
.tint-sand { background: var(--sand); border-color: transparent; }
.card-link { display: block; text-decoration: none; color: inherit; }
.site a.card-link { color: var(--navy); }
.site a.card-link:hover { border-color: var(--navy); color: var(--navy); }
.chip { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--sand); font-size: 14px; font-weight: 600; color: var(--navy); text-decoration: none; }
.chip--on { background: var(--navy); color: var(--ground); }
.site a.chip { color: var(--navy); }
.site a.chip--on { color: var(--ground); }
.list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; width: 100%; }

.field { display: flex; flex-direction: column; gap: 6px; font-weight: 600; }
.input { font: inherit; min-height: 48px; padding: 10px 14px; border: 1px solid var(--muted); border-radius: var(--r-s); background: var(--surface); color: var(--navy); width: 100%; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; }

.hd { border-bottom: 1px solid var(--line); background: var(--ground); }
.hd__in { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding-block: 14px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 24px; letter-spacing: -0.02em; text-decoration: none; }
.site a.brand { color: var(--navy); }
.brand img { height: 44px; width: auto; display: block; }
.hd__nav { display: flex; flex-wrap: wrap; gap: 4px 20px; flex: 1 1 auto; }
.site .hd__nav a { color: var(--navy); text-decoration: none; font-weight: 600; font-size: 15px; padding-block: 10px; }
.site .hd__nav a:hover, .site .hd__nav a[aria-current="page"] { color: var(--teal-deep); }
.ft { background: var(--navy); color: var(--ground); padding-block: 48px; font-size: 15px; }
.site .ft a { color: var(--ground); text-decoration: none; }
.site .ft a:hover { color: var(--teal); }
.ft__grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); }
.ft .muted { color: var(--on-navy-muted); }

.shell { display: flex; flex-wrap: wrap; min-height: 100vh; }
.side { flex: 1 1 260px; max-width: 100%; background: var(--sand); padding: 18px 16px; display: flex; flex-direction: column; gap: 18px; }
.side__nav { display: flex; flex-direction: column; gap: 2px; }
.site .side__nav a { display: block; padding: 10px 12px; border-radius: var(--r-s); color: var(--navy); text-decoration: none; font-weight: 600; font-size: 15px; }
.site .side__nav a:hover { background: var(--line); }
.site .side__nav a[aria-current="page"] { background: var(--surface); }
.main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; min-height: 100vh; }
.chat { flex: 1 1 auto; width: 100%; max-width: 760px; margin-inline: auto; padding: 28px 24px; display: flex; flex-direction: column; gap: 16px; }
.msg { display: flex; gap: 12px; align-items: flex-start; max-width: 92%; }
.msg__body { padding: 12px 16px; border-radius: 20px 20px 20px 6px; background: var(--surface); border: 1px solid var(--line); }
.msg--user { align-self: flex-end; }
.msg--user .msg__body { background: var(--navy); color: var(--ground); border-color: var(--navy); border-radius: 20px 20px 6px 20px; }
.avatar { width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--teal-soft); display: flex; align-items: center; justify-content: center; }
.avatar img { width: 30px; height: auto; display: block; }
.svc { align-self: stretch; text-align: center; font-size: 14px; font-weight: 600; color: var(--muted); padding: 6px 12px; }
.sys { align-self: stretch; background: var(--surface); border: 2px solid var(--navy); border-radius: var(--r-m); padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.composer { width: 100%; max-width: 760px; margin-inline: auto; padding: 0 24px 16px; }
.composer__box { display: flex; gap: 8px; align-items: center; background: var(--surface); border: 1px solid var(--muted); border-radius: var(--r-m); padding: 6px 6px 6px 16px; }
.composer__box input { flex: 1 1 auto; min-width: 0; border: 0; outline-offset: 4px; background: transparent; font: inherit; color: var(--navy); min-height: 44px; }
.composer__box--off { background: var(--sand); border-color: var(--line); }
.composer__hint { margin: 8px 0 0; text-align: center; font-size: 13px; color: var(--muted); }
.launcher { position: fixed; right: 24px; bottom: 24px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); box-shadow: 0 12px 40px rgba(18, 37, 63, .18); display: flex; flex-direction: column; overflow: hidden; }
.panel__hd { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-weight: 700; }

.prose { font-size: 18px; line-height: 1.65; }
.prose > * { margin: 0 0 20px; }
.prose h2 { font-size: 26px; line-height: 1.2; font-weight: 800; letter-spacing: -0.01em; margin-top: 40px; }
.h1--m { font-size: clamp(32px, 4vw, 44px); }
.prose img, .cover { max-width: 100%; height: auto; border-radius: var(--r-m); }
.prose table { display: block; max-width: 100%; overflow-x: auto; }
.doc { display: flex; flex-wrap: wrap; gap: 48px; }
.doc__nav { flex: 1 1 220px; align-self: flex-start; }
.doc__body { flex: 999 1 560px; min-width: 0; max-width: 720px; overflow-wrap: anywhere; }
.price { font-size: 40px; line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; }
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; }
.tbl th, .tbl td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.swatch { height: 88px; border-radius: var(--r-m); border: 1px solid var(--line); }

/* Header: menu button and drawer (phone width) */
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.hd__toggle { display: none; margin-left: auto; min-width: 44px; min-height: 44px; border: 2px solid var(--navy); border-radius: var(--r-m); background: transparent; color: var(--navy); cursor: pointer; align-items: center; justify-content: center; }
.ft__col a { display: block; padding-block: 2px; }
.ft__col strong { display: block; margin-bottom: 4px; }

@media (max-width: 640px) {
  .hd__toggle { display: inline-flex; }
  .hd__nav { display: none; flex: 1 0 100%; flex-direction: column; background: var(--sand); border-radius: var(--r-m); padding: 8px 16px; }
  .hd__nav.is-open { display: flex; }
  .wrap { padding-inline: 16px; }
  .section { padding-block: 48px; }
  .card { padding: 20px; }
  .chat { padding: 20px 16px; }
  .composer { padding: 0 16px 12px; }
  .msg { max-width: 100%; }
  .side { flex-basis: 100%; }
  .brand { font-size: 20px; min-height: 44px; }
  .brand img { height: 36px; }
  .ft__col a { padding-block: 10px; }
  .doc__nav a { display: block; padding-block: 10px; }
}

