/* ==========================================================================
   Notum — notumlabs.ru · site design system (green scheme, white-first)
   Built for robust rendering incl. Yandex Browser (Chromium/Blink).
   Only standard grid/flex + media queries; -webkit- fallbacks where needed.
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* surfaces */
  --bg:        #FFFFFF;
  --bg-soft:   #F7F4EE;
  --bg-soft-2: #F0EBE1;
  --card:      #FFFFFF;
  --ink:       #1D1B16;
  --ink-2:     #6B6456;
  --ink-3:     #9A9384;
  --border:    #E7E1D6;
  --border-2:  #D9D2C4;

  /* brand accents */
  --green:      #4E7A5B;
  --green-700:  #3D6349;
  --green-soft: #E7EFE7;
  --brown:      #8A6A47;
  --brown-700:  #6F5538;
  --brown-soft: #F0E9DF;
  --orange:     #CB6843;
  --orange-soft:#F7E5DC;

  /* app-mock dark palette */
  --app-bg:    #15191C;
  --app-card:  #1B2227;
  --app-line:  #232B31;
  --app-ink:   #E6ECEF;
  --app-ink-2: #9BA8B0;
  --app-owner: #8FC79B;
  --spk-sand:  #D5BB85;
  --spk-sky:   #9DBAC8;
  --spk-taupe: #CC9F8E;
  --spk-mauve: #B7A3C2;

  --maxw: 1140px;
  --r-card: 14px;
  --r-btn: 12px;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --shadow-sm: 0 1px 2px rgba(29,27,22,.04), 0 1px 3px rgba(29,27,22,.05);
  --shadow-md: 0 4px 14px rgba(29,27,22,.06), 0 2px 6px rgba(29,27,22,.04);
  --shadow-lg: 0 24px 60px rgba(29,27,22,.10), 0 8px 22px rgba(29,27,22,.07);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; }

/* ---------- layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.section { padding: 96px 0; }
.section--soft { background: var(--bg-soft); }
.section--tight { padding: 72px 0; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--green-700);
  margin: 0 0 16px;
}
.eyebrow--brown { color: var(--brown-700); }

h1, h2, h3 { margin: 0; letter-spacing: -.025em; font-weight: 700; color: var(--ink); text-wrap: balance; }
.h1 { font-size: 56px; line-height: 1.05; letter-spacing: -.032em; }
.h2 { font-size: 38px; line-height: 1.12; }
.h3 { font-size: 22px; line-height: 1.25; font-weight: 600; }
.section-head { max-width: 680px; margin: 0 0 48px; }
.section-head .h2 { margin-bottom: 14px; }
.lead { font-size: 19px; line-height: 1.6; color: var(--ink-2); margin: 0; text-wrap: pretty; }
.muted { color: var(--ink-2); }
.tiny { font-size: 13.5px; color: var(--ink-3); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 16px; font-weight: 600; line-height: 1; cursor: pointer;
  padding: 15px 24px; border-radius: var(--r-btn); border: 1px solid transparent;
  text-decoration: none; white-space: nowrap; transition: background .18s ease, border-color .18s ease, transform .18s ease, color .18s ease;
}
.btn--primary { background: var(--green); color: #fff; }
.btn--primary:hover { background: var(--green-700); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--border-2); }
.btn--ghost:hover { border-color: var(--ink-2); }
.btn--brown { background: var(--brown); color: #fff; }
.btn--brown:hover { background: var(--brown-700); }
.btn--sm { font-size: 14px; padding: 10px 18px; }
.btn--block { width: 100%; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 600; color: var(--green-700); text-decoration: none;
}
.link-arrow svg { transition: transform .18s ease; }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- top nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.82);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--border);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .nav { background: #fff; }
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a { font-size: 14.5px; font-weight: 500; color: var(--ink-2); text-decoration: none; transition: color .15s; }
.nav__links a:hover { color: var(--ink); }
.nav__right { display: flex; align-items: center; gap: 14px; }
.nav__burger { display: none; background: none; border: none; cursor: pointer; padding: 8px; color: var(--ink); }

/* ---------- logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; }
.logo__mark { width: 26px; height: 26px; border-radius: 8px; background: var(--green);
  display: inline-flex; align-items: center; justify-content: center; gap: 2.5px; flex: none; }
.logo__mark i { width: 2.5px; background: #fff; border-radius: 2px; }
.logo__mark i:nth-child(1) { height: 7px; opacity: .9; }
.logo__mark i:nth-child(2) { height: 12px; }
.logo__mark i:nth-child(3) { height: 6px; opacity: .85; }
.logo__word { font-size: 19px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); }

/* ---------- hero ---------- */
.hero { padding: 72px 0 92px; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero__title { margin-bottom: 22px; }
.hero__title .accent { color: var(--green); }
.hero__lead { max-width: 500px; margin-bottom: 32px; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__stats { display: flex; margin-top: 38px; }
.hero__stat { padding-right: 28px; margin-right: 28px; border-right: 1px solid var(--border); }
.hero__stat:last-child { border-right: none; }
.hero__stat b { display: block; font-size: 30px; font-weight: 700; letter-spacing: -.02em; color: var(--green-700); }
.hero__stat span { font-size: 13.5px; color: var(--ink-2); line-height: 1.35; }
.hero__visual { position: relative; display: flex; align-items: center; justify-content: center; }
.hero__halo { position: absolute; width: 460px; height: 460px; border-radius: 50%;
  background: radial-gradient(circle, var(--green-soft), transparent 68%); }
.hero__phone { position: relative; }
.mock-caption { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); margin-top: 14px; text-align: center; }

/* ---------- phone mockup ---------- */
.phone { position: relative; flex: none; border-radius: 46px; padding: 11px;
  background: linear-gradient(155deg,#2c3338,#0f1316);
  box-shadow: 0 30px 70px rgba(29,27,22,.20), 0 4px 14px rgba(29,27,22,.12), 0 0 0 1px rgba(255,255,255,.03); }
.phone__screen { width: 288px; height: 592px; border-radius: 36px; background: var(--app-bg);
  overflow: hidden; position: relative; display: flex; flex-direction: column; }
.phone__island { position: absolute; top: 9px; left: 50%; transform: translateX(-50%);
  width: 88px; height: 24px; background: #000; border-radius: 999px; z-index: 5; }
.phone__status { display: flex; justify-content: space-between; align-items: center; padding: 13px 22px 6px; color: var(--app-ink); font-size: 13px; font-weight: 600; }
.phone__nav { padding: 6px 18px 12px; border-bottom: 1px solid var(--app-line); display: flex; align-items: center; gap: 10px; }
.phone__back { color: var(--app-owner); font-size: 22px; line-height: 1; margin-top: -2px; }
.phone__title { font-size: 16px; font-weight: 700; color: var(--app-ink); }
.phone__sub { font-size: 11.5px; color: #7E8B92; }
.phone__rec { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; color: #E0915F; background: rgba(224,145,95,.14); padding: 4px 9px; border-radius: 999px; white-space: nowrap; }
.phone__rec i { width: 6px; height: 6px; border-radius: 999px; background: #E0915F; }
.phone__body { flex: 1; overflow: hidden; padding: 14px 18px 0; }
.tline { margin-bottom: 15px; }
.tline__head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.tline__name { font-size: 12.5px; font-weight: 700; letter-spacing: .1px; }
.tline__time { font-size: 11px; color: #6C7980; font-variant-numeric: tabular-nums; }
.tline__text { font-size: 13.5px; line-height: 1.5; color: #D3DBDF; }
.phone__summary { margin: 0 14px 14px; padding: 11px 14px; background: var(--app-card); border-radius: 12px; border: 1px solid var(--app-line); display: flex; align-items: center; gap: 10px; }
.phone__summary b { font-size: 12px; font-weight: 600; color: var(--app-ink); display: block; white-space: nowrap; }
.phone__summary span { font-size: 11px; color: #7E8B92; white-space: nowrap; }

/* ---------- trust strip ---------- */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--card); border: 1px solid var(--border); border-radius: var(--r-card); overflow: hidden; box-shadow: var(--shadow-sm); }
.trust__tile { padding: 28px 26px; text-decoration: none; color: inherit; border-right: 1px solid var(--border); transition: background .15s; display: block; }
.trust__tile:last-child { border-right: none; }
.trust__tile:hover { background: var(--bg-soft); }
.trust__icon { color: var(--green); margin-bottom: 14px; }
.trust__title { font-size: 16px; font-weight: 600; margin: 0 0 4px; }
.trust__desc { font-size: 13.5px; color: var(--ink-2); margin: 0; line-height: 1.45; }

/* ---------- feature cards ---------- */
.features-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.fcard { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-card); padding: 28px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.fcard__icon { width: 40px; height: 40px; border-radius: 10px; background: var(--green-soft); color: var(--green-700); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.fcard__title { font-size: 19px; font-weight: 600; margin: 0 0 8px; }
.fcard__body { font-size: 15.5px; line-height: 1.55; color: var(--ink-2); margin: 0 0 20px; }
.fcard__mock { margin-top: auto; }

/* mini-mockups inside feature cards */
.mini { background: var(--app-bg); border-radius: 12px; padding: 14px; color: var(--app-ink); }
.mini--light { background: var(--bg-soft); color: var(--ink); border: 1px solid var(--border); }
.mini__row { display: flex; align-items: center; gap: 9px; }
.mini__dot { width: 8px; height: 8px; border-radius: 999px; flex: none; }
.mini__bars { display: flex; align-items: flex-end; gap: 3px; height: 26px; }
.mini__bars i { width: 4px; border-radius: 3px; background: var(--app-owner); }
.chip-name { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; }
.chip-name i { width: 16px; height: 16px; border-radius: 999px; display: inline-block; }

/* ---------- chat showcase ---------- */
.chat { max-width: 760px; margin: 0 auto; background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 26px; box-shadow: var(--shadow-md); }
.bubble { display: flex; gap: 14px; margin-bottom: 22px; }
.js .bubble { opacity: 0; transform: translateY(10px); }
.js .bubble.is-in, .bubble.is-in { opacity: 1; transform: translateY(0); transition: opacity .5s ease, transform .5s ease; }
.bubble__who { font-size: 13px; font-weight: 700; flex: none; width: 52px; padding-top: 2px; }
.bubble--you .bubble__who { color: var(--ink); }
.bubble--agent .bubble__who { color: var(--green-700); }
.bubble__body { font-size: 16px; line-height: 1.55; }
.bubble--you .bubble__body { color: var(--ink); font-weight: 500; }
.bubble--agent .bubble__body { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; color: var(--ink); }
.bubble__body ul { margin: 8px 0 0; padding-left: 18px; }
.bubble__body li { margin: 3px 0; }
.cite { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-family: var(--font-mono); font-size: 12px; color: var(--green-700); background: var(--green-soft); padding: 5px 10px; border-radius: 999px; }
.typing { display: inline-flex; gap: 4px; padding: 14px 16px; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 12px; }
.typing i { width: 7px; height: 7px; border-radius: 999px; background: var(--ink-3); animation: nm-bounce 1.2s ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes nm-bounce { 0%,60%,100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-5px); opacity: 1; } }
.chat__prompts { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 28px; }
.prompt-chip { font-size: 14px; color: var(--ink-2); background: var(--card); border: 1px solid var(--border); border-radius: 999px; padding: 9px 16px; cursor: pointer; transition: border-color .15s, color .15s; }
.prompt-chip:hover { border-color: var(--green); color: var(--green-700); }
.chat__closing { text-align: center; margin-top: 26px; font-size: 15px; color: var(--ink-2); }

/* ---------- security mini ---------- */
.secrow { display: flex; gap: 18px; padding: 24px 26px; background: var(--card); border: 1px solid var(--border); border-radius: var(--r-card); margin-bottom: 14px; box-shadow: var(--shadow-sm); }
.secrow__icon { width: 44px; height: 44px; border-radius: 11px; flex: none; display: inline-flex; align-items: center; justify-content: center; background: var(--green-soft); color: var(--green-700); }
.secrow__title { font-size: 17px; font-weight: 600; margin: 0 0 5px; }
.secrow__body { font-size: 15px; line-height: 1.55; color: var(--ink-2); margin: 0; }
.secrow__body code { font-family: var(--font-mono); font-size: 13px; color: var(--brown-700); background: var(--brown-soft); padding: 1px 6px; border-radius: 5px; }

/* ---------- b2b teaser ---------- */
.b2b { background: var(--bg-soft-2); }
.pullquote { font-size: 28px; line-height: 1.35; font-style: italic; font-weight: 500; color: var(--ink); max-width: 860px; margin: 0 0 44px; text-wrap: pretty; }
.pullquote .accent { color: var(--green-700); font-style: normal; }
.b2b-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 40px; }
.b2bcard { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-card); padding: 26px; }
.b2bcard__icon { color: var(--brown); margin-bottom: 16px; }
.b2bcard__title { font-size: 17px; font-weight: 600; margin: 0 0 8px; }
.b2bcard__body { font-size: 15px; line-height: 1.55; color: var(--ink-2); margin: 0; }

/* ---------- waitlist / soon ---------- */
.soon-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.soon-tag { display: inline-block; font-family: var(--font-mono); font-size: 12px; color: var(--brown-700); background: var(--brown-soft); padding: 4px 11px; border-radius: 999px; margin-bottom: 16px; }
.wl-form { display: flex; gap: 10px; margin-top: 26px; flex-wrap: wrap; max-width: 480px; }
.wl-form input[type=email] { flex: 1; min-width: 200px; font-family: inherit; font-size: 15.5px; color: var(--ink);
  padding: 14px 16px; border: 1px solid var(--border-2); border-radius: var(--r-btn); background: var(--card); transition: border-color .15s; }
.wl-form input[type=email]:focus { outline: none; border-color: var(--green); }
.form-note { font-size: 13px; color: var(--ink-3); margin-top: 12px; }
.form-success { display: none; padding: 16px 18px; background: var(--green-soft); border: 1px solid var(--green); border-radius: var(--r-btn); color: var(--green-700); font-weight: 500; margin-top: 26px; max-width: 480px; }
.form-success.is-on { display: block; }
.wl-form.is-done { display: none; }

/* premium cards */
.prem-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.premcard { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-card); padding: 20px 16px; text-align: center; }
.premcard__icon { color: var(--green); margin: 0 auto 12px; }
.premcard__title { font-size: 14.5px; font-weight: 600; line-height: 1.3; }

/* qr mock */
.qr-mock { display: flex; align-items: center; justify-content: center; gap: 18px; }
.laptop { width: 300px; background: var(--app-bg); border-radius: 14px 14px 0 0; border: 1px solid var(--app-line); padding: 16px; position: relative; }
.laptop::after { content: ""; position: absolute; left: -22px; right: -22px; bottom: -10px; height: 10px; background: #2c3338; border-radius: 0 0 10px 10px; }
.laptop__title { color: var(--app-ink); font-size: 13px; font-weight: 600; margin-bottom: 14px; }
.qr-box { aspect-ratio: 1; background: #fff; border-radius: 10px; display: grid; grid-template-columns: repeat(6,1fr); grid-template-rows: repeat(6,1fr); gap: 4px; padding: 14px; }
.qr-box i { background: var(--ink); border-radius: 2px; }
.mini-phone { width: 76px; height: 150px; border-radius: 16px; background: linear-gradient(155deg,#2c3338,#0f1316); padding: 6px; flex: none; }
.mini-phone__scr { width: 100%; height: 100%; border-radius: 11px; background: var(--app-bg); display: flex; align-items: center; justify-content: center; }

/* ---------- faq ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq__item { border-bottom: 1px solid var(--border); }
.faq__q { width: 100%; text-align: left; background: none; border: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative; font-size: 18px; font-weight: 600; color: var(--ink); line-height: 1.4; }
.faq__q::after { content: ""; position: absolute; right: 6px; top: 27px; width: 11px; height: 11px; border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: rotate(45deg); transition: transform .2s ease; }
.faq__item.is-open .faq__q::after { transform: rotate(-135deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .28s ease; }
.faq__a-inner { padding: 0 44px 24px 0; font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.faq__a-inner a { color: var(--green-700); font-weight: 500; }

/* ---------- footer ---------- */
.footer { background: var(--bg-soft); border-top: 1px solid var(--border); padding: 64px 0 40px; }
.footer__top { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 36px; margin-bottom: 40px; }
.footer__intro p { font-size: 14.5px; color: var(--ink-2); margin: 14px 0 0; max-width: 240px; }
.footer__col h4 { font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 14px; }
.footer__col a { display: block; font-size: 14.5px; color: var(--ink-2); text-decoration: none; margin-bottom: 9px; transition: color .15s; }
.footer__col a:hover { color: var(--ink); }
.footer__contacts { display: flex; gap: 26px; flex-wrap: wrap; padding: 22px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.footer__contacts a { font-size: 14px; color: var(--ink-2); text-decoration: none; }
.footer__contacts a:hover { color: var(--green-700); }
.footer__legal { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding-top: 24px; }
.footer__legal .copy { font-size: 13.5px; color: var(--ink-2); }
.footer__legal .made { font-size: 12.5px; color: var(--ink-3); }

/* ---------- scroll reveal (gated by .js so content shows without JS) ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); }
.js .reveal.is-in { opacity: 1; transform: translateY(0); transition: opacity .6s ease, transform .6s ease; }

/* ---------- mobile nav drawer ---------- */
.mobile-menu { display: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1023px) {
  .section { padding: 64px 0; }
  .h1 { font-size: 44px; }
  .h2 { font-size: 32px; }
  .hero { padding: 48px 0 64px; }
  .hero__grid { grid-template-columns: 1fr; gap: 44px; }
  .hero__visual { order: 2; }
  .hero__lead { max-width: none; }
  .b2b-grid { grid-template-columns: 1fr; }
  .prem-grid { grid-template-columns: repeat(3, 1fr); }
  .soon-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer__top { grid-template-columns: 1fr 1fr 1fr; }
  .footer__intro { grid-column: 1 / -1; }
  .trust { grid-template-columns: 1fr 1fr; }
  .trust__tile:nth-child(2) { border-right: none; }
  .trust__tile:nth-child(1), .trust__tile:nth-child(2) { border-bottom: 1px solid var(--border); }
  .nav__links { display: none; }
  .nav__burger { display: inline-flex; }
}

@media (max-width: 639px) {
  body { font-size: 16px; }
  .container { padding: 0 20px; }
  .section { padding: 48px 0; }
  .h1 { font-size: 34px; letter-spacing: -.02em; }
  .h2 { font-size: 27px; }
  .lead { font-size: 17px; }
  .hero__stats { flex-wrap: wrap; gap: 18px; }
  .hero__stat { border-right: none; padding-right: 0; margin-right: 0; flex: 1 0 40%; }
  .hero__cta .btn { flex: 1 1 auto; }
  .features-grid { grid-template-columns: 1fr; }
  .trust { grid-template-columns: 1fr; }
  .trust__tile { border-right: none; border-bottom: 1px solid var(--border); }
  .trust__tile:last-child { border-bottom: none; }
  .prem-grid { grid-template-columns: 1fr 1fr; }
  .pullquote { font-size: 22px; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .chat { padding: 18px; }
  .bubble__who { width: 40px; font-size: 12px; }
  .bubble__body { font-size: 15px; }
  .qr-mock { transform: scale(.9); }
  .faq__q { font-size: 16.5px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
  .reveal, .bubble { opacity: 1 !important; transform: none !important; }
}
