/* Сайт Plastinka: одна страница, без внешних шрифтов, CDN и трекеров. */

:root {
  --bg: #0b0b0c;
  --surface: #151517;
  --surface-2: #1d1d20;
  --line: #2a2a2e;
  --text: #f3f3f4;
  --muted: #a3a3ab;
  --accent: #fa2d48;
  --accent-hover: #ff4d64;
  --radius: 14px;
  --max: 1120px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Cantarell, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

a { color: var(--text); text-decoration-color: rgba(250, 45, 72, .6); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

img { display: block; max-width: 100%; height: auto; }

code, pre { font-family: ui-monospace, "Cascadia Code", "JetBrains Mono", Consolas, monospace; font-size: .88em; }
pre {
  margin: 0;
  padding: 16px 18px;
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  line-height: 1.55;
}
code { background: var(--surface-2); padding: .1em .35em; border-radius: 5px; }
pre code { background: none; padding: 0; }

.wrap { width: min(100% - 40px, var(--max)); margin-inline: auto; }

/* Шапка */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(11, 11, 12, .82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(42, 42, 46, .6);
}
.top .wrap { display: flex; align-items: center; gap: 24px; height: 60px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; text-decoration: none; }
.logo img { width: 30px; height: 30px; }
.top nav { display: flex; gap: 20px; margin-left: auto; font-size: 15px; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover { color: var(--text); }
.top nav .lang { color: var(--text); border: 1px solid var(--line); border-radius: 999px; padding: 2px 12px; }
@media (max-width: 720px) { .top nav .opt { display: none; } }

/* Первый экран */
.hero { padding: 72px 0 40px; text-align: center; }
.hero .icon { width: 104px; height: 104px; margin: 0 auto 22px; }
.hero h1 { margin: 0; font-size: clamp(34px, 5.4vw, 60px); line-height: 1.08; font-weight: 800; letter-spacing: -.02em; }
.hero h1 .brand { display: block; }
.hero h1 .sub { display: block; margin-top: 10px; font-size: .5em; line-height: 1.25; font-weight: 700; color: var(--muted); letter-spacing: -.01em; }
.lead { max-width: 640px; margin: 22px auto 0; font-size: 19px; color: var(--muted); }

.downloads { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 34px 0 14px; }
.btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  min-width: 170px;
  padding: 11px 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  text-decoration: none;
  line-height: 1.25;
  transition: background .15s, border-color .15s, transform .15s;
}
.btn b { font-size: 16px; }
.btn small { font-size: 12.5px; color: var(--muted); }
.btn:hover { color: var(--text); border-color: #3a3a40; background: var(--surface-2); transform: translateY(-1px); }
.btn.primary { background: var(--accent); border-color: var(--accent); }
.btn.primary small { color: rgba(255, 255, 255, .85); }
.btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
@media (prefers-reduced-motion: reduce) { .btn, .btn:hover { transition: none; transform: none; } }

.meta { margin: 0; font-size: 14.5px; color: var(--muted); }
.disclaimer { margin: 6px 0 0; font-size: 14.5px; color: var(--muted); }

.shot {
  margin: 44px auto 0;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .02);
  overflow: hidden;
  background: var(--surface);
}

/* Разделы */
section { padding: 56px 0; }
h2 { margin: 0 0 12px; font-size: clamp(28px, 3.6vw, 40px); line-height: 1.15; font-weight: 800; letter-spacing: -.015em; }
h3 { margin: 0 0 8px; font-size: 22px; line-height: 1.3; font-weight: 700; }
.section-lead { margin: 0 0 32px; max-width: 720px; color: var(--muted); }

.feature {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 40px;
  align-items: center;
  padding: 28px 0;
}
.feature:nth-of-type(even) { grid-template-columns: 7fr 5fr; }
.feature:nth-of-type(even) .text { order: 2; }
.feature p { margin: 0; color: var(--muted); }
.feature img { border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
@media (max-width: 860px) {
  .feature, .feature:nth-of-type(even) { grid-template-columns: 1fr; gap: 18px; }
  .feature:nth-of-type(even) .text { order: 0; }
}

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; margin-top: 28px; }
.card { padding: 20px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.card h3 { font-size: 18px; margin-bottom: 6px; }
.card p { margin: 0; font-size: 15.5px; color: var(--muted); }

/* Сравнение */
.table-wrap { overflow-x: auto; }
table { width: 100%; max-width: 760px; border-collapse: collapse; font-size: 16px; }
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); }
thead th { color: var(--muted); font-weight: 600; font-size: 14.5px; }
td.ours { font-weight: 700; color: var(--text); }
td:last-child { color: var(--muted); }
.fine { margin: 16px 0 0; max-width: 760px; font-size: 14.5px; color: var(--muted); }

/* Linux */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
.split p { margin: 0 0 14px; color: var(--muted); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 20px; } }

/* Вопросы */
details {
  max-width: 820px;
  border-bottom: 1px solid var(--line);
}
summary {
  cursor: pointer;
  padding: 16px 0;
  font-weight: 700;
  font-size: 18px;
  list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; float: right; color: var(--muted); font-weight: 400; }
details[open] summary::after { content: "−"; }
details p { margin: 0 0 16px; color: var(--muted); }

/* Низ страницы */
.cta { text-align: center; }
.cta .downloads { margin-top: 24px; }

footer { padding: 36px 0 48px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--muted); }
footer .links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 14px; }
footer a { color: var(--muted); }
footer p { margin: 0 0 6px; }
