/* Палитра и поверхности — те же, что в приложении (scope-disc/src/theme/variables.scss) */
:root {
  --bg: #F7F6F3;
  --card: #FFFFFF;
  --tile: #F1EFEB;
  --border: #E7E5E0;
  --text: #1C1917;
  --text-2: #57534E;
  --text-3: #A8A29E;
  --shadow: 0 1px 2px rgb(28 25 23 / 4%), 0 8px 24px -6px rgb(28 25 23 / 10%);

  --red: #DC2626;
  --yellow: #EAB308;
  --green: #16A34A;
  --blue: #2563EB;
  --gradient: linear-gradient(90deg, var(--red) 0 25%, var(--yellow) 25% 50%, var(--green) 50% 75%, var(--blue) 75% 100%);

  --radius: 20px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141416;
    --card: #1E1E21;
    --tile: #262629;
    --border: #2F2F33;
    --text: #FAFAF9;
    --text-2: #A8A29E;
    --text-3: #78716C;
    --shadow: 0 1px 0 rgb(255 255 255 / 4%) inset, 0 10px 28px -8px rgb(0 0 0 / 55%);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--blue);
}

h1, h2, h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
}

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

/* Шапка */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--border);
}

.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

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

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.top nav {
  display: flex;
  gap: 24px;
}

.top nav a {
  color: var(--text-2);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}

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

/* Кнопки */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn svg {
  width: 20px;
  height: 20px;
  flex: none;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 20px -8px rgb(37 99 235 / 60%);
}

.btn-ghost {
  background: var(--card);
  color: var(--text);
  box-shadow: var(--shadow);
}

/* Первый экран */
.hero {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 72px 0 88px;
}

.eyebrow {
  display: inline-block;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(36px, 5.4vw, 60px);
  font-weight: 800;
}

.hero p {
  font-size: 19px;
  color: var(--text-2);
  margin: 20px 0 32px;
  max-width: 34em;
}

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

/* Плитки D I S C — как на иконке приложения */
.tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  max-width: 380px;
  width: 100%;
  justify-self: center;
}

.tile {
  aspect-ratio: 1;
  border-radius: 28%;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: clamp(48px, 8vw, 84px);
  box-shadow: inset 0 -8px 0 rgb(0 0 0 / 12%), 0 14px 28px -12px rgb(0 0 0 / 35%);
  text-shadow: 0 3px 0 rgb(0 0 0 / 12%);
  animation: float 6s ease-in-out infinite;
}

.tile:nth-child(1) { background: var(--red); }
.tile:nth-child(2) { background: var(--yellow); animation-delay: -1.5s; }
.tile:nth-child(3) { background: var(--green); animation-delay: -3s; }
.tile:nth-child(4) { background: var(--blue); animation-delay: -4.5s; }

@keyframes float {
  50% { transform: translateY(-6px); }
}

@media (prefers-reduced-motion: reduce) {
  .tile { animation: none; }
  html { scroll-behavior: auto; }
}

/* Секции */
section {
  padding: 72px 0;
}

.section-head {
  max-width: 640px;
  margin-bottom: 36px;
}

.section-head h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 800;
}

.section-head p {
  color: var(--text-2);
  margin: 14px 0 0;
}

.bar {
  height: 6px;
  width: 96px;
  border-radius: 3px;
  background: var(--gradient);
  margin-bottom: 18px;
}

.grid {
  display: grid;
  gap: 18px;
}

.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px;
}

.card h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 8px;
}

.card p {
  margin: 0;
  color: var(--text-2);
  font-size: 16px;
}

/* Стили DISC */
.style .letter {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 24px;
  margin-bottom: 18px;
}

.style .en {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 4px;
}

/* Шаги */
.step .num {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--tile);
  font-weight: 800;
  margin-bottom: 16px;
}

/* Версии */
.edition {
  display: flex;
  flex-direction: column;
}

.edition .tag {
  align-self: flex-start;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.edition.lite .tag { background: rgb(22 163 74 / 14%); color: var(--green); }
.edition.pro .tag { background: rgb(37 99 235 / 14%); color: var(--blue); }

.edition h3 {
  font-size: 26px;
}

.edition ul {
  list-style: none;
  padding: 0;
  margin: 18px 0 26px;
  flex: 1;
}

.edition li {
  position: relative;
  padding-left: 30px;
  margin: 10px 0;
  color: var(--text-2);
}

.edition li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .3em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm-1.2 14.2-4-4 1.4-1.4 2.6 2.6 5.6-5.6 1.4 1.4-7 7z'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm-1.2 14.2-4-4 1.4-1.4 2.6 2.6 5.6-5.6 1.4 1.4-7 7z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.edition.lite li::before { color: var(--green); }
.edition.pro li::before { color: var(--blue); }

/* Приватность и контакты */
.note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: start;
}

.note .icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--tile);
  display: grid;
  place-items: center;
}

.note .icon svg {
  width: 26px;
  height: 26px;
  color: var(--green);
}

.cta {
  text-align: center;
  padding: 56px 28px;
}

.cta h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 800;
}

.cta p {
  color: var(--text-2);
  max-width: 560px;
  margin: 14px auto 28px;
}

.cta .actions {
  justify-content: center;
}

footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 40px;
  color: var(--text-3);
  font-size: 14px;
}

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
}

footer a {
  color: var(--text-2);
  text-decoration: none;
}

footer a:hover {
  color: var(--text);
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

/* Текстовая страница (политика) */
.doc {
  max-width: 760px;
  padding: 56px 20px 72px;
}

.doc h1 {
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 800;
  margin-bottom: 8px;
}

.doc h2 {
  font-size: 22px;
  font-weight: 800;
  margin: 40px 0 12px;
}

.doc p, .doc li {
  color: var(--text-2);
}

.doc .muted {
  color: var(--text-3);
  font-size: 15px;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 48px 0 64px;
  }

  .tiles {
    max-width: 280px;
    order: -1;
  }

  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .top nav { display: none; }
  .grid-4, .grid-2 { grid-template-columns: 1fr; }
  section { padding: 52px 0; }
  .actions .btn { flex: 1 1 100%; }
  .note { grid-template-columns: 1fr; }
}
