/* aristovda.ru — Скрепка PDF */
:root {
  --bg: #e8ecf1;
  --bg-deep: #dfe5ec;
  --surface: #f7f9fb;
  --ink: #121a24;
  --muted: #5c6775;
  --line: #c5ced8;
  --accent: #2a5670;
  --accent-hover: #1d4054;
  --accent-soft: rgba(42, 86, 112, 0.12);
  --ok: #2f6b4f;
  --radius: 2px;
  --font-display: "Bricolage Grotesque", "Segoe UI", sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --max: 720px;
  --wide: 1100px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(ellipse 120% 80% at 10% -10%, #f4f6f9 0%, transparent 55%),
    radial-gradient(ellipse 90% 60% at 100% 0%, #d8e2ea 0%, transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--accent-hover);
}

.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.wrap--wide {
  width: min(100% - 2.5rem, var(--wide));
  margin-inline: auto;
}

/* ——— Top bar ——— */
.site-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid transparent;
}

.site-bar__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}

.site-bar__brand:hover {
  color: var(--accent);
}

.site-bar__mark {
  width: 28px;
  height: 28px;
  border-radius: 4px;
}

.site-bar__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1.25rem;
  font-size: 0.95rem;
}

.site-bar__nav a {
  color: var(--muted);
  text-decoration: none;
}

.site-bar__nav a:hover {
  color: var(--ink);
}

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: grid;
  align-items: end;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #1a2430;
  color: #eef2f6;
}

.hero__visual {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0.72;
}

.hero__visual--empty {
  background:
    linear-gradient(145deg, #243447 0%, #1a2430 45%, #2a5670 160%);
}

.hero__visual--empty::after {
  content: "";
  position: absolute;
  inset: 12% 8% auto;
  height: 70%;
  max-width: 920px;
  margin-inline: auto;
  left: 0;
  right: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px 6px 0 0;
  background:
    linear-gradient(180deg, rgba(247, 249, 251, 0.08) 0%, transparent 40%),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 18%,
      rgba(255, 255, 255, 0.03) 18%,
      rgba(255, 255, 255, 0.03) 19%
    );
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.hero__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(18, 26, 36, 0.08) 0%, rgba(18, 26, 36, 0.35) 48%, rgba(18, 26, 36, 0.88) 100%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 4.5rem 0 3.5rem;
  width: min(100% - 2.5rem, var(--wide));
  margin-inline: auto;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 6vw, 4.25rem);
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: 0.85rem;
}

.hero__lead {
  max-width: 32rem;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: rgba(238, 242, 246, 0.82);
  margin-bottom: 1.75rem;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
}

.hero__cta-note {
  flex-basis: 100%;
  margin: 0;
  font-size: 0.9rem;
  color: rgba(238, 242, 246, 0.65);
}

.hero__cta > div:not([hidden]) {
  display: contents;
}

.download-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
  margin-top: 1.25rem;
}

.download-row .btn small {
  font-weight: 500;
  opacity: 0.75;
  margin-left: 0.35rem;
}

/* ——— Buttons ——— */
.btn[hidden] {
  display: none !important;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 1.45rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn--primary {
  background: #f0f4f8;
  color: var(--ink);
  border-color: #f0f4f8;
}

.btn--primary:hover {
  background: #fff;
  color: var(--ink);
}

.btn--ghost {
  background: transparent;
  color: #eef2f6;
  border-color: rgba(238, 242, 246, 0.35);
}

.btn--ghost:hover {
  border-color: #eef2f6;
  color: #fff;
}

.btn--accent {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn--accent:hover {
  background: var(--accent-hover);
  color: #fff;
  border-color: var(--accent-hover);
}

.btn--outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--line);
}

.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent-hover);
}

/* ——— Meta strip ——— */
.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  padding: 1rem 0;
  color: var(--muted);
  font-size: 0.95rem;
  border-bottom: 1px solid var(--line);
}

.meta span::before {
  content: "";
}

/* ——— Sections ——— */
.section {
  padding: 3.5rem 0;
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.section__lead {
  color: var(--muted);
  margin-bottom: 1.5rem;
  max-width: 38rem;
}

.prose p + p {
  margin-top: 1rem;
}

.prose strong {
  font-weight: 700;
  color: var(--ink);
}

/* Features list — not cards */
.feature-list {
  list-style: none;
  display: grid;
  gap: 0;
}

.feature-list li {
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
  padding-left: 1.5rem;
  position: relative;
}

.feature-list li:last-child {
  border-bottom: none;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.25rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.75;
}

/* Screenshots */
.section--shots .section__title {
  text-align: center;
}

.shots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
  margin: 1.5rem auto 0;
  max-width: 960px;
}

.shot {
  margin: 0;
  padding: 0;
  width: min(100%, 300px);
  flex: 0 1 300px;
  text-align: left;
  font: inherit;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  cursor: zoom-in;
  transition: border-color 0.2s, transform 0.2s;
}

.shot:hover,
.shot:focus-visible {
  border-color: var(--accent);
  outline: none;
}

.shot:focus-visible {
  box-shadow: 0 0 0 2px var(--accent-soft);
}

@media (prefers-reduced-motion: no-preference) {
  .shot:hover {
    transform: translateY(-2px);
  }
}

.shot__frame {
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(145deg, #d8e0e8, #eef2f6);
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.9rem;
  overflow: hidden;
}

.shot__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  pointer-events: none;
}

.shot__cap {
  display: block;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  place-items: center;
  padding: 1.25rem;
  background: rgba(18, 26, 36, 0.88);
}

.lightbox.is-open,
.lightbox.is-open[hidden] {
  display: grid !important;
}

.lightbox__panel {
  position: relative;
  max-width: min(1100px, 100%);
  max-height: min(90vh, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.lightbox__img {
  max-width: 100%;
  max-height: calc(90vh - 3rem);
  width: auto;
  height: auto;
  object-fit: contain;
  background: #111;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

.lightbox__caption {
  margin: 0;
  color: #eef2f6;
  font-size: 0.95rem;
  text-align: center;
}

.lightbox__close {
  position: absolute;
  top: -0.25rem;
  right: -0.25rem;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 2px;
  background: rgba(247, 249, 251, 0.95);
  color: var(--ink);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox__close:hover {
  background: #fff;
}

body.lightbox-open {
  overflow: hidden;
}

/* Specs table */
.specs {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
}

.specs th,
.specs td {
  text-align: left;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.specs th {
  width: 38%;
  color: var(--muted);
  font-weight: 500;
}

/* FAQ */
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  float: right;
  color: var(--muted);
  font-weight: 400;
}

.faq details[open] summary::after {
  content: "−";
}

.faq details p {
  margin-top: 0.65rem;
  color: var(--muted);
}

/* Support */
.support {
  display: grid;
  gap: 1.75rem;
  align-items: start;
}

@media (min-width: 640px) {
  .support {
    grid-template-columns: auto 1fr;
    gap: 2rem;
  }
}

.support__qr {
  background: #fff;
  padding: 0.85rem;
  border: 1px solid var(--line);
  width: fit-content;
}

.support__qr img {
  width: 168px;
  height: 168px;
}

.support__text p + p {
  margin-top: 0.75rem;
}

.support__hint {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Author / intro band */
.band {
  background: var(--surface);
  border-block: 1px solid var(--line);
  padding: 2.5rem 0;
}

.band .section__title {
  margin-bottom: 0.75rem;
}

/* Footer */
.site-foot {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.site-foot a {
  color: var(--muted);
}

.site-foot a:hover {
  color: var(--accent);
}

.site-foot__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
}

/* Compact home hero variant when no full screenshot */
.hero--compact,
.hero--home {
  min-height: auto;
}

.hero--compact .hero__content,
.hero--home .hero__content {
  padding: 5rem 0 4rem;
}

/* Home: program entry */
.program {
  display: grid;
  gap: 1.25rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  align-items: start;
}

@media (min-width: 640px) {
  .program {
    grid-template-columns: 1fr auto;
    gap: 2rem;
    align-items: center;
  }
}

.program__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}

.program__title a {
  color: var(--ink);
  text-decoration: none;
}

.program__title a:hover {
  color: var(--accent);
}

.program__desc {
  color: var(--muted);
  margin-bottom: 0.65rem;
}

.program__meta {
  font-size: 0.92rem;
  color: var(--muted);
}

/* Motion */
@media (prefers-reduced-motion: no-preference) {
  .hero__title {
    animation: rise 0.7s ease-out both;
  }

  .hero__lead {
    animation: rise 0.7s ease-out 0.08s both;
  }

  .hero__cta {
    animation: rise 0.7s ease-out 0.16s both;
  }

  .hero__visual img {
    animation: softZoom 12s ease-out both;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes softZoom {
  from {
    transform: scale(1.04);
  }
  to {
    transform: scale(1);
  }
}

@media (max-width: 600px) {
  .wrap,
  .wrap--wide {
    width: min(100% - 1.5rem, var(--wide));
  }

  .hero__content {
    padding: 3.5rem 0 2.5rem;
  }

  .site-bar {
    flex-wrap: wrap;
  }

  .site-bar__nav {
    gap: 0.65rem 0.85rem;
    font-size: 0.82rem;
    justify-content: flex-start;
    width: 100%;
  }

  .support__qr img {
    width: 140px;
    height: 140px;
  }
}

.site-bar__nav a.is-current {
  color: var(--ink);
}

/* Catalog cards on home and section indexes */
.cards {
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .cards {
    grid-template-columns: 1fr 1fr;
  }
}

.card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  min-height: 100%;
}

.card__media {
  display: block;
  position: relative;
  height: 9.5rem;
  overflow: hidden;
  background: #d5dde6;
  text-decoration: none;
}

.card__media-img {
  display: block;
  width: 100%;
  height: 100%;
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
  transform: scale(1.04);
  filter: saturate(1.05);
  transition: transform 0.35s ease;
}

.card:hover .card__media-img {
  transform: scale(1.08);
}

.card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(18, 26, 36, 0.18) 100%);
}

.card__body {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1.05rem 1.2rem 1.2rem;
  background: var(--surface);
  flex: 1;
}

.card__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.6rem;
}

.card__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.card__title a {
  color: var(--ink);
  text-decoration: none;
}

.card__title a:hover {
  color: var(--accent);
}

.card__desc {
  color: var(--muted);
  font-size: 0.98rem;
  flex: 1;
}

.card__meta {
  font-size: 0.88rem;
  color: var(--muted);
}

.card__more {
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}

/* Search / discovery tags on product pages */
.section--tags .section__lead {
  margin-bottom: 1.1rem;
}

.tag-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.6rem;
  margin: 0;
  padding: 0;
}

.tag-list__item {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.35;
}

/* Platform / status badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.45rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  background: #fff;
  line-height: 1.3;
}

.badge--win {
  color: var(--accent);
  border-color: rgba(42, 86, 112, 0.35);
}

.badge--android {
  color: var(--ok);
  border-color: rgba(47, 107, 79, 0.35);
}

.badge--wp {
  color: #6b4f2f;
  border-color: rgba(107, 79, 47, 0.35);
}

.badge--sys {
  color: #3d3a6b;
  border-color: rgba(61, 58, 107, 0.35);
}

.badge--wip {
  color: #8a4b16;
  border-color: rgba(138, 75, 22, 0.4);
  background: #fff6ec;
}

.badge--soon {
  color: var(--muted);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  margin-bottom: 1.25rem;
}

.section-head .section__title {
  margin-bottom: 0;
}

.section-head__link {
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}

/* Empty screenshot placeholders */
.shot--empty {
  cursor: default;
}

.shot--empty:hover,
.shot--empty:focus-visible {
  border-color: var(--line);
  transform: none;
}

.shot__frame--empty::after {
  content: "Скриншот будет позже";
}

.note {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.98rem;
}

.hero__status {
  display: inline-flex;
  margin-bottom: 0.85rem;
}
