/* Витрина KIM (/site). Фирменный стиль: docs/brand/kim-agency-tokens.md. Кольцо из логотипа — единственный декор. */
@font-face { font-family: Manrope; font-style: normal; font-weight: 200 800; font-display: swap; src: url(/static/fonts/manrope-cyrillic-wght-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-weight: 200 800; font-display: swap; src: url(/static/fonts/manrope-latin-wght-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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --white: #fff; --black: #181717; --ink-2: #464545; --ink-3: #6b6b6b; --ink-4: #a3a2a2;
  --line: #e3e3e3; --soft: #f6f6f6; --red: #cb172c; --red-700: #a81224; --red-light: #e23a4e; --green: #88d524;
  --gutter: clamp(16px, 4vw, 40px); --section: clamp(64px, 9vw, 120px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--black); font: 400 17px/1.55 Manrope, system-ui, sans-serif; overflow-x: hidden; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3, p, ol, ul { margin: 0; padding: 0; }
ol, ul { list-style: none; }
.wrap { width: min(1200px, 100%); margin: 0 auto; padding: 0 var(--gutter); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--red); }
h1 { font-size: clamp(40px, 5.2vw, 68px); line-height: 1.06; font-weight: 500; letter-spacing: -.025em; text-wrap: balance; margin-top: 18px; }
h2 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.12; font-weight: 500; letter-spacing: -.02em; text-wrap: balance; margin-top: 14px; }
.lead { font-size: clamp(18px, 1.5vw, 20px); color: var(--ink-2); max-width: 34em; margin-top: 22px; }
.fine { font-size: 14px; color: var(--ink-3); max-width: 38em; }
.head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 52px); }
.head > p:last-child:not(.eyebrow) { color: var(--ink-2); margin-top: 16px; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 14px 26px; border-radius: 10px; background: linear-gradient(90deg, var(--red-light), var(--red)); color: var(--white); font-weight: 600; font-size: 16px; text-decoration: none; transition: filter .15s, transform .15s; }
.btn:hover { filter: brightness(.93); transform: translateY(-1px); }
.btn-ghost { background: var(--white); color: var(--black); box-shadow: inset 0 0 0 1.5px var(--black); }
.btn-ghost:hover { background: var(--black); color: var(--white); filter: none; }
.btn-small { min-height: 42px; padding: 9px 16px; font-size: 14px; white-space: nowrap; }

.bar { position: sticky; top: 0; z-index: 5; background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.bar-row { display: flex; align-items: center; gap: 20px; height: 68px; }
.logo { display: inline-flex; flex: none; }
.logo img { display: block; height: 27px; width: auto; }
.links { display: flex; gap: 26px; margin-left: auto; font-size: 15px; font-weight: 500; }
.links a { text-decoration: none; color: var(--ink-2); }
.links a:hover { color: var(--red); }

.hero { position: relative; overflow: hidden; padding: clamp(40px, 5vw, 72px) 0 var(--section); }
.hero::before { content: ""; position: absolute; right: -180px; top: -140px; width: 760px; height: 760px; border: 56px solid var(--red); border-radius: 50%; opacity: .07; pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 18px; }

.chat { display: flex; flex-direction: column; height: min(680px, calc(100vh - 156px)); min-height: 560px; padding: 18px; border-radius: 26px; background: var(--black); color: var(--white); box-shadow: 0 30px 70px rgba(24, 23, 23, .28); scroll-margin-top: 84px; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 2px 4px 14px; border-bottom: 1px solid rgba(255, 255, 255, .13); }
.chat-head b { display: block; font-size: 15px; font-weight: 600; line-height: 1.25; }
.chat-head span:not(.ring) { display: block; font-size: 13px; color: var(--ink-4); line-height: 1.3; }
.ring { width: 30px; height: 30px; flex: none; border: 4px solid var(--red-light); border-radius: 50%; }
.chat-log { position: relative; flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 16px 2px; overscroll-behavior: contain; }
.msg { max-width: 92%; padding: 11px 14px; border-radius: 16px; font-size: 15px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.agent { align-self: flex-start; background: #2a2929; border-bottom-left-radius: 5px; }
.msg.user { align-self: flex-end; background: var(--red); border-bottom-right-radius: 5px; animation: rise .22s ease both; }
.msg.error { color: #ffc3ca; }
.msg.typing { min-width: 56px; min-height: 44px; }
.msg.typing::after { content: ""; display: block; width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: var(--white); box-shadow: 14px 0 0 var(--ink-4), 28px 0 0 var(--ink-3); animation: pulse 1s ease-in-out infinite; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }
@keyframes pulse { 50% { opacity: .35; } }
.presets { display: flex; gap: 7px; padding-bottom: 12px; overflow-x: auto; scrollbar-width: none; }
.presets::-webkit-scrollbar { display: none; }
.preset { flex: none; min-height: 38px; padding: 7px 12px; border: 1px solid rgba(255, 255, 255, .24); border-radius: 19px; background: none; color: var(--white); font: 500 14px Manrope, sans-serif; cursor: pointer; transition: background .15s, border-color .15s; }
.preset:hover:not(:disabled) { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .5); }
.preset:disabled { opacity: .45; cursor: default; }
.chat-cta { display: block; margin-bottom: 10px; padding: 11px 14px; border-radius: 10px; background: var(--white); color: var(--black); font-size: 15px; font-weight: 600; text-decoration: none; text-align: center; }
.chat-cta:hover { background: #f1d9dc; }
.chat-form { display: flex; gap: 8px; align-items: stretch; }
.chat-form textarea { flex: 1; min-width: 0; resize: none; padding: 11px 13px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 12px; background: #242323; color: var(--white); font: 400 16px/1.4 Manrope, sans-serif; }
.chat-form textarea::placeholder { color: var(--ink-4); }
.send { width: 54px; flex: none; border: 0; border-radius: 12px; background: var(--red); color: var(--white); font: 600 22px Manrope, sans-serif; cursor: pointer; }
.send:hover:not(:disabled) { background: var(--red-light); }
.send:disabled { opacity: .5; cursor: default; }
.chat-note { margin-top: 10px; font-size: 12px; line-height: 1.45; color: var(--ink-4); }

.tasks, .limits { padding: var(--section) 0; background: var(--soft); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.card { position: relative; display: flex; flex-direction: column; min-height: 300px; padding: 26px; border-radius: 24px; background: var(--white); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(24, 23, 23, .08); }
.card-wide { grid-column: span 2; }
.card-tag { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--red); }
.card h3 { margin-top: 10px; max-width: 16em; font-size: clamp(22px, 2vw, 27px); font-weight: 500; line-height: 1.15; letter-spacing: -.015em; }
.card-chat { display: flex; flex-direction: column; gap: 8px; margin-top: auto; padding-top: 26px; }
.b { max-width: 88%; padding: 10px 13px; border-radius: 15px; font-size: 14.5px; line-height: 1.45; }
.b-me { align-self: flex-end; background: var(--red); color: var(--white); border-bottom-right-radius: 4px; }
.b-agent { align-self: flex-start; background: var(--soft); color: var(--black); border-bottom-left-radius: 4px; }
.b-voice { display: flex; align-items: center; gap: 10px; }
.b-cap { align-self: flex-end; margin-top: -2px; font-size: 13px; color: var(--ink-4); }
.wave { display: flex; align-items: center; gap: 3px; height: 22px; }
.wave i { width: 3px; border-radius: 2px; background: rgba(255, 255, 255, .85); height: 30%; }
.wave i:nth-child(3n) { height: 85%; } .wave i:nth-child(4n+1) { height: 55%; } .wave i:nth-child(5n+2) { height: 100%; } .wave i:nth-child(7n) { height: 40%; }
.card-dark { background: var(--black); color: var(--white); }
.card-dark::before { content: ""; position: absolute; right: -90px; top: -90px; width: 260px; height: 260px; border: 26px solid var(--red); border-radius: 50%; opacity: .5; pointer-events: none; }
.card-dark .card-tag { color: var(--red-light); }
.card-dark h3 { position: relative; font-size: clamp(28px, 3vw, 40px); }
.card-dark .b-agent { background: #2a2929; color: var(--white); }
.card-dark .card-chat { max-width: 560px; }
.card-more { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); }
.card-more:hover { box-shadow: inset 0 0 0 1.5px var(--ink-4); }
.card-more ul { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.card-more li { padding: 7px 12px; border-radius: 17px; background: var(--white); font-size: 14px; color: var(--ink-2); }
.more-link { margin-top: auto; padding-top: 22px; font-weight: 600; color: var(--red); text-decoration: none; }
.more-link:hover { text-decoration: underline; }

.path { padding: var(--section) 0; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); counter-reset: none; }
.step { position: relative; padding-top: 20px; border-top: 2px solid var(--black); }
.num { display: grid; place-items: center; width: 40px; height: 40px; border: 3px solid var(--red); border-radius: 50%; font-size: 16px; font-weight: 600; color: var(--red); }
.step h3 { margin-top: 18px; font-size: 21px; font-weight: 600; letter-spacing: -.01em; line-height: 1.2; }
.step p { margin-top: 10px; font-size: 15px; color: var(--ink-2); }
.promise { max-width: 760px; margin: clamp(32px, 4vw, 48px) 0 24px; padding: 20px 24px; border-left: 4px solid var(--red); background: var(--soft); font-size: 17px; }
.promise b { font-weight: 600; }

.price { padding: var(--section) 0; background: var(--black); color: var(--white); }
.price .eyebrow { color: var(--red-light); }
.price-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 88px); }
.sum { margin-top: 18px; font-size: clamp(52px, 7.4vw, 96px); line-height: 1; font-weight: 500; letter-spacing: -.035em; white-space: nowrap; }
.sum-second { margin-top: 34px; font-size: clamp(34px, 4.2vw, 54px); letter-spacing: -.025em; }
.sum-note { margin-top: 12px; max-width: 28em; color: #d1d1d1; font-size: 16px; }
.included h3, .limit-grid h3 { font-size: 21px; font-weight: 600; letter-spacing: -.01em; }
.included { align-self: end; }
.included li { padding: 15px 0; border-top: 1px solid rgba(255, 255, 255, .16); font-size: 16px; color: #e3e3e3; }
.included ul { margin-top: 18px; }
.more { padding-top: 15px; border-top: 1px solid rgba(255, 255, 255, .16); font-size: 15px; color: var(--ink-4); }

.limit-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.limit-grid > div { padding: 26px; border-radius: 20px; background: var(--white); }
.limit-grid p { margin-top: 12px; font-size: 15px; color: var(--ink-2); }

.owner { position: relative; isolation: isolate; padding: var(--section) 0; overflow: hidden; }
.owner-grid { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.owner-photo { position: relative; margin: 0; }
.owner-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 28px; box-shadow: 0 26px 60px rgba(24, 23, 23, .16); }
.owner-text { max-width: 560px; }
.owner-text p:not(.eyebrow) { margin-top: 16px; color: var(--ink-2); font-size: 18px; }
.owner-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.foot { padding: 24px 0 32px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-3); }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 20px; }

@media (max-width: 1040px) {
  .owner-grid { grid-template-columns: minmax(0, 320px) minmax(0, 1fr); }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .chat { height: 640px; max-width: 720px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-wide { grid-column: span 2; }
  .steps, .limit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .price-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .links { display: none; }
  .bar-row { justify-content: space-between; height: 60px; }
  .hero::before { width: 420px; height: 420px; right: -170px; top: -90px; border-width: 34px; }
  .hero { padding-top: 32px; }
  .actions .btn { width: 100%; }
  .chat { height: min(720px, calc(100vh - 76px)); min-height: 600px; padding: 14px; border-radius: 22px; }
  .chat-form textarea { height: 46px; }
  .chat-note { font-size: 11.5px; }
  .cards, .steps, .limit-grid { grid-template-columns: minmax(0, 1fr); }
  .card-wide { grid-column: auto; }
  .card { min-height: 0; padding: 22px; }
  .limit-grid > div { padding: 22px; }
  .owner-grid { grid-template-columns: minmax(0, 1fr); }
  .owner-photo { max-width: 360px; }
  .owner-actions, .owner-actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
