:root {
  --bg: #ffffff;
  --bg-alt: #f6f6f4;
  --text: #16181d;
  --muted: #5d6270;
  --border: #e4e4e0;
  --accent: #f26b0f;
  --accent-hover: #d95c06;
  --accent-soft: #fff1e6;
  --radius: 14px;
  --container: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111317;
    --bg-alt: #181b20;
    --text: #eceef2;
    --muted: #9ca2ae;
    --border: #2a2e36;
    --accent: #ff8a3d;
    --accent-hover: #ffa265;
    --accent-soft: #2b1e14;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

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

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 700; max-width: 18ch; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
p  { margin: 0 0 1em; }
a  { color: inherit; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 16px; }
.container--narrow { max-width: 720px; }
.center { text-align: center; }

/* Кнопки */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--accent);
  transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn--ghost:hover { background: var(--bg-alt); border-color: var(--muted); }
.btn--icon { display: inline-flex; align-items: center; gap: 8px; }
.btn--icon svg { flex-shrink: 0; }
.btn__img { flex-shrink: 0; border-radius: 5px; }
.btn--small { padding: 8px 16px; font-size: .9rem; }

/* Шапка */
.header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; text-decoration: none; }
.logo__accent { color: var(--accent); }
.nav { display: flex; align-items: center; gap: 24px; }
.nav a:not(.btn) { text-decoration: none; color: var(--muted); font-weight: 500; }
.nav a:not(.btn):hover { color: var(--text); }
.nav .btn { color: #fff; }

/* Первый экран */
.hero { padding: 96px 0 72px; }
.eyebrow {
  display: inline-block; margin-bottom: 20px;
  padding: 4px 12px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
  font-size: .85rem; font-weight: 600;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 56ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 56px; }
.facts {
  list-style: none; padding: 24px 0 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 40px;
  border-top: 1px solid var(--border);
}
.facts li { display: flex; flex-direction: column; }
.facts strong { font-size: 1.25rem; }
.facts span { color: var(--muted); font-size: .9rem; max-width: 30ch; }

/* Секции */
.section { padding: 88px 0; }
.section--alt { background: var(--bg-alt); }
.section__lead { color: var(--muted); font-size: 1.05rem; max-width: 60ch; margin-bottom: 40px; }
.section--contact .section__lead { margin-left: auto; margin-right: auto; }

/* Карточки плагинов */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.card {
  display: flex; flex-direction: column;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  transition: border-color .15s, transform .15s;
}
.card:hover { border-color: var(--accent); transform: translateY(-2px); }
.card__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.tag { font-size: .8rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.price { font-weight: 700; }
.card p { color: var(--muted); flex-grow: 1; }
.card__meta {
  list-style: none; padding: 0; margin: 0 0 20px;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.card__meta li {
  font-size: .8rem; padding: 2px 8px; border-radius: 6px;
  background: var(--bg-alt); color: var(--muted);
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
}
.grid--two { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.card h3 { font-size: 1.4rem; }
.card > p { flex-grow: 0; }
.features { list-style: none; padding: 0; margin: 4px 0 24px; display: grid; gap: 8px; flex-grow: 1; }
.features li { position: relative; padding-left: 26px; }
.features li::before {
  content: ""; position: absolute; left: 0; top: .5em;
  width: 14px; height: 8px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg) translateY(-3px);
}
.card__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.card__actions .btn { flex: 1 1 auto; text-align: center; }
.btn--video { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn--video svg { color: var(--accent); }
.price { color: var(--muted); font-weight: 600; font-size: .9rem; }

/* На заказ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 12px; }
.steps li {
  counter-increment: step;
  display: grid; grid-template-columns: 40px 1fr; column-gap: 16px;
  padding: 18px 20px;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
}
.steps li::before {
  content: counter(step);
  grid-row: span 2;
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--accent-soft); color: var(--accent); font-weight: 700;
}
.steps span { color: var(--muted); font-size: .95rem; }

/* FAQ */
details { border-bottom: 1px solid var(--border); padding: 18px 0; }
details:first-of-type { border-top: 1px solid var(--border); }
summary {
  cursor: pointer; list-style: none;
  font-weight: 600; font-size: 1.05rem;
  display: flex; justify-content: space-between; gap: 16px;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); font-size: 1.4rem; line-height: 1; transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--muted); margin: 12px 0 0; }

/* Контакты */
.section--contact { background: var(--bg-alt); }
.contact { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }

/* Подвал */
.footer { padding: 28px 0; border-top: 1px solid var(--border); color: var(--muted); font-size: .85rem; }
.footer__inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; }

/* Страницы плагинов */
.hero--product { padding-top: 40px; }
.hero--product h1 { max-width: 22ch; }
.crumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 40px; font-size: .9rem; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.tile { padding: 22px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); }
.tile h3 { font-size: 1.05rem; margin-bottom: .4em; }
.tile p { margin: 0; color: var(--muted); font-size: .95rem; }
.split--even { align-items: start; }
.split--even h2 { font-size: 1.5rem; margin-bottom: 1em; }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table caption { text-align: left; font-weight: 600; margin-bottom: 8px; }
.table th, .table td { text-align: left; vertical-align: top; padding: 10px 0; border-top: 1px solid var(--border); }
.table th { font-weight: 500; padding-right: 16px; width: 45%; }
.table td { color: var(--muted); }
code { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: .88em; padding: 1px 5px; border-radius: 5px; background: var(--accent-soft); }
.also { margin: 32px 0 0; color: var(--muted); font-size: .95rem; }
.also a { color: var(--accent); }
.card h3 a { text-decoration: none; }
.card h3 a:hover { color: var(--accent); }
.card__more { font-weight: 600; color: var(--accent); text-decoration: none; margin: -8px 0 20px; }
.card__more:hover { text-decoration: underline; }

/* Мобильные */
@media (max-width: 760px) {
  .nav a:not(.btn) { display: none; }
  .hero { padding: 56px 0 48px; }
  .section { padding: 64px 0; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .facts { gap: 24px; }
}

/* Видео */
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; border: 1px solid var(--border); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Галерея скриншотов */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.gallery__item { margin: 0; }
.gallery__link { display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--bg-alt); transition: border-color .15s, transform .15s; }
.gallery__link:hover { border-color: var(--accent); transform: translateY(-2px); }
.gallery__link img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.gallery__item figcaption { margin-top: 8px; color: var(--muted); font-size: .9rem; }

.lightbox { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px; background: rgba(10, 11, 14, .92); }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 120px); border-radius: 8px; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); }
.lightbox__caption { color: #eceef2; font-size: .95rem; text-align: center; max-width: 80ch; }
.lightbox button { position: absolute; border: 0; background: rgba(255, 255, 255, .12); color: #fff; width: 44px; height: 44px; border-radius: 50%; font-size: 22px; cursor: pointer; }
.lightbox button:hover { background: rgba(255, 255, 255, .25); }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }
