/* Сайт Winkl. Один файл стилей, без скриптов. */

@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(fonts/onest-cyrillic.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(fonts/onest-latin.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 {
  --navy-950: #0a1322;
  --navy-900: #0e1a30;
  --navy-800: #122341;
  --navy-700: #17305e;
  --blue: #5aa2ff;
  --blue-strong: #0b66c3;
  --blue-soft: #e8f1fd;
  --green: #35c97a;
  --ink: #101a2b;
  --text: #2a3648;
  --muted: #5a6779;
  --line: #dfe5ee;
  --bg: #ffffff;
  --tint: #f4f7fb;
  --on-dark: #eef3fb;
  --on-dark-muted: #a9b8cf;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 26, 43, .06), 0 12px 32px -12px rgba(16, 26, 43, .22);
  --font: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  font: 400 17px/1.6 var(--font);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, p, ul, figure, pre { margin: 0; }
ul { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1160px, 100% - 48px); margin-inline: auto; }
.wrap--narrow { width: min(820px, 100% - 48px); }
.mono { font-family: var(--mono); font-size: .92em; background: var(--blue-soft); padding: .1em .4em; border-radius: 6px; white-space: nowrap; }

.skip { position: absolute; left: 16px; top: -60px; z-index: 10; background: #fff; color: var(--ink); padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.skip:focus { top: 16px; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px;
  font: 600 17px/1 var(--font); text-decoration: none; white-space: nowrap;
  border-radius: 12px; border: 1px solid transparent;
  transition: background-color .15s, border-color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--blue); color: var(--navy-950); }
.btn--primary:hover { background: #7ab5ff; }
.btn--ghost { color: var(--on-dark); border-color: rgba(255, 255, 255, .28); }
.btn--ghost:hover { border-color: rgba(255, 255, 255, .6); background: rgba(255, 255, 255, .06); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 15px; border-radius: 10px; }

/* ---------- Первый экран ---------- */
.hero {
  color: var(--on-dark);
  background:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 100% 56px,
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 56px 100%,
    radial-gradient(120% 90% at 100% 0%, var(--navy-700) 0%, #0f1d38 55%, var(--navy-900) 100%);
  padding-bottom: 72px;
}
.top__row { display: flex; align-items: center; gap: 32px; padding: 22px 0; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo__mark { width: 32px; height: 32px; }
.logo__name { font-weight: 700; font-size: 22px; letter-spacing: -.02em; color: #fff; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { color: var(--on-dark-muted); text-decoration: none; font-size: 15px; font-weight: 500; padding: 6px 0; }
.nav a:hover { color: #fff; }

.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center; padding-top: 64px; }
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--blue-strong); margin-bottom: 14px; }
.eyebrow--light { color: var(--blue); }
h1 { font-size: clamp(38px, 5.2vw, 64px); line-height: 1.04; letter-spacing: -.035em; font-weight: 700; color: #fff; text-wrap: balance; }
.lead { margin-top: 24px; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: #c9d6ea; max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero__note { margin-top: 18px; font-size: 15px; color: var(--on-dark-muted); }

/* Картинка первого экрана: длинный адрес превращается в короткий, CRM получает переход */
.demo { position: relative; display: grid; gap: 14px; padding: 8px 0 8px 24px; }
.demo__card {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: var(--radius);
  padding: 20px 22px;
  backdrop-filter: blur(6px);
  animation: rise .6s both cubic-bezier(.2, .7, .2, 1);
}
.demo__card--event { animation-delay: .12s; margin-left: 44px; display: flex; gap: 14px; align-items: flex-start; background: #fff; color: var(--ink); border-color: #fff; box-shadow: 0 24px 48px -20px rgba(0, 0, 0, .6); }
.demo__card--stat { animation-delay: .24s; margin-right: 44px; }
.demo__label { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--on-dark-muted); }
.demo__label--to { margin-top: 16px; color: var(--blue); }
.demo__long { margin-top: 6px; font: 400 14px/1.5 var(--mono); color: #8fa1bd; overflow-wrap: anywhere; text-decoration: line-through; text-decoration-color: rgba(143, 161, 189, .55); }
.demo__short { margin-top: 6px; font: 600 clamp(19px, 2vw, 24px)/1.3 var(--mono); color: #fff; overflow-wrap: anywhere; }
.demo__host { color: var(--blue); }
.demo__dot { flex: none; width: 10px; height: 10px; margin-top: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(53, 201, 122, .2); }
.demo__event { font-weight: 700; font-size: 17px; color: var(--ink); }
.demo__meta { font-size: 14.5px; color: var(--text); margin-top: 2px; }
.demo__meta--dim { color: var(--muted); }
.demo__card--stat .demo__meta--dim { color: var(--on-dark-muted); }
.demo__bars { display: flex; align-items: flex-end; gap: 6px; height: 46px; margin-bottom: 12px; }
.demo__bars span { flex: 1; border-radius: 3px 3px 0 0; background: var(--blue); opacity: .9; }
.demo__bars span:nth-child(1) { height: 30%; } .demo__bars span:nth-child(2) { height: 52%; }
.demo__bars span:nth-child(3) { height: 38%; } .demo__bars span:nth-child(4) { height: 70%; }
.demo__bars span:nth-child(5) { height: 46%; } .demo__bars span:nth-child(6) { height: 88%; }
.demo__bars span:nth-child(7) { height: 60%; } .demo__bars span:nth-child(8) { height: 34%; }
.demo__bars span:nth-child(9) { height: 76%; } .demo__bars span:nth-child(10) { height: 100%; }
.demo__count { font-size: 16px; color: #dbe6f7; }
.demo__count b { font-size: 26px; font-weight: 700; color: #fff; margin-right: 4px; letter-spacing: -.02em; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 72px; border-top: 1px solid rgba(255, 255, 255, .14); }
.facts li { padding: 26px 24px 0 0; }
.facts li + li { padding-left: 24px; border-left: 1px solid rgba(255, 255, 255, .14); }
.facts b { display: block; font-size: 22px; font-weight: 700; letter-spacing: -.02em; color: #fff; }
.facts span { display: block; margin-top: 6px; font-size: 15px; line-height: 1.5; color: var(--on-dark-muted); }

/* ---------- Разделы ---------- */
.section { padding: 104px 0; }
.section--tint { background: var(--tint); }
.section--dark { background: radial-gradient(110% 120% at 0% 100%, var(--navy-700) 0%, #0f1d38 55%, var(--navy-900) 100%); color: #c9d6ea; }
.section--dark h2 { color: #fff; }
.section__head { max-width: 760px; margin-bottom: 48px; }
h2 { font-size: clamp(30px, 3.4vw, 42px); line-height: 1.12; letter-spacing: -.03em; font-weight: 700; color: var(--ink); text-wrap: balance; }
h3 { font-size: 18px; line-height: 1.3; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }

.feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; align-items: center; }
.feature--flip { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.feature--flip .feature__text { order: 2; }
.feature__text > p:not(.eyebrow):not(.soon) { margin-top: 20px; font-size: 18px; }
.ticks { margin-top: 26px; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 34px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .28em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--blue-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%230b66c3' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 10.5l2.6 2.6L14 7.6'/%3E%3C/svg%3E") center / 20px no-repeat;
}
.ticks--light li::before {
  background: rgba(90, 162, 255, .18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%235aa2ff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 10.5l2.6 2.6L14 7.6'/%3E%3C/svg%3E") center / 20px no-repeat;
}

.shot { border-radius: var(--radius); border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); overflow: hidden; }
.shot img { width: 100%; height: auto; }
.shot--clip { position: relative; max-height: 540px; }
.shot--clip::after { content: ""; position: absolute; inset: auto 0 0 0; height: 96px; background: linear-gradient(rgba(255, 255, 255, 0), #fff); pointer-events: none; }
.section--dark .shot { border-color: rgba(255, 255, 255, .16); box-shadow: 0 32px 64px -28px rgba(0, 0, 0, .7); }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { padding: 26px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: border-color .15s, box-shadow .15s; }
.card:hover { border-color: #c3d3ea; box-shadow: var(--shadow); }
.card__icon { width: 28px; height: 28px; margin-bottom: 18px; fill: none; stroke: var(--blue-strong); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card p { margin-top: 8px; font-size: 15.5px; line-height: 1.55; color: var(--muted); }

.soon { display: inline-flex; align-items: center; gap: 10px; margin-top: 32px; padding: 10px 16px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--on-dark); }
.soon__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }

/* ---------- Пример запроса ---------- */
.code { border-radius: var(--radius); background: var(--navy-900); color: #d5e0f2; box-shadow: var(--shadow); overflow: hidden; }
.code__bar { display: flex; align-items: center; gap: 7px; padding: 14px 18px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.code__bar span { width: 11px; height: 11px; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.code__bar b { margin-left: 10px; font-size: 13.5px; font-weight: 500; color: var(--on-dark-muted); }
.code pre { padding: 22px; overflow-x: auto; font: 400 14.5px/1.7 var(--mono); }
.code .k { color: var(--blue); font-weight: 600; }
.code .s { color: #9fe0b8; }
.code .c { color: #7f90ab; }

/* ---------- Вопросы ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; cursor: pointer; list-style: none; font-size: 19px; font-weight: 600; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 2px solid var(--blue-strong); border-bottom: 2px solid var(--blue-strong); transform: rotate(45deg) translate(-3px, -3px); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq details p { padding: 0 48px 24px 0; color: var(--text); }

/* ---------- Призыв и подвал ---------- */
.final { background: var(--navy-900); color: #c9d6ea; padding: 72px 0; }
.final__row { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.final h2 { color: #fff; }
.final p { margin-top: 10px; font-size: 18px; }

.foot { background: var(--navy-950); color: var(--on-dark-muted); font-size: 15px; padding: 56px 0 36px; }
.foot__grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
.foot__about { margin-top: 14px; max-width: 30em; }
.foot__col { display: grid; gap: 10px; align-content: start; }
.foot__col b { color: #fff; font-weight: 600; margin-bottom: 4px; }
.foot a { text-decoration: none; }
.foot a:hover { color: #fff; }
.foot__legal { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: 44px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13.5px; }
.foot__devon { display: inline-flex; align-items: center; gap: 10px; color: #fff; }
.foot__devon span { color: var(--on-dark-muted); }
.foot__devon svg { width: 76px; height: auto; }

/* ---------- Узкие экраны ---------- */
@media (max-width: 1000px) {
  .nav { display: none; }
  .top__row { justify-content: space-between; }
  .hero__grid { grid-template-columns: 1fr; gap: 44px; padding-top: 40px; }
  .demo { padding-left: 0; }
  .facts { grid-template-columns: repeat(2, 1fr); margin-top: 56px; }
  .facts li, .facts li + li { padding: 24px 20px 0 0; border-left: 0; }
  .facts li:nth-child(n + 3) { margin-top: 24px; border-top: 1px solid rgba(255, 255, 255, .14); }
  .section { padding: 72px 0; }
  .feature, .feature--flip { grid-template-columns: 1fr; gap: 36px; }
  .feature--flip .feature__text { order: 0; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .foot__grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap, .wrap--narrow { width: calc(100% - 32px); }
  .hero { padding-bottom: 48px; }
  .cta .btn { flex: 1 1 100%; }
  .demo__card--event { margin-left: 16px; }
  .demo__card--stat { margin-right: 16px; }
  .facts { grid-template-columns: 1fr; }
  .facts li:nth-child(n + 2) { margin-top: 20px; border-top: 1px solid rgba(255, 255, 255, .14); }
  .section { padding: 56px 0; }
  .section__head { margin-bottom: 32px; }
  .feature__text > p:not(.eyebrow):not(.soon) { font-size: 17px; }
  .shot--clip { max-height: 380px; }
  .cards { grid-template-columns: 1fr; gap: 14px; }
  .code pre { padding: 16px; font-size: 13px; }
  .faq summary { font-size: 17px; padding: 18px 0; }
  .faq details p { padding-right: 0; }
  .final { padding: 56px 0; }
  .final .btn { width: 100%; }
  .foot__grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .demo__card { animation: none; }
  .btn, .card, .faq summary::after { transition: none; }
}
