/* Цвета, шрифты и скругления — как на dataid.ru (тема Aspro Lite). */
:root {
  --base: #425dea;
  --base-hover: #2f4be0;
  --base-soft: #425dea1a;
  --bg: #ffffff;
  --bg-alt: #f6f6f7;
  --card: #ffffff;
  --text: #333333;
  --text-muted: #777777;
  --border: #ececec;
  --radius: 8px;
  --page-width: 1500px;
  --page-padding: 32px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-title: "Nunito Sans", var(--font);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151515;
    --bg-alt: #1d1d1d;
    --card: #222222;
    --text: #e8e8e8;
    --text-muted: #a0a0a0;
    --border: #2e2e2e;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 15px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--base); text-decoration: none; }
a:hover { color: var(--base-hover); }

.container {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 0 var(--page-padding);
}

.muted { color: var(--text-muted); }

/* Кнопки */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: 600 14px/1 var(--font);
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn--primary { background: var(--base); color: #fff; }
.btn--primary:hover { background: var(--base-hover); color: #fff; }
.btn--light { background: #ffffff; color: #333; }
.btn--light:hover { background: #f0f0f0; color: #333; }
.btn--lg { min-height: 52px; padding: 0 28px; font-size: 15px; }
.btn--square { width: 52px; min-height: 52px; padding: 0; }
.btn__icon, .btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }

/* Шапка */
.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: 88px;
}
.logo img { display: block; height: 40px; width: auto; }
.header__nav { display: flex; gap: 28px; margin-left: auto; }
.header__nav a { color: var(--text); font-weight: 500; }
.header__nav a:hover { color: var(--base); }

/* Баннер с видео */
.banner {
  position: relative;
  margin-top: 24px;
  min-height: 520px;
  border-radius: var(--radius);
  overflow: hidden;
  background: #222 url("/media/banner.jpg") center / cover no-repeat;
  display: flex;
  align-items: center;
}
.banner__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.banner__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, .62) 0%, rgba(0, 0, 0, .35) 55%, rgba(0, 0, 0, .1) 100%);
}
.banner__content {
  position: relative;
  max-width: 720px;
  padding: 48px 56px;
  color: #fff;
}
.banner__title {
  margin: 0 0 16px;
  font: 600 52px/1.15 var(--font-title);
}
.banner__text { margin: 0 0 32px; font-size: 17px; line-height: 1.6; }
.banner__actions { display: flex; flex-wrap: wrap; gap: 16px; }
.banner .icon-play { display: none; }
.banner.is-paused .icon-play { display: block; }
.banner.is-paused .icon-pause { display: none; }

/* Разделы */
.section { padding-top: 72px; }
.section__title {
  margin: 0 0 28px;
  font: 600 32px/1.2 var(--font-title);
}

.about {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 40px;
  align-items: start;
}
.about__text p { margin: 0 0 16px; font-size: 16px; }

.features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.feature {
  display: grid;
  gap: 6px;
  padding: 20px 24px;
  background: var(--bg-alt);
  border-radius: var(--radius);
  border-left: 3px solid var(--base);
}
.feature b { font: 600 16px/1.3 var(--font-title); }
.feature span { color: var(--text-muted); font-size: 14px; }

.downloads {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.download {
  display: flex;
  flex-direction: column;
  padding: 28px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: box-shadow .2s;
}
.download:hover { box-shadow: 0 10px 30px rgba(0, 0, 0, .08); }
.download__title { margin: 0 0 10px; font: 600 20px/1.3 var(--font-title); }
.download__text { margin: 0 0 16px; color: var(--text-muted); flex: 1; }
.download__meta { margin: 0 0 20px; font-size: 13px; color: var(--text-muted); }
.download__btn { align-self: flex-start; }

/* Подвал */
.footer {
  margin-top: 88px;
  padding: 32px 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  font-size: 14px;
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 40px;
}
.footer__inner img { height: 30px; width: auto; }
.footer__contacts { display: flex; flex-wrap: wrap; gap: 8px 24px; color: var(--text-muted); }
.footer__contacts a { color: var(--text); }
.footer__copy { margin-left: auto; color: var(--text-muted); }

/* Окно входа */
body.is-modal-open { overflow: hidden; }
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, .45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.modal[hidden] { display: none; }
.modal__panel {
  position: relative;
  width: 100%;
  max-width: 460px;
  padding: 40px 32px 32px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
  display: grid;
  gap: 16px;
}
.modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  background: none;
  color: var(--text-muted);
  cursor: pointer;
}
.modal__close svg { width: 24px; height: 24px; fill: currentColor; }
.modal__close:hover { color: var(--text); }
.modal__title { margin: 0 0 8px; font: 600 26px/1.2 var(--font-title); }
.modal__error { margin: 0; min-height: 1.2em; color: #e5484d; font-size: 14px; }
.input { display: grid; gap: 8px; }
.input__label { font-size: 14px; color: var(--text-muted); }
.input__label i { font-style: normal; color: #e5484d; }
.input__wrap { position: relative; display: block; }
.input__field {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-alt);
  color: var(--text);
  font: 400 16px var(--font);
  outline: none;
  transition: border-color .2s;
}
.input__wrap .input__field { padding-right: 48px; }
.input__field:focus { border-color: var(--base); }
.input__eye {
  position: absolute;
  top: 50%;
  right: 8px;
  width: 36px;
  height: 36px;
  transform: translateY(-50%);
  border: 0;
  background: none;
  color: var(--text-muted);
  cursor: pointer;
}
.input__eye svg { width: 20px; height: 20px; fill: currentColor; }
.input__eye.is-on { color: var(--base); }
.btn--block { width: 100%; }
.btn--secondary { background: var(--bg-alt); color: var(--text); border-color: var(--border); }
.btn--secondary:hover { background: var(--border); color: var(--text); }
.btn:disabled { opacity: .6; cursor: default; }

.privacy { max-width: 860px; }
.privacy h1 { margin: 0 0 24px; font: 700 32px/1.25 var(--font-title); }
.privacy h2 { margin: 32px 0 12px; font: 700 22px/1.3 var(--font-title); }
.privacy p { margin: 0 0 12px; color: var(--text); line-height: 1.55; }

@media (max-width: 1100px) {
  .about { grid-template-columns: 1fr; }
  .downloads { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  :root { --page-padding: 16px; }
  .header__inner { min-height: 68px; gap: 16px; }
  .header__nav { display: none; }
  .header .btn { margin-left: auto; padding: 0 14px; }
  .logo img { height: 30px; }
  .banner { min-height: 440px; }
  .banner__content { padding: 32px 24px; }
  .banner__title { font-size: 36px; }
  .features { grid-template-columns: 1fr; }
  .footer__copy { margin-left: 0; }
}
