:root {
  --ink: #0d0d0d;
  --paper: #ffffff;
  --paper-alt: #f4f2ee;
  --line: #e2ded6;
  --accent: #e8542a;
  --accent-ink: #ffffff;
  --muted: #6b6459;
  --radius: 2px;
  --font-body: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-head: "Manrope", ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 800; margin: 0 0 .5em; line-height: 1.15; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; letter-spacing: .02em; text-decoration: none; color: var(--ink); }
.logo-sep { color: var(--accent); font-weight: 400; }
.logo-img { height: 18px; width: auto; display: block; }
.logo-img-footer { height: 16px; margin: 0 0 8px; }
.nav { display: flex; gap: 28px; }
.nav a { text-decoration: none; font-size: .92rem; font-weight: 500; color: var(--ink); opacity: .75; }
.nav a:hover { opacity: 1; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 26px; border-radius: var(--radius);
  font-weight: 700; font-size: .95rem; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; transition: transform .12s ease, background .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-outline { border-color: var(--accent); color: var(--accent); background: transparent; }
.btn-outline:hover { background: var(--accent); color: #fff; }
.btn-small { padding: 10px 18px; font-size: .85rem; }
.btn-block { width: 100%; }

/* Hero */
.hero { padding: 32px 0 20px; background: var(--paper); }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--accent); margin: 0 0 14px; }
.hero h1 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); }
.lead { color: var(--muted); font-size: 1.05rem; max-width: 56ch; }
.hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.hero-art { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }

/* Progress widget */
.progress-section { padding: 0 0 32px; }
.progress-card { background: var(--ink); color: #fff; border-radius: 4px; padding: 32px; }
.progress-top { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; margin-bottom: 20px; }
.progress-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.55); margin: 0 0 6px; }
.progress-amount { font-family: var(--font-head); font-size: 1.7rem; font-weight: 800; margin: 0; }
.progress-amount--sm { font-size: 1.15rem; }
.progress-of { font-size: 1rem; font-weight: 500; color: rgba(255,255,255,.6); }
.progress-bar-track { position: relative; height: 10px; background: rgba(255,255,255,.15); border-radius: 6px; margin-top: 22px; }
.progress-bar-fill { height: 100%; background: var(--accent); border-radius: 6px; transition: width .4s ease; }
.progress-bar-milestone { position: absolute; top: -4px; bottom: -4px; width: 2px; background: #fff; transform: translateX(-50%); }
.progress-bar-milestone-label { position: absolute; top: -22px; left: 50%; transform: translateX(-50%); font-size: .7rem; font-weight: 700; color: rgba(255,255,255,.8); white-space: nowrap; }
.progress-note { color: rgba(255,255,255,.55); font-size: .85rem; margin: 14px 0 0; }

/* Sections */
.section { padding: 32px 0; }
.section-alt { background: var(--paper-alt); }
.section-dark { background: var(--ink); color: #fff; }
.section-dark .section-sub { color: rgba(255,255,255,.65); }
.section-title { font-size: clamp(1.5rem, 2.4vw, 2.1rem); }
.section-sub { color: var(--muted); font-size: 1.02rem; margin-bottom: 40px; }

/* Problem / solution */
.problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 56px; }
.problem-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.problem-card h3 { font-size: 1.05rem; }
.problem-card p { color: var(--muted); font-size: .92rem; margin: 0; }

.solution-title { font-size: 1.4rem; margin-bottom: 24px; }
.solution-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 32px; }
.solution-card { padding: 20px 0; border-top: 2px solid var(--ink); }
.solution-num { font-family: var(--font-head); font-weight: 800; color: var(--accent); font-size: .85rem; }
.solution-card h4 { font-size: 1.02rem; margin: 8px 0 6px; }
.solution-card p { color: var(--muted); font-size: .88rem; margin: 0; }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-num { font-family: var(--font-head); font-weight: 800; font-size: 1.6rem; }
.stat-label { color: var(--muted); font-size: .85rem; }

.market-note { color: var(--muted); font-size: .9rem; }
.market-note strong { color: var(--ink); }

/* Use of funds */
.funds-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.funds-card { background: var(--paper); border-radius: var(--radius); padding: 26px; border: 1px solid var(--line); }
.funds-card h4 { font-size: 1.02rem; }
.funds-card p { color: var(--muted); font-size: .9rem; margin: 0; }

/* Terms table */
.table-wrap { overflow-x: auto; margin-bottom: 32px; }
.terms-table { width: 100%; border-collapse: collapse; min-width: 480px; }
.terms-table th, .terms-table td { text-align: left; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.terms-table th { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.terms-table td { font-weight: 600; }
.pill { display: inline-block; background: var(--ink); color: #fff; font-family: var(--font-head); font-weight: 800; padding: 4px 12px; border-radius: 100px; font-size: .95rem; }

.convert-card { background: #fff; border: 2px solid var(--accent); border-radius: 4px; padding: 28px; margin-bottom: 40px; }
.convert-card h3 { font-size: 1.15rem; }
.convert-card p { margin: 0 0 6px; color: var(--muted); }
.convert-example { color: var(--ink) !important; }
.convert-example strong { color: var(--accent); font-size: 1.15rem; }

.timeline { display: grid; gap: 20px; margin-bottom: 40px; }
.timeline-step { display: flex; gap: 18px; align-items: flex-start; }
.timeline-dot { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 800; font-size: .9rem; }
.timeline-step h4 { font-size: 1rem; margin-bottom: 4px; }
.timeline-step p { color: var(--muted); margin: 0; font-size: .92rem; }

.contract-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; background: var(--paper-alt); border-radius: var(--radius); padding: 22px 26px; margin-bottom: 28px; }
.contract-note p { margin: 0; font-weight: 600; }

.disclaimer { color: var(--muted); font-size: .82rem; border-top: 1px solid var(--line); padding-top: 18px; }

/* Deck */
.deck-wrap { text-align: left; }

/* Team */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.team-photo { display: block; width: 72px; height: 72px; border-radius: 50%; object-fit: cover; margin-bottom: 14px; background: var(--paper-alt); }
.team-card h4 { font-size: 1.02rem; margin-bottom: 2px; }
.team-role { color: var(--accent); font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; margin: 0 0 10px; }
.team-card p:not(.team-role) { color: var(--muted); font-size: .9rem; margin: 0; }

/* Apply form */
.apply-text .section-title, .apply-text .section-sub { margin-bottom: 20px; }

.apply-wrap { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: 48px; align-items: start; }

.requisites-block { display: flex; flex-direction: column; gap: 16px; }
.requisites-block h3 { font-size: 1.1rem; margin: 0; }
.requisites-row {
  display: flex; align-items: center; gap: 16px;
  border: 1.5px dashed rgba(255,255,255,.28); border-radius: 8px; padding: 16px; text-align: left;
}
.requisites-qr { flex: none; }
.requisites-qr-label { display: none; }
.requisites-qr-hint { margin: 0; font-size: .82rem; color: var(--accent); font-weight: 600; }
.requisites-row p { margin: 0; color: rgba(255,255,255,.5); font-size: .88rem; }
.requisites-details { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: baseline; }
.requisites-details div { display: contents; }
.requisites-details dt { font-size: .72rem; color: rgba(255,255,255,.4); font-weight: 600; white-space: nowrap; }
.requisites-details dd { margin: 0; font-size: .82rem; color: rgba(255,255,255,.85); font-weight: 500; word-break: break-all; }
.requisites-note { color: rgba(255,255,255,.55); font-size: .88rem; margin: 0; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.apply-form { min-width: 0; background: #16140f; border-radius: 6px; padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.form-row { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.form-row-2 { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 16px; }
.form-row-2 > div { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.apply-form label { font-size: .82rem; color: rgba(255,255,255,.7); font-weight: 600; }
.apply-form input, .apply-form select, .apply-form textarea {
  width: 100%; min-width: 0; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.18); color: #fff;
  border-radius: var(--radius); padding: 12px 14px; font-family: var(--font-body); font-size: .95rem;
}
.apply-form input:focus, .apply-form select:focus, .apply-form textarea:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
.checkbox-row { display: flex; align-items: center; gap: 10px; font-size: .88rem; color: rgba(255,255,255,.75); }
.checkbox-row input { width: 16px; height: 16px; flex: none; }
/* Согласие — обязательный пункт, поэтому оно читаемее двух
   необязательных строк над ним и переносится, а не жмётся в одну. */
.checkbox-row--consent { align-items: flex-start; flex-wrap: wrap; color: rgba(255,255,255,.9); }
.checkbox-row--consent input { margin-top: 3px; }
.checkbox-row--consent span { flex: 1; min-width: 0; }
.checkbox-row--consent a { color: #fff; text-decoration: underline; }
/* Ошибка вставляется сразу за инпутом, а читается последней — иначе она
   встаёт между галкой и её же подписью. */
.checkbox-row--consent .field-error { flex: 1 0 100%; order: 1; }
.form-status { min-height: 1.2em; font-size: .88rem; font-weight: 600; margin: 0; }
.form-status.ok { color: #6fd18a; }
.form-status.err { color: #ff8a6a; }
.form-ok { display: none; text-align: center; padding: 40px 20px; }
.form-ok h3 { font-size: 1.3rem; font-weight: 700; margin: 0 0 8px; color: var(--accent); }
.form-ok p { color: var(--accent); margin: 0; }
.form-fine { color: rgba(255,255,255,.4); font-size: .76rem; margin: 0; }
.apply-form input.is-invalid,
.apply-form textarea.is-invalid { border-color: #ff6b4a !important; background: rgba(255,107,74,.08) !important; }
.field-error { color: #ff8a6a; font-size: .8rem; font-weight: 600; margin-top: 5px; }

/* Cookie banner */
.cookie-banner { display:none; position:fixed; left:50%; bottom:24px; transform:translateX(-50%); z-index:80;
  background:rgba(13,13,13,.95); backdrop-filter:blur(6px); color:#fff; border-radius:999px;
  padding:14px 18px; box-shadow:0 8px 32px rgba(0,0,0,.28); align-items:center; gap:14px;
  white-space:nowrap; max-width:calc(100vw - 24px); }
.cookie-banner.is-visible { display:flex; }
.cookie-icon { font-size:20px; flex-shrink:0; }
.cookie-text { font-size:14px; line-height:1.5; color:rgba(255,255,255,.85); }
.cookie-text a { color:#fff; text-decoration:underline; }
.cookie-text a:hover { color:var(--accent); }
.cookie-text-short { display:none; }
/* «Отклонить» стоит рядом с «Принять», того же роста и с читаемым контрастом:
   отказ, спрятанный в серую подпись, согласием по своей воле не считается. */
.cookie-actions { display:flex; gap:8px; flex-shrink:0; }
.cookie-decline { background:transparent; color:#fff; border:1.5px solid rgba(255,255,255,.55); }
.cookie-decline:hover { border-color:#fff; background:rgba(255,255,255,.08); }

.requisites-accept { font-size:.78rem; color:rgba(255,255,255,.45); margin:0; }
.requisites-accept a { color:rgba(255,255,255,.65); text-decoration:underline; }
.requisites-accept a:hover { color:#fff; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
.logo-footer { margin: 0 0 6px; }
.footer-copy { color: var(--muted); font-size: .82rem; margin: 0; }
/* Реквизиты: <address> по умолчанию курсивный, а это то, что сверяют. */
.footer-legal { font-style: normal; color: var(--muted); font-size: .74rem; line-height: 1.5; margin: 6px 0 0; }
.footer-legal a { color: var(--muted); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { text-decoration: none; font-weight: 600; font-size: .9rem; }
.footer-links a:hover { color: var(--accent); }

/* Responsive — tablet 860px */
@media (max-width: 860px) {
  .nav { display: none; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-height: 420px; overflow: hidden; }
  .hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
  .solution-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .funds-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .apply-wrap { grid-template-columns: minmax(0,1fr); }
  .progress-top { flex-direction: column; gap: 12px; }
  .progress-amount { font-size: 1.4rem; }
}

/* Responsive — mobile 560px */
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  html { scroll-padding-top: 64px; }
  .header-inner { height: 56px; }
  .logo-img { height: 15px; }
  .btn-small { padding: 9px 14px; font-size: .82rem; }

  .hero { padding: 20px 0 12px; }
  .hero h1 { font-size: 1.75rem; }
  .lead { font-size: .95rem; }
  .hero-actions { gap: 10px; }
  .hero-actions .btn { padding: 12px 18px; font-size: .9rem; }
  .hero-art { max-height: 280px; }

  .progress-card { padding: 20px 16px; }
  .progress-amount { font-size: 1.2rem; }
  .progress-amount--sm { font-size: 1rem; }

  .section { padding: 24px 0; }
  .section-title { font-size: 1.4rem; }
  .section-sub { font-size: .95rem; margin-bottom: 24px; }

  .solution-grid { grid-template-columns: 1fr; gap: 12px; }
  .solution-title { font-size: 1.15rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stat-num { font-size: 1.3rem; }

  .funds-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }

  .apply-form { padding: 20px 16px; }
  .form-row-2 { grid-template-columns: minmax(0,1fr); }
  .convert-card { padding: 18px; }
  .contract-note { flex-direction: column; align-items: flex-start; }

  .footer-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-links { flex-wrap: wrap; gap: 12px 20px; }

  .cookie-banner { padding:12px 16px; gap:10px; bottom:12px; }
  .cookie-icon { display:none; }
  .cookie-text-full { display:none; }
  .cookie-text-short { display:block; font-size:13.5px; }
  .cookie-accept, .cookie-decline { padding:8px 14px; font-size:12.5px; }
}
