/* DOSTA v6 — общая библиотека коммерческого сайта: токены, тема, топ-бар (прилипает), сетка, типографика,
   стекло, кнопки, бриф-чат, печать, подвал. Резиновая вёрстка: 1440 → телефон. Описание: OBSIDIAN/DOSTA/концепты/Концепты v6.md */
@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:wght@300..700&family=DM+Mono:wght@400;500&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --lab: #EEF1F3; --fog: #E4E9EC; --mist: #DCE2E8; --steel: #B8C1CA; --slate: #7B8591;
  --graphite: #3A424C; --ink: #0E1116; --night: #05070A;
  --lime: #C6FF3D; --red: #FF3B30;
  --fogrd: linear-gradient(#F4F6F7 0%, #DCE3E6 45%, #9DAAAF 100%); /* градиент c09 — «сочный» */
  --sans: 'Inter Tight', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'DM Mono', 'JetBrains Mono', ui-monospace, monospace;
  --io: cubic-bezier(.2, .8, .2, 1);
  --gut: 24px; --max: 1440px; --r: 28px;
}
html:lang(ru) { --mono: 'JetBrains Mono', ui-monospace, monospace; }
body.light { --bg: #EEF1F3; --bg2: #E5E9EC; --fg: #0E1116; --fg2: #9A9EA3; --fg3: rgba(14,17,22,.55); --line: rgba(14,17,22,.12); --chip: rgba(14,17,22,.06); --inv: #fff; }
body.dark { --bg: #05070A; --bg2: #0B0E12; --fg: #E9EDF1; --fg2: #6E747C; --fg3: rgba(233,237,241,.55); --line: rgba(255,255,255,.1); --chip: rgba(255,255,255,.07); --inv: #0E1116; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--fg); font-family: var(--sans); font-size: 17px; line-height: 1.4; -webkit-font-smoothing: antialiased; text-rendering: geometricPrecision; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img, video, canvas, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input { font: inherit; color: inherit; }
::selection { background: var(--lime); color: var(--ink); }

/* сетка */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); position: relative; }
.g12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
section { position: relative; scroll-margin-top: 80px; }

/* типографика */
.mono { font-family: var(--mono); font-size: 11px; line-height: 1.45; letter-spacing: .06em; text-transform: uppercase; font-weight: 400; }
.mono b { font-weight: 500; }
.mono.l { font-size: 12.5px; }
.dim { color: var(--fg3); }
.h1 { font-weight: 500; font-size: clamp(46px, 8.6vw, 148px); line-height: .92; letter-spacing: -.055em; margin: 0; }
.h2 { font-weight: 500; font-size: clamp(36px, 5vw, 84px); line-height: .96; letter-spacing: -.045em; margin: 0; }
.h3 { font-weight: 500; font-size: clamp(24px, 2.3vw, 36px); line-height: 1.05; letter-spacing: -.03em; margin: 0; }
.lead { font-size: clamp(18px, 1.5vw, 22px); line-height: 1.38; letter-spacing: -.012em; color: var(--fg); }
.g2 { color: var(--fg2); } /* вторая часть фразы — серым, как в суперлайках */
p { margin: 0; }

/* разметка-сетка из знаков (суперлайк №1): узлы по углам секции */
.nodes { position: absolute; inset: 0; pointer-events: none; }
.nodes i { position: absolute; width: 9px; height: 9px; color: var(--fg); opacity: .55; }
.nodes i svg { width: 100%; height: 100%; }

/* стекло */
.lq { background: linear-gradient(160deg, rgba(255,255,255,.62), rgba(255,255,255,.26) 60%, rgba(255,255,255,.4)); -webkit-backdrop-filter: blur(18px) saturate(1.6); backdrop-filter: blur(18px) saturate(1.6);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.95), inset 0 -1px 0 rgba(255,255,255,.35), inset 0 0 0 1px rgba(255,255,255,.5), inset 0 -18px 30px -18px rgba(255,255,255,.55), 0 10px 40px -20px rgba(30,40,55,.25); }
.lqd { background: linear-gradient(160deg, rgba(86,98,116,.34), rgba(14,18,26,.5) 60%, rgba(40,48,60,.42)); -webkit-backdrop-filter: blur(20px) saturate(1.3); backdrop-filter: blur(20px) saturate(1.3);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2), inset 0 0 0 1px rgba(255,255,255,.09), inset 0 -18px 30px -20px rgba(255,255,255,.1); }
/* то же стекло без живого блюра — над анимацией */
.lqs { background: linear-gradient(160deg, rgba(255,255,255,.82), rgba(246,248,250,.66) 60%, rgba(255,255,255,.74)); box-shadow: inset 0 1px 0 #fff, inset 0 0 0 1px rgba(255,255,255,.7), 0 10px 40px -20px rgba(30,40,55,.25); }
.dark .lqs { background: linear-gradient(160deg, rgba(60,70,84,.62), rgba(14,18,24,.86) 60%, rgba(34,40,50,.74)); box-shadow: inset 0 1px 0 rgba(255,255,255,.2), inset 0 0 0 1px rgba(255,255,255,.08); }
/* стекло со светом изнутри (суперлайк №22) */
.glow { --g: 198,255,61; box-shadow: inset 0 0 0 1.5px rgba(var(--g), .95), inset 0 0 16px 3px rgba(var(--g), .7), inset 0 0 60px 4px rgba(var(--g), .28), 0 0 34px rgba(var(--g), .16); }
.light .glow { box-shadow: inset 0 0 0 1.5px rgba(150,205,20,.95), inset 0 0 14px 2px rgba(198,255,61,.95), inset 0 0 46px 6px rgba(198,255,61,.45), 0 12px 40px -18px rgba(120,170,0,.35); }

/* топ-бар (суперлайки №8, №29): пилюля из стекла, прилипает; бегунок показывает, где ты */
.tb { position: fixed; z-index: 100; top: 14px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 2px; padding: 6px; border-radius: 999px; font-size: 15px; letter-spacing: -.005em; white-space: nowrap; transition: transform .5s var(--io), opacity .5s; }
.tb .home { display: flex; align-items: center; padding: 0 12px 0 12px; height: 38px; }
.tb .home svg { width: 19px; height: 19px; }
.tb nav { display: flex; position: relative; }
.tb nav a { position: relative; z-index: 1; padding: 9px 14px; border-radius: 999px; transition: color .3s; }
.tb .run { position: absolute; z-index: 0; top: 0; bottom: 0; border-radius: 999px; background: var(--chip); transition: left .55s var(--io), width .55s var(--io), opacity .4s; opacity: 0; }
.tb .lang { display: flex; margin: 0 4px 0 6px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; }
.tb .lang button { padding: 9px 6px; opacity: .4; transition: opacity .3s; }
.tb .lang button.on { opacity: 1; }
.tb .cta { padding: 10px 18px; border-radius: 999px; background: var(--fg); color: var(--inv); margin-left: 2px; transition: transform .3s var(--io); }
.tb .cta:hover { transform: scale(1.04); }
.tb .home { transition: transform .5s var(--io); }
.tb .home:hover { transform: rotate(90deg); }
.tb .lang button:hover { opacity: .8; }
.tb .burger { display: none; width: 38px; height: 38px; border-radius: 50%; align-items: center; justify-content: center; }
.tb .burger i { display: block; width: 16px; height: 1.5px; background: currentColor; box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor; }
.light .tb { color: var(--ink); }
.dark .tb { color: #E9EDF1; }
.tb.intro { opacity: 0; transform: translate(-50%, -16px); }
.menu { position: fixed; z-index: 99; top: 70px; left: 12px; right: 12px; border-radius: 28px; padding: 10px; display: none; flex-direction: column; }
.menu a { padding: 16px 18px; font-size: 22px; letter-spacing: -.02em; border-bottom: 1px solid var(--line); }
.menu a:last-child { border: 0; }
.menu.on { display: flex; }

/* кнопки */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 16px 24px; border-radius: 999px; background: var(--fg); color: var(--inv); font-size: 16px; letter-spacing: -.01em; transition: transform .35s var(--io); }
.btn:hover { transform: translateY(-1px) scale(1.02); }
.btn.ghost { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1px var(--line); }
.btn .ar { font-family: var(--mono); }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); font-size: 14.5px; transition: background .3s, box-shadow .3s; }
.chip:hover { background: var(--chip); }
.chip.on { background: var(--fg); color: var(--inv); box-shadow: none; }

/* вставки в тексте (суперлайки №14, №36): знак, фото, видео в строке */
.ins { display: inline-block; vertical-align: -.06em; height: .74em; border-radius: .2em; overflow: hidden; position: relative; margin: 0 .04em; }
.ins img, .ins video { width: 100%; height: 100%; object-fit: cover; }
.ins.mk { width: .78em; border-radius: 0; overflow: visible; }
.ins.mk svg { width: 100%; height: 100%; }
.ins.ph { width: 1.5em; }
.ins.wide { width: 2.1em; }

/* проявление по скроллу */
.bi { opacity: 0; transform: translateY(18px); transition: opacity 1s var(--io), transform 1s var(--io); }
.bi.t { filter: blur(8px); transition: opacity 1s var(--io), transform 1s var(--io), filter .9s var(--io); }
.bi.in { opacity: 1; transform: none; filter: none; }
.still .bi { opacity: 1; transform: none; filter: none; transition: none; }

/* бриф-чат (суперлайки №7, №22) */
.chat { display: flex; flex-direction: column; gap: 14px; }
.chat .log { display: flex; flex-direction: column; gap: 12px; overflow-y: auto; scrollbar-width: none; -webkit-mask: linear-gradient(transparent, #000 40px); mask: linear-gradient(transparent, #000 40px); padding-top: 40px; }
.chat .log::-webkit-scrollbar { display: none; }
.msg { max-width: 82%; padding: 16px 22px; border-radius: 26px; font-size: clamp(16px, 1.35vw, 20px); line-height: 1.32; letter-spacing: -.012em; animation: msg .55s var(--io) both; }
.msg.me { align-self: flex-end; background: var(--chip); }
.msg.bot { align-self: flex-start; box-shadow: inset 0 0 0 1px var(--line); }
.msg.bot .who { display: block; margin-bottom: 6px; color: var(--fg3); }
.msg .dots { display: inline-flex; gap: 5px; padding: 6px 0; }
.msg .dots i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .3; animation: dt 1s infinite; }
.msg .dots i:nth-child(2) { animation-delay: .15s; } .msg .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dt { 50% { opacity: 1; } }
@keyframes msg { from { opacity: 0; transform: translateY(10px); } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; animation: msg .55s var(--io) both; }
.ask { display: flex; align-items: center; gap: 10px; padding: 9px 9px 9px 26px; border-radius: 999px; position: relative; }
.ask input { flex: 1; min-width: 0; border: 0; outline: none; background: none; font-size: clamp(16px, 1.4vw, 20px); letter-spacing: -.012em; padding: 12px 0; }
.ask input::placeholder { color: var(--fg3); }
.ask .ag { padding: 10px 14px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); white-space: nowrap; }
.ask .go { width: 52px; height: 52px; flex: none; border-radius: 50%; background: var(--fg); color: var(--inv); display: flex; align-items: center; justify-content: center; font-size: 22px; transition: transform .3s var(--io); }
.dark .ask .go { background: #E9EDF1; color: #0E1116; }
.ask .go:hover { transform: scale(1.06); }
.brief { border-radius: 26px; padding: 22px 24px; display: grid; gap: 14px; animation: msg .6s var(--io) both; max-width: 560px; }
.brief .row { display: grid; grid-template-columns: 120px 1fr; gap: 12px; align-items: baseline; padding-bottom: 10px; border-bottom: 1px solid var(--line); font-size: 17px; }
.brief .row .mono { color: var(--fg3); }
.brief .acts { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 4px; }
.brief .note { color: var(--fg3); }
.phone { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.phone select, .phone input { border: 0; outline: none; border-radius: 999px; padding: 14px 18px; background: var(--chip); font-size: 16px; }
.phone input { flex: 1; min-width: 160px; }

/* печать запроса (суперлайк №11): знак рядом с DOSTA */
.stamp { text-align: center; display: grid; justify-items: center; gap: 18px; }
.stamp .top { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 22px; letter-spacing: .14em; }
.stamp .top svg { width: 24px; height: 24px; }
.stamp .lines { font-family: var(--mono); font-size: 13.5px; line-height: 1.85; letter-spacing: .07em; text-transform: uppercase; }

/* подвал (суперлайки №2, №16): текст слева, знак по центру, DOSTA справа — по сетке */
.foot { position: relative; padding: 120px 0 28px; }
.foot .row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.foot .txt { font-family: var(--mono); font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; line-height: 1.55; max-width: 360px; }
.foot .m { width: 34px; height: 34px; }
.foot .w { justify-self: end; font-weight: 600; font-size: 24px; letter-spacing: .16em; line-height: 1; margin-right: -.16em; }
.foot .bot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 110px; }

/* служебное */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.hide-m { }
@media (max-width: 1080px) {
  .tb nav { display: none; }
  .tb .burger { display: flex; }
  .tb { left: 12px; right: 12px; transform: none; justify-content: space-between; }
  .tb.intro { transform: translateY(-16px); }
}
@media (max-width: 720px) {
  :root { --gut: 16px; }
  body { font-size: 16px; }
  .g12 { column-gap: 12px; }
  .hide-m { display: none !important; }
  .foot .row { grid-template-columns: 1fr auto; }
  .foot .txt { grid-column: 1 / -1; order: 3; }
  .foot .w { font-size: 22px; }
  .brief .row { grid-template-columns: 92px 1fr; font-size: 15.5px; }
  .ask { padding-left: 18px; }
  .ask .ag { display: none; }
  .ask .go { width: 46px; height: 46px; }
  .msg { max-width: 92%; }
}
