/* Страница проекта Dela. Токены из приложения (стиль «Бумага»): .web/DESIGN.md */
@font-face {
  font-family: 'Manrope Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url('fonts/manrope-cyrillic-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Manrope Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url('fonts/manrope-latin-wght-normal.woff2') format('woff2-variations');
  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 {
  --bg: #f6f3ec;
  --surface: #fffdf8;
  --text: #25221c;
  --muted: #6c655a;
  --border: #e6dfd1;
  --accent: #2e7d5b;
  --on-accent: #ffffff;
  --shadow: 0 1px 2px rgb(60 50 30 / 0.06), 0 4px 14px rgb(60 50 30 / 0.05);
  --radius: 10px;
  --radius-card: 14px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a1916;
    --surface: #24221e;
    --text: #efeae0;
    --muted: #bcb5a7;
    --border: #36332d;
    --accent: #6fcf9b;
    --on-accent: #10201a;
    --shadow: 0 1px 0 rgb(255 255 255 / 0.03) inset;
    color-scheme: dark;
  }
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Manrope Variable', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-underline-offset: 3px;
}

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

.text {
  max-width: 68ch;
}

.nw {
  white-space: nowrap;
}

/* шапка */
.top {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  color: var(--text);
  text-decoration: none;
}

.top nav {
  margin-left: auto;
  display: flex;
  gap: 18px;
  font-size: 16px;
}

.top nav a {
  color: var(--muted);
  text-decoration: none;
}

.top nav a:hover {
  color: var(--text);
}

/* первый экран */
.hero {
  padding-top: 40px;
  padding-bottom: 24px;
}

h1 {
  font-size: clamp(40px, 6.4vw, 72px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
  max-width: 15ch;
}

.lead {
  font-size: clamp(18px, 2vw, 21px);
  color: var(--muted);
  margin: 0 0 28px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}

.btn {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: var(--radius);
  font-weight: 700;
  text-decoration: none;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
}

.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}

.btn:focus-visible,
a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.shot {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 2px 4px rgb(60 50 30 / 0.06), 0 8px 20px rgb(60 50 30 / 0.08);
}

/* секции */
section.wrap {
  padding-top: 64px;
  padding-bottom: 8px;
}

h2 {
  font-size: clamp(28px, 3.4vw, 38px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
}

h3 {
  font-size: 19px;
  margin: 0 0 4px;
}

.features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.features li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 2px 14px;
  background: var(--surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  padding: 16px 20px 16px 16px;
}

/* Как выполненная задача в приложении: зелёный кружок с галочкой. */
.features li::before {
  content: '';
  grid-row: span 2;
  width: 22px;
  height: 22px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.5 12.5l3.6 3.6 7.4-7.6'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.features p {
  margin: 0;
  color: var(--muted);
  font-size: 16.5px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16.5px;
}

th,
td {
  text-align: left;
  padding: 12px 10px 12px 0;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

th {
  color: var(--muted);
  font-weight: 600;
}

code,
pre {
  font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
  font-size: 15px;
}

pre {
  background: var(--surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  padding: 16px 18px;
  overflow-x: auto;
  line-height: 1.5;
}

.support {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 18px 0;
}

footer {
  margin-top: 64px;
  padding: 28px 0 40px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 15.5px;
}

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

@media (max-width: 760px) {
  body {
    font-size: 17px;
  }

  .top nav {
    display: none;
  }

  .hero {
    padding-top: 16px;
  }

  .features {
    grid-template-columns: 1fr;
  }

  .shot {
    width: min(300px, 80vw);
    margin: 0 auto;
    border-radius: 26px;
  }

  th:nth-child(3),
  td:nth-child(3) {
    display: none;
  }
}
