/* anyskills.app: публичный сайт английской версии (apps/intl).
   Цвета и знак AnySkills: лайм на тёмном, как у кабинета и anyskills.ru.
   Шрифт Inter со своего сервера, без внешних запросов. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../ui2/fonts/inter-latin.65850a373e25.woff2") format("woff2");
}

:root {
  --ink: #0a0f17;
  --text: #1b2130;
  --muted: #545d70;
  --line: #e4e8ee;
  --ground: #f4f6f8;
  --lime: #c1f742;
  --lime-soft: #f0fdd0;
  --link: #3f6212;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #ffffff;
  color: var(--text);
  font: 400 16px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); }
a:hover { color: var(--ink); }
img, svg { display: block; }
h1, h2, h3 { color: var(--ink); margin: 0; text-wrap: balance; }
p { margin: 0; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid #65a30d; outline-offset: 2px; }

/* шапка */
.top { border-bottom: 1px solid var(--line); background: #fff; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.brand svg { width: 32px; height: 32px; }
.nav { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.nav a { color: #3b4256; text-decoration: none; font-weight: 600; font-size: 15px; }
.nav a:hover { color: var(--ink); }

/* кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 12px; border: 1px solid transparent; font: inherit; font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer; transition: transform 120ms ease-out, background-color 150ms ease; }
.btn:active { transform: scale(0.98); }
.btn-lime { background: var(--lime); color: var(--ink); }
.btn-lime:hover { background: #b3ec2c; color: var(--ink); }
.btn-line { background: #fff; color: var(--ink); border-color: #cfd6e0; }
.btn-line:hover { border-color: var(--ink); color: var(--ink); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 15px; }

/* первый экран */
.hero { background: var(--ground); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 56px; align-items: center; padding-top: 88px; padding-bottom: 96px; }
.tag { align-self: flex-start; background: var(--lime-soft); color: #365314; font-weight: 700; font-size: 13px; padding: 6px 12px; border-radius: 8px; }
.hero__copy { display: flex; flex-direction: column; gap: 24px; }
.hero h1 { font-size: clamp(36px, 5vw, 54px); line-height: 1.06; letter-spacing: -0.035em; font-weight: 800; }
.lead { font-size: 19px; color: #3b4256; max-width: 33em; }
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.small { font-size: 14px; color: var(--muted); }

.demo { display: flex; flex-direction: column; gap: 14px; }
.demo__card { background: #fff; border-radius: 18px; padding: 20px; box-shadow: 0 1px 2px rgba(10, 15, 23, 0.06), 0 12px 32px rgba(10, 15, 23, 0.08); }
.demo__card--dm { margin-left: 40px; }
.demo__label { font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }
.demo__line { display: flex; gap: 12px; margin-top: 14px; font-size: 14px; line-height: 1.5; }
.demo__line--reply { margin-left: 48px; margin-top: 12px; }
.demo__ava { width: 36px; height: 36px; border-radius: 50%; background: #f1d9c9; flex: none; }
.demo__ava--me { width: 28px; height: 28px; background: var(--ink); }
.demo__time { font-size: 12px; color: var(--muted); }
.demo__bubble { margin-top: 14px; background: var(--ground); border-radius: 16px 16px 16px 4px; padding: 14px 16px; font-size: 14px; line-height: 1.5; max-width: 320px; }
.demo__btn { margin-top: 8px; max-width: 320px; border: 1px solid #cfd6e0; border-radius: 12px; padding: 12px; text-align: center; font-weight: 700; font-size: 14px; color: var(--ink); }

/* разделы */
.section { padding: 96px 0; }
.section h2 { font-size: clamp(28px, 3.4vw, 38px); letter-spacing: -0.03em; font-weight: 800; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 40px; }
.step { display: flex; flex-direction: column; gap: 10px; }
.step b { font-size: 15px; color: #4d7c0f; }
.step h3 { font-size: 21px; font-weight: 700; }
.step p { color: #3b4256; }

.dark { background: var(--ink); color: #fff; }
.dark h2 { color: #fff; }
.dark .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.dark p { color: #c9cfdc; font-size: 17px; margin-top: 16px; }
.rules { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; font-size: 16px; line-height: 1.55; }
.rules li { display: flex; gap: 14px; }
.rules b { color: var(--lime); font-weight: 800; flex: none; }

.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.two p { color: #3b4256; font-size: 17px; margin-top: 12px; }
.price { background: var(--ground); border-radius: 18px; padding: 32px; display: flex; flex-direction: column; gap: 10px; }
.price__label { font-size: 14px; font-weight: 700; color: var(--muted); }
.price__big { font-size: 40px; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); line-height: 1.1; }

/* заявка */
.access { background: var(--lime-soft); border-radius: 22px; padding: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; align-items: end; }
.access__head { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 6px; }
.access__head h2 { font-size: 30px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink); }
.field input { min-height: 48px; border-radius: 10px; border: 1px solid #b8c2cf; padding: 0 14px; font: inherit; font-weight: 500; background: #fff; color: var(--text); }
.field input:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px rgba(101, 163, 13, 0.35); }
.field .err { color: #b42318; font-weight: 600; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.note { grid-column: 1 / -1; border-radius: 12px; padding: 14px 16px; font-weight: 600; }
.note--ok { background: #fff; color: #365314; }
.note--err { background: #fff; color: #b42318; }

/* документы */
.doc { padding: 64px 0 96px; }
.doc__grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; margin-top: 40px; }
.doc h1 { font-size: clamp(32px, 4vw, 44px); letter-spacing: -0.03em; font-weight: 800; }
.doc__date { color: var(--muted); font-size: 15px; margin-top: 10px; }
.toc { display: flex; flex-direction: column; gap: 10px; font-size: 14px; font-weight: 600; position: sticky; top: 24px; align-self: start; }
.toc a { text-decoration: none; }
.prose { max-width: 44em; display: flex; flex-direction: column; gap: 36px; color: #2a3042; }
.prose section { display: flex; flex-direction: column; gap: 10px; scroll-margin-top: 24px; }
.prose h2 { font-size: 22px; font-weight: 700; }
.prose ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }

/* подвал */
.foot { border-top: 1px solid var(--line); background: var(--ground); }
.foot .wrap { padding-top: 40px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 18px; }
.foot__links { display: flex; gap: 24px; flex-wrap: wrap; font-size: 15px; font-weight: 600; }
.foot p { font-size: 14px; color: #3b4256; max-width: 52em; }
.foot .tm { font-size: 13px; color: var(--muted); }

/* ошибка */
.err-page { min-height: 60vh; display: flex; align-items: center; }
.err-page .wrap { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.err-page b { font-size: 15px; color: var(--muted); }
.err-page h1 { font-size: 40px; letter-spacing: -0.03em; }

@media (max-width: 860px) {
  .hero .wrap, .dark .wrap, .two, .doc__grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .toc { display: none; }
  .nav__links { display: none; }
  .demo__card--dm { margin-left: 16px; }
  .section { padding: 64px 0; }
  .hero .wrap { padding-top: 56px; padding-bottom: 64px; }
  .access { padding: 28px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
