/* VELES — стили сайта. Токены сняты с кабинета veles-brief-master.pages.dev. */

:root {
  --bg: #fdf3ea;
  --surface: #ffffff;
  --surface-warm: #fffaf6;
  --text: #2b2b2b;
  --text-soft: #565656;
  --muted: #8a8378;
  --border: #eee2d5;
  --accent: #ff621b;
  --accent-soft: #fdebe2;
  --radius: 12px;
  --radius-sm: 8px;

  --tile-1: #fdebe2;
  --tile-2: #eaf3ee;
  --tile-3: #f1eef8;

  --font-display: "FeatureHeadline", Georgia, "Times New Roman", serif;
  --font-body: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;

  --maxw: 1200px;
  --pad: 32px;
}

* { box-sizing: border-box; }

html, body { overflow-x: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 400; letter-spacing: -.02em; margin: 0; }
h1 { font-size: 54px; line-height: 1.05; }
h2 { font-size: 44px; line-height: 1.08; text-wrap: balance; }
h3 { font-size: 24px; line-height: 1.2; }
p { margin: 0; }
.lead { color: var(--text-soft); }

.eyebrow {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent);
  background: var(--accent-soft); display: inline-block;
  padding: 5px 10px; border-radius: 6px;
}

.grid-paper {
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 26px 26px;
}

/* ---------- Шапка ---------- */
.nav {
  position: sticky; top: 0; z-index: 30;
  background: rgba(253, 243, 234, .9);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-in {
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad);
  height: 68px; display: flex; align-items: center; gap: 40px;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; letter-spacing: -.01em; }
.logo-mark {
  width: 28px; height: 28px; border-radius: var(--radius-sm);
  background: var(--accent); color: #fff;
  display: grid; place-items: center; font-size: 14px; font-weight: 700;
}
.nav-links { display: flex; gap: 26px; font-size: 14.5px; color: var(--text-soft); }
.nav-links a { color: inherit; text-decoration: none; }
.nav-links a:hover { color: var(--text); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 18px; font-size: 14.5px; }
.nav-right > a:first-child { color: var(--text-soft); text-decoration: none; }
.nav-burger { display: none; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 46px; padding: 0 22px; border-radius: var(--radius);
  font-size: 15px; font-weight: 500; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background .14s ease, transform .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #ef5a17; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface-warm); }
.btn-dark { background: var(--text); color: #fff; }
.btn-dark:hover { background: #1d1d1d; }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }

/* ---------- Герой ---------- */
.hero { padding: 56px 0 0; }
.hero-in {
  max-width: var(--maxw); margin: 0 auto; padding: 0 0 0 var(--pad);
  display: grid; grid-template-columns: minmax(0, 500px) 1fr;
  gap: 44px; align-items: center;
}
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px; padding: 6px 16px 6px 7px; font-size: 13.5px; color: var(--text-soft);
  text-decoration: none;
}
.pill b { background: var(--accent-soft); color: var(--accent); border-radius: 999px; padding: 3px 9px; font-size: 12px; }
.hero h1 { margin-top: 22px; }
.hero .lead { font-size: 18px; margin-top: 18px; max-width: 46ch; }

.benefits { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 10px; }
.benefits li { display: flex; gap: 11px; align-items: flex-start; font-size: 15.5px; color: var(--text); }
.benefits svg { flex: none; width: 19px; height: 19px; margin-top: 2px; color: var(--accent); }

.cta { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }

.hero-visual { position: relative; margin-right: min(0px, calc(-50vw + var(--maxw) / 2)); }
.hero-visual .grid-paper { position: absolute; inset: -30px 0 -30px 24px; opacity: .85; }
.shot {
  position: relative; border: 1px solid var(--border); border-right: none;
  border-radius: 16px 0 0 16px; background: var(--surface); overflow: hidden;
  box-shadow: 0 30px 70px -34px rgba(43, 43, 43, .34);
}
.shot-bar { height: 36px; display: flex; align-items: center; gap: 6px; padding: 0 14px; border-bottom: 1px solid var(--border); background: var(--surface-warm); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--border); }
.shot-crop { height: 560px; overflow: hidden; }
.shot-crop img { display: block; width: 178%; max-width: none; }
.float {
  position: absolute; left: -26px; bottom: 54px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 12px 16px; box-shadow: 0 18px 36px -18px rgba(43, 43, 43, .34); font-size: 13.5px;
}
.float b { display: block; font-size: 15px; }
.float span { color: var(--muted); }

/* ---------- Секции ---------- */
section { scroll-margin-top: 80px; }
.band { padding: 96px 0; }
.band-warm { background: var(--surface-warm); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.sec-head { max-width: 760px; }
.sec-head h2 { margin-top: 18px; }
.sec-head .lead { margin-top: 18px; font-size: 17px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* Строка-факт вместо логотипов клиентов */
.claim { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface-warm); }
.claim .wrap { padding-top: 34px; padding-bottom: 34px; }
.claim p { font-family: var(--font-display); font-size: 27px; line-height: 1.3; text-align: center; letter-spacing: -.015em; }

/* Плитки платформы */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.tile { border: 1px solid var(--border); border-radius: 16px; overflow: hidden; background: var(--surface); display: flex; flex-direction: column; min-height: 300px; }
.tile h3 { padding: 22px 24px 0; }
.tile .art { flex: 1; margin-top: 18px; }
.tile:nth-child(1) .art { background-color: var(--tile-1); }
.tile:nth-child(2) .art { background-color: var(--tile-2); }
.tile:nth-child(3) .art { background-color: var(--tile-3); }
.tile p { padding: 18px 24px 22px; font-size: 14.5px; color: var(--text-soft); border-top: 1px solid var(--border); }

/* Аккордеон «почему выбирают» */
.acc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; margin-top: 44px; }
details.acc { border-bottom: 1px solid var(--border); }
details.acc summary {
  list-style: none; cursor: pointer; padding: 20px 0;
  font-family: var(--font-display); font-size: 25px; letter-spacing: -.01em;
  display: flex; align-items: center; gap: 14px;
}
details.acc summary::-webkit-details-marker { display: none; }
details.acc summary::after {
  content: "+"; margin-left: auto; font-family: var(--font-body);
  font-size: 22px; color: var(--muted); line-height: 1;
}
details.acc[open] summary::after { content: "–"; }
details.acc .acc-body { padding: 0 0 22px; font-size: 15.5px; color: var(--text-soft); max-width: 52ch; }
.acc-shot { border: 1px solid var(--border); border-radius: 16px; overflow: hidden; background: var(--surface); box-shadow: 0 24px 54px -30px rgba(43,43,43,.3); }
.acc-shot img { display: block; width: 100%; }

/* Бенто цифр рынка */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 44px; }
.stat { border: 1px solid var(--border); border-radius: 16px; padding: 26px 24px 28px; background: var(--surface); }
.stat:nth-child(1) { background: var(--tile-1); }
.stat:nth-child(2) { background: var(--tile-2); }
.stat:nth-child(3) { background: var(--tile-3); }
.stat b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 46px; line-height: 1; letter-spacing: -.025em; }
.stat span { display: block; margin-top: 12px; font-size: 14.5px; color: var(--text-soft); }
.src { margin-top: 22px; font-size: 13px; color: var(--muted); }

/* Вкладки «для кого» */
.tabs { margin-top: 40px; }
.tabs input { position: absolute; opacity: 0; pointer-events: none; }
.tab-row { display: flex; gap: 10px; flex-wrap: wrap; }
.tab-row label {
  cursor: pointer; border: 1px solid var(--border); background: var(--surface);
  border-radius: 999px; padding: 10px 20px; font-size: 14.5px; color: var(--text-soft);
}
.tab-row label:hover { background: var(--surface-warm); }
.panels { margin-top: 24px; }
.panel { display: none; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.panel-in { padding: 34px 36px; background: var(--surface); }
.panel h3 { font-size: 28px; }
.panel p { margin-top: 12px; color: var(--text-soft); max-width: 62ch; font-size: 15.5px; }
#t1:checked ~ .panels #p1,
#t2:checked ~ .panels #p2,
#t3:checked ~ .panels #p3 { display: block; }
#t1:checked ~ .tab-row label[for="t1"],
#t2:checked ~ .tab-row label[for="t2"],
#t3:checked ~ .tab-row label[for="t3"] { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Бренд под контролем */
.brandguard { position: relative; overflow: hidden; }
.brandguard .grid-paper { position: absolute; inset: 0; opacity: .6; }
.brandguard .wrap { position: relative; text-align: center; padding-top: 96px; padding-bottom: 96px; }
.brandguard h2 { max-width: 20ch; margin: 18px auto 0; }
.brandguard .lead { max-width: 64ch; margin: 20px auto 0; font-size: 17px; }
.brandguard .cta { justify-content: center; }

/* Финальный призыв */
.final { text-align: center; }
.final h2 { font-size: 52px; max-width: 22ch; margin: 0 auto; }
.final .lead { margin: 20px auto 0; max-width: 56ch; font-size: 17px; }
.final .cta { justify-content: center; margin-top: 30px; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: 380px 1fr; gap: 56px; align-items: start; }
.faq-list { border-top: 1px solid var(--border); }
details.faq { border-bottom: 1px solid var(--border); }
details.faq summary {
  list-style: none; cursor: pointer; padding: 20px 0; font-size: 17px; font-weight: 500;
  display: flex; gap: 14px; align-items: center;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; margin-left: auto; font-size: 20px; color: var(--muted); }
details.faq[open] summary::after { content: "–"; }
details.faq p { padding: 0 0 22px; color: var(--text-soft); font-size: 15.5px; max-width: 70ch; }

/* Подвал */
.footer { background: var(--text); color: #efe9e2; padding: 64px 0 40px; }
.footer a { color: #cfc7be; text-decoration: none; font-size: 14.5px; }
.footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: #8d8378; margin: 0 0 16px; font-weight: 500; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer .logo { color: #fff; }
.footer .about { margin-top: 16px; font-size: 14px; color: #a89e93; max-width: 34ch; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid #3c3c3c; display: flex; gap: 24px; flex-wrap: wrap; font-size: 13.5px; color: #8d8378; }

/* ---------- Адаптив ---------- */
@media (max-width: 980px) {
  h1 { font-size: 40px; }
  h2 { font-size: 34px; }
  .nav-links { display: none; }
  .hero { padding-top: 40px; }
  .hero-in { grid-template-columns: 1fr; padding-right: var(--pad); gap: 36px; }
  .hero-visual { margin-right: calc(-1 * var(--pad)); }
  .shot-crop { height: 380px; }
  .shot-crop img { width: 150%; }
  .float { left: 12px; bottom: 20px; }
  .tiles, .bento { grid-template-columns: 1fr; }
  .acc-grid, .faq-grid { grid-template-columns: 1fr; gap: 32px; }
  .band { padding: 64px 0; }
  .claim p { font-size: 21px; }
  .final h2 { font-size: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 560px) {
  :root { --pad: 20px; }
  h1 { font-size: 33px; }
  .hero .lead { font-size: 16.5px; }
  .stat b { font-size: 38px; }
  .footer-grid { grid-template-columns: 1fr; }
}
