:root {
    --bg-page: #ffffff;
    --bg-main: #ffffff;
    --bg-soft: #f8fafc;
    --border-subtle: #e5e7eb;
    --border-strong: #cbd5e1;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --accent: #1d4ed8;
    --accent-soft: #e0ecff;
    --radius: 16px;
    --radius-lg: 22px;
    --transition: 0.2s ease-out;
  }

  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", sans-serif;
    background: var(--bg-page);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
  }

  a {
    color: inherit;
    text-decoration: none;
  }

  .container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
  }

 

  header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
  }

  .header-inner {
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .logo {
    display: flex;
    align-items: center;
    gap: 8px;
  }



  .logo-text-main {
    font-size: 0.94rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  .logo-text-sub {
    font-size: 0.74rem;
    color: var(--text-muted);
  }

  .nav-top {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.9rem;
  }

  .nav-top a {
    padding-bottom: 2px;
    border-bottom: 1px solid transparent;
    color: #6b7280;
    text-transform: capitalize;
    transition: border-color var(--transition), color var(--transition);
  }

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

  .nav-top .download-active {
    border-color: var(--accent);
    color: var(--accent);
    font-weight: 500;
  }

 

  .download-hero {
    position: relative;
    overflow: hidden;
    padding: 52px 0 36px;

  }

  .download-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
    gap: 32px;
    align-items: center;
  }

 
  .download-hero-grid::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(to right, rgba(226, 232, 240, 0.65) 1px, transparent 1px), linear-gradient(to bottom, rgba(226, 232, 240, 0.65) 1px, transparent 1px);
    background-size: 80px 80px;
    opacity: 1;
    pointer-events: all;
    mix-blend-mode: darken;
    transform: translate3d(0, 0, 0);
    animation: gridDrift 13s 
ease-out infinite;
    z-index: -1;
  }

  @keyframes gridDrift {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(-80px, -40px, 0); }
  }

  .download-hero-content {
    position: relative;
    z-index: 1;
  }

  .download-hero-kicker {
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #1d4ed8;
    font-weight: 600;
    margin-bottom: 6px;
  }

  .download-hero-title {
    font-size: clamp(2.1rem, 3.1vw, 2.5rem);
    line-height: 1.15;
    margin-bottom: 8px;
  }

  .download-hero-title span {
    color: var(--accent);
  }

  .download-hero-subtitle {
    font-size: 0.96rem;
    color: var(--text-muted);
    max-width: 580px;
    margin-bottom: 14px;
  }

  .download-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.82rem;
    color: var(--text-muted);
  }

  .download-hero-meta span::before {
    content: "•";
    margin-right: 6px;
    color: #cbd5e1;
  }

  .download-hero-meta span:first-child::before {
    content: "";
    margin-right: 0;
  }

  .download-hero-actions {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 18px;
    border-radius: 999px;
    border: 1px solid var(--accent);
    background: var(--accent);
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background var(--transition), border-color var(--transition),
      box-shadow var(--transition), transform var(--transition);
  }

  .btn-primary:hover {
    background: #2563eb;
    border-color: #2563eb;
    box-shadow: 0 14px 32px rgba(37, 99, 235, 0.35);
    transform: translateY(-1px);
  }

  .btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 14px;
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
    background: #ffffff;
    color: #0f172a;
    font-size: 0.88rem;
    cursor: pointer;
    transition: background var(--transition), border-color var(--transition),
      color var(--transition), transform var(--transition);
  }

  .btn-ghost:hover {
    background: #f3f4f6;
    border-color: var(--border-strong);
    transform: translateY(-1px);
  }

 

  .download-hero-visual {
    position: relative;
    z-index: 1;
  }

  .download-hero-card {
    border-radius: 20px;
    border: 1px solid var(--border-subtle);
    background: linear-gradient(145deg, #f9fafb 0%, #ffffff 50%, #eff6ff 100%);
    padding: 18px 18px 16px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    max-width: 360px;
    margin-left: auto;
    position: relative;
    overflow: hidden;
  }

  .download-hero-card::before {
    content: "";
    position: absolute;
    inset: -40%;
    background:
      radial-gradient(circle at 0% 0%, rgba(59, 130, 246, 0.35) 0, transparent 55%),
      radial-gradient(circle at 100% 100%, rgba(96, 165, 250, 0.35) 0, transparent 55%);
    opacity: 0.25;
    pointer-events: none;
  }

  .download-hero-card-inner {
    position: relative;
    z-index: 1;
  }

  .download-hero-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
  }

  .download-hero-card-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #0f172a;
  }

  .download-hero-card-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 9px;
    border-radius: 999px;
    background: #ecfdf3;
    border: 1px solid #bbf7d0;
    font-size: 0.78rem;
    color: #166534;
  }

  .download-hero-card-pill-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #22c55e;
  }

  .download-hero-card-platforms {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
  }

  .download-hero-chip {
    flex: 1;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    background: rgba(255, 255, 255, 0.9);
    padding: 7px 9px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
  }

  .download-hero-chip-icon {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    background: #eff6ff;
    color: #1d4ed8;
  }

  .download-hero-card-footer {
    font-size: 0.78rem;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 4px;
  }

 

  .download-section {
    padding: 18px 0 40px;
  }

  .download-heading {
    margin-bottom: 18px;
  }

  .download-heading h2 {
    font-size: 1.5rem;
    margin-bottom: 4px;
  }

  .download-heading p {
    font-size: 0.94rem;
    color: var(--text-muted);
    max-width: 640px;
  }

  .platform-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 26px;
  }

  .platform-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    padding: 20px 18px 18px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    position: relative;
    overflow: hidden;
  }

  .platform-card::before {
    content: "";
    position: absolute;
    inset: -30%;
    background:
      radial-gradient(circle at 0% 0%, rgba(59, 130, 246, 0.18) 0, transparent 55%),
      radial-gradient(circle at 100% 100%, rgba(129, 140, 248, 0.16) 0, transparent 60%);
    opacity: 0;
    transition: opacity var(--transition);
    pointer-events: none;
  }

  .platform-card-inner {
    position: relative;
    z-index: 1;
  }

  .platform-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.10);
    border-color: rgba(37, 99, 235, 0.45);
  }

  .platform-card:hover::before {
    opacity: 1;
  }

  .platform-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    gap: 10px;
  }

  .platform-main {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .platform-name {
    font-size: 1.1rem;
    font-weight: 600;
  }

  .platform-tag {
    font-size: 0.8rem;
    color: var(--text-muted);
  }

  .platform-icon-shell {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid #bfdbfe;
    background: #eff6ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #1d4ed8;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.25);
  }

  .platform-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 10px;
  }

  .platform-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
    font-size: 0.8rem;
  }

  .platform-meta-pill {
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
    background: var(--bg-soft);
    color: #0f172a;
  }

  .platform-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
  }

  .platform-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
  }

  .platform-footer span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
  }

  .platform-dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #22c55e;
  }

  .platform-dot-beta {
    background: #f97316;
  }

 

  .download-extra {
    display: grid;
    grid-template-columns: minmax(0, 0.6fr) minmax(0, 0.4fr);
    gap: 18px;
    align-items: stretch;
  }

  .extra-card {
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid var(--border-subtle);
    padding: 14px 14px 13px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
    font-size: 0.86rem;
    color: var(--text-muted);
  }

  .extra-title {
    font-size: 0.94rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: #0f172a;
  }

  .extra-sub {
    font-size: 0.86rem;
    margin-bottom: 6px;
  }

  .checksum-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 6px;
    font-size: 0.8rem;
  }

  .checksum-table th,
  .checksum-table td {
    border: 1px solid var(--border-subtle);
    padding: 5px 7px;
    text-align: left;
  }

  .checksum-table th {
    background: var(--bg-soft);
    font-weight: 500;
    color: #111827;
  }

  .checksum-table td.key {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    max-width: 260px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .extra-tag {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
    background: var(--bg-soft);
    color: #0f172a;
    font-size: 0.78rem;
    margin-top: 6px;
  }

  .release-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
  }

  .release-chip {
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
    background: var(--bg-soft);
    font-size: 0.8rem;
    color: #0f172a;
  }

  .release-chip strong {
    color: var(--accent);
  }

 

  footer {
    border-top: 1px solid var(--border-subtle);
    padding: 16px 0 18px;
    font-size: 0.8rem;
    color: var(--text-muted);
    background: #ffffff;
    margin-top: 8px;
  }

  .footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
  }

  .footer-links {
    display: flex;
    gap: 12px;
  }

  .footer-links a:hover {
    color: var(--accent);
  }

 

  .download-hero-content,
  .download-hero-card,
  .platform-grid,
  .download-extra {
    opacity: 0;
    transform: translateY(8px);
    animation: fadeUp 0.55s ease-out forwards;
  }

  .download-hero-content {
    animation-delay: 0.05s;
  }

  .download-hero-card {
    animation-delay: 0.12s;
  }

  .platform-grid {
    animation-delay: 0.16s;
  }

  .download-extra {
    animation-delay: 0.22s;
  }

  @keyframes fadeUp {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

 

  @media (max-width: 980px) {
    .download-hero-grid {
      grid-template-columns: minmax(0, 1fr);
    }

    .download-hero-visual {
      order: -1;
    }

    .download-hero-card {
      margin-left: 0;
      max-width: 100%;
    }

    .platform-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .download-extra {
      grid-template-columns: minmax(0, 1fr);
    }
  }

  @media (max-width: 720px) {
    .header-inner {
      height: 60px;
    }

    .nav-top {
      display: none;
    }

    .platform-grid {
      grid-template-columns: minmax(0, 1fr);
    }

    .download-hero {
      padding-top: 38px;
    }

    .platform-card {
      padding: 18px 14px 16px;
    }

    .extra-card {
      padding: 12px 12px 11px;
    }
  }
  /* DOWNLOAD SECTION – LIGHT, CANDY EFFECTS */

.dl-section {
  padding: 40px 0 52px;
  background:
    radial-gradient(circle at 0% 0%, rgba(59,130,246,0.08) 0, transparent 45%),
    radial-gradient(circle at 100% 0%, rgba(14,165,233,0.09) 0, transparent 55%),
    #ffffff;
  position: relative;
  overflow: hidden;
}

/* еле заметная сетка */
.dl-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(226,232,240,0.6) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(226,232,240,0.6) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.2;
  pointer-events: none;
  transform: translate3d(0,0,0);
  animation: dlGridDrift 40s linear infinite;
}

@keyframes dlGridDrift {
  from { transform: translate3d(0,0,0); }
  to   { transform: translate3d(-60px,-40px,0); }
}

.dl-section > .container {
  position: relative;
  z-index: 1;
}

/* HEADER */

.dl-header {
  max-width: 640px;
  margin: 0 auto 26px;
  text-align: center;
}

.dl-title {
  font-size: 1.6rem;
  margin-bottom: 6px;
  color: #0f172a;
}

.dl-subtitle {
  font-size: 0.96rem;
  color: #64748b;
}

.dl-accent-line {
  margin: 14px auto 0;
  width: 110px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #0ea5e9, #6366f1, #f97316);
  box-shadow: 0 0 16px rgba(56,189,248,0.7);
  position: relative;
  overflow: hidden;
}

.dl-accent-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
  transform: translateX(-100%);
  animation: dlShimmer 2.4s linear infinite;
}

@keyframes dlShimmer {
  to { transform: translateX(100%); }
}

/* GRID */

.dl-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

/* CARD */

.dl-card {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  transform: translateY(8px);
  opacity: 0;
  animation: dlFadeUp 0.6s ease-out forwards;
}

.dl-card:nth-child(1) { animation-delay: 0.05s; }
.dl-card:nth-child(2) { animation-delay: 0.12s; }
.dl-card:nth-child(3) { animation-delay: 0.19s; }

@keyframes dlFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* градиентная рамка */

.dl-card::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(59,130,246,0.55), rgba(14,165,233,0.4), rgba(129,140,248,0.55));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0.65;
  transition: opacity 0.2s ease-out;
}

.dl-card-body {
  position: relative;
  z-index: 1;
  background: #ffffff;
  border-radius: 21px;
  padding: 20px 18px 18px;
  box-shadow: 0 14px 34px rgba(15,23,42,0.08);
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
}

.dl-card:hover::before {
  opacity: 1;
}

.dl-card:hover .dl-card-body {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(15,23,42,0.14);
}

/* вариации фона внутри */

.dl-card--windows .dl-card-body {
  background: radial-gradient(circle at 0% 0%, rgba(59,130,246,0.09) 0, transparent 50%), #ffffff;
}
.dl-card--linux .dl-card-body {
  background: radial-gradient(circle at 100% 0%, rgba(16,185,129,0.09) 0, transparent 55%), #ffffff;
}
.dl-card--ios .dl-card-body {
  background: radial-gradient(circle at 100% 100%, rgba(56,189,248,0.11) 0, transparent 60%), #ffffff;
}

/* CONTENT */

.dl-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.dl-card-name {
  font-size: 1.12rem;
  font-weight: 600;
  color: #0f172a;
}

.dl-card-tag {
  font-size: 0.82rem;
  color: #64748b;
}

.dl-icon-shell {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 22px rgba(59,130,246,0.32);
}

.dl-icon-letter {
  font-weight: 700;
  font-size: 1.2rem;
  color: #1d4ed8;
}

.dl-icon-emoji {
  font-size: 1.4rem;
}

.dl-card-desc {
  font-size: 0.9rem;
  color: #64748b;
  margin-bottom: 10px;
}

.dl-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
  font-size: 0.8rem;
}

.dl-meta-pill {
  padding: 3px 8px;
  border-radius: 999px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #0f172a;
}

/* BUTTONS */

.dl-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.dl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.86rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.18s ease-out, border-color 0.18s ease-out,
              color 0.18s ease-out, transform 0.18s ease-out,
              box-shadow 0.18s ease-out;
}

.dl-btn--primary {
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
  border-color: transparent;
  color: #ffffff;
  font-weight: 500;
  box-shadow: 0 10px 24px rgba(59,130,246,0.45);
}

.dl-btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(59,130,246,0.6);
}

.dl-btn--ghost {
  background: #ffffff;
  border-color: #e5e7eb;
  color: #0f172a;
}

.dl-btn--ghost:hover {
  background: #f3f4f6;
  border-color: #cbd5e1;
}

/* FOOTER */

.dl-footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 4px;
}

.dl-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  display: inline-block;
}

.dl-dot--green {
  background: #22c55e;
}

.dl-dot--blue {
  background: #0ea5e9;
}

/* RESPONSIVE */

@media (max-width: 980px) {
  .dl-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .dl-section {
    padding: 32px 0 40px;
  }
  .dl-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* сетка — растягиваем карточки по высоте строки */
.dl-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;   /* важно */
}

/* сама карточка на всю высоту ячейки */
.dl-card {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  height: 100%;
}

/* тело карточки = флекс-колонка, чтобы футер всегда снизу */
.dl-card-body {
  position: relative;
  z-index: 1;
  background: #ffffff;
  border-radius: 21px;
  padding: 20px 18px 18px;
  box-shadow: 0 14px 34px rgba(15,23,42,0.08);
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* контент вверху, футер у нижней границы */
.dl-card-desc {
  margin-bottom: 10px;
}

.dl-buttons {
  margin-bottom: 8px;
}

.dl-footer {
  margin-top: auto;      /* прижимает футер к низу */
  padding-top: 6px;
  border-top: 1px solid #e5e7eb;
}

