/* ═══════════════════════════════════════════
   Industrial Capital — Dark Premium Design
   Unified stylesheet v1.0
   ═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&display=swap');

:root {
  --bg:        #08080e;
  --bg-2:      #0f0f1a;
  --bg-3:      #141420;
  --surface:   rgba(255,255,255,.045);
  --surface-2: rgba(255,255,255,.075);
  --border:    rgba(255,255,255,.09);
  --border-2:  rgba(255,255,255,.15);
  --text:      #e8e8f0;
  --text-2:    #9090b0;
  --text-3:    #5a5a7a;
  --accent:    #4f8eff;
  --accent-2:  #a78bfa;
  --accent-glow: rgba(79,142,255,.25);
  --green:     #22d3a0;
  --amber:     #f59e0b;
  --radius:    16px;
  --radius-sm: 10px;
  --shadow:    0 24px 64px rgba(0,0,0,.5);
  --font-head: 'Syne', sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── Noise texture overlay ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: .5;
}

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

/* ════════════════════════════
   TOPBAR
   ════════════════════════════ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(20px) saturate(180%);
  background: rgba(8,8,14,.8);
}
.topbar-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -.01em;
  color: var(--text);
}
.logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px var(--accent-glow);
  flex-shrink: 0;
}
.logo-icon svg { display: block; }

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
  transition: color .2s, background .2s;
  white-space: nowrap;
}
.nav a:hover { color: var(--text); background: var(--surface); }
.nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
.nav-cta {
  margin-left: 8px;
  padding: 9px 18px !important;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)) !important;
  color: #fff !important;
  border-radius: var(--radius-sm) !important;
  font-weight: 600 !important;
  box-shadow: 0 0 24px var(--accent-glow);
  transition: opacity .2s, transform .15s !important;
}
.nav-cta:hover { opacity: .9; transform: translateY(-1px); background: none; }

/* ════════════════════════════
   FOOTER
   ════════════════════════════ */
footer {
  border-top: 1px solid var(--border);
  background: var(--bg-2);
  padding: 32px 24px;
  text-align: center;
  color: var(--text-3);
  font-size: 13px;
}
footer a { color: var(--text-2); }
footer a:hover { color: var(--text); }

/* ════════════════════════════
   LAYOUT
   ════════════════════════════ */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}
.page-wrap {
  position: relative;
  z-index: 1;
  padding: 48px 0 80px;
}

/* ── Ambient background blobs ── */
.glow-blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: .18;
}
.glow-blob-1 {
  width: 600px; height: 600px;
  background: var(--accent);
  top: -200px; left: -100px;
}
.glow-blob-2 {
  width: 500px; height: 500px;
  background: var(--accent-2);
  top: 200px; right: -150px;
}
.glow-blob-3 {
  width: 400px; height: 400px;
  background: var(--accent);
  bottom: 0; left: 30%;
}

/* ════════════════════════════
   GLASS CARD
   ════════════════════════════ */
.glass {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
}
.glass-2 {
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
}

/* ════════════════════════════
   BUTTONS
   ════════════════════════════ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 32px var(--accent-glow);
  transition: opacity .2s, transform .15s, box-shadow .2s;
  text-decoration: none;
}
.btn-primary:hover {
  opacity: .92;
  transform: translateY(-2px);
  box-shadow: 0 0 48px var(--accent-glow);
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid var(--border-2);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .15s;
  text-decoration: none;
}
.btn-ghost:hover {
  background: var(--surface-2);
  border-color: var(--accent);
  transform: translateY(-1px);
}

/* ════════════════════════════
   TAGS / BADGES
   ════════════════════════════ */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: 12px;
  font-weight: 500;
  transition: border-color .2s, color .2s;
}
.tag:hover { border-color: var(--accent); color: var(--accent); }

.pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}
.pill.ok   { background: rgba(34,211,160,.15); color: var(--green); }
.pill.warn { background: rgba(245,158,11,.15); color: var(--amber); }

/* ════════════════════════════
   BREADCRUMBS
   ════════════════════════════ */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-3);
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.breadcrumbs a { color: var(--text-2); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs span { color: var(--text); }
.breadcrumbs .sep { opacity: .4; }

/* ════════════════════════════
   TABLE
   ════════════════════════════ */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  margin-top: 16px;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
thead th {
  padding: 12px 16px;
  background: var(--surface-2);
  color: var(--text-2);
  font-weight: 600;
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  color: var(--text);
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: var(--surface); }

/* ════════════════════════════
   FAQ / DETAILS
   ════════════════════════════ */
details {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color .2s;
}
details[open] { border-color: rgba(79,142,255,.3); }
details + details { margin-top: 8px; }
summary {
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--surface);
  transition: background .2s;
  user-select: none;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: '+';
  font-size: 20px;
  color: var(--text-3);
  flex-shrink: 0;
  transition: transform .25s;
}
details[open] summary::after { transform: rotate(45deg); color: var(--accent); }
summary:hover { background: var(--surface-2); }
details > p, details > div {
  padding: 16px 20px;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.65;
  border-top: 1px solid var(--border);
}

/* ════════════════════════════
   ANIMATIONS
   ════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp .6s ease both; }
.fade-up-1 { animation-delay: .1s; }
.fade-up-2 { animation-delay: .2s; }
.fade-up-3 { animation-delay: .3s; }
.fade-up-4 { animation-delay: .4s; }

/* ════════════════════════════
   RATING GRID (FLEXBOX)
   ════════════════════════════ */
.rating-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
  justify-content: flex-start;
}
.rating-card {
  flex: 1 1 calc(25% - 12px);
  min-width: 260px;
  max-width: calc(25% - 12px);
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color .2s, transform .2s;
  display: flex;
  flex-direction: column;
}
.rating-card:hover {
  border-color: rgba(79,142,255,.3);
  transform: translateY(-2px);
}
.rating-card.top {
  border-color: rgba(79,142,255,.4);
  background: rgba(79,142,255,.06);
}
.rating-label {
  font-size: 13px;
  color: var(--text-3);
  margin-bottom: 8px;
  font-weight: 600;
}
.rating-card h3 {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}
.rating-card p {
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 14px;
  flex-grow: 1;
}
.rating-card a {
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
}

/* ════════════════════════════
   CARDS GRID (INFO CARDS)
   ════════════════════════════ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.info-card {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}
.info-card h3 {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 12px;
}
.info-card ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.info-card ul li {
  font-size: 14px;
  color: var(--text-2);
  display: flex;
  gap: 8px;
}
.info-card ul li::before {
  content: '→';
  color: var(--accent);
  flex-shrink: 0;
}

/* ════════════════════════════
   METHODOLOGY BOX
   ════════════════════════════ */
.methodology-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}
.criteria-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}
.criteria-list li {
  font-size: 15px;
  color: var(--text-2);
  display: flex;
  gap: 10px;
}
.criteria-list li::before {
  content: '▸';
  color: var(--accent);
  flex-shrink: 0;
}
.tooltip {
  border-bottom: 1px dashed var(--text-3);
  cursor: help;
}
.formula {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  font-family: monospace;
  font-size: 14px;
  color: var(--green);
  overflow-x: auto;
  white-space: nowrap;
}

/* ════════════════════════════
   INFO BLOCK & MEDIA
   ════════════════════════════ */
.info-block {
  text-align: center;
}
.info-block img {
  max-width: 100%;
  border-radius: 20px;
  border: 1px solid var(--border);
}
.media-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 20px 0 16px;
}
.download-btn, .audio-btn {
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  transition: background .2s, border-color .2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.download-btn:hover, .audio-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
audio { display: none; }

/* ════════════════════════════
   CUSTOM AUDIO PLAYER
   ════════════════════════════ */
.aplayer {
  max-width: 680px;
  margin: 32px auto 0;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(79,142,255,.1), rgba(167,139,250,.08));
  border: 1px solid rgba(79,142,255,.25);
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,.4), 0 0 0 1px rgba(79,142,255,.1);
}
.aplayer-inner {
  display: flex;
  gap: 24px;
  align-items: center;
  padding: 28px 28px 20px;
}
.aplayer-art {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(79,142,255,.35);
}
.aplayer-art svg {
  width: 100%;
  height: 100%;
  display: block;
}
.aplayer-art-spin {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: conic-gradient(from 0deg, transparent 70%, rgba(255,255,255,.15));
  animation: artSpin 3s linear infinite;
  animation-play-state: paused;
}
.aplayer.playing .aplayer-art-spin {
  animation-play-state: running;
}
@keyframes artSpin {
  to { transform: rotate(360deg); }
}
.aplayer-content {
  flex: 1;
  min-width: 0;
}
.aplayer-info {
  margin-bottom: 14px;
}
.aplayer-title {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.aplayer-subtitle {
  font-size: 13px;
  color: var(--text-3);
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.aplayer-progress-wrap {
  cursor: pointer;
  padding: 6px 0;
}
.aplayer-progress-bg {
  height: 4px;
  border-radius: 4px;
  background: rgba(255,255,255,.1);
  position: relative;
}
.aplayer-progress-fill {
  height: 100%;
  border-radius: 4px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width .1s linear;
}
.aplayer-progress-dot {
  position: absolute;
  top: 50%;
  right: -6px;
  transform: translateY(-50%) scale(0);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px var(--accent-glow);
  transition: transform .15s;
  pointer-events: none;
}
.aplayer-progress-wrap:hover .aplayer-progress-dot {
  transform: translateY(-50%) scale(1);
}
.aplayer-times {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-3);
  margin-top: 4px;
}
.aplayer-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}
.aplayer-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-2);
  padding: 6px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color .15s, background .15s;
}
.aplayer-btn:hover {
  color: var(--text);
  background: rgba(255,255,255,.08);
}
.aplayer-btn svg {
  width: 18px;
  height: 18px;
  display: block;
}
.aplayer-btn-play {
  width: 44px;
  height: 44px;
  border-radius: 50% !important;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)) !important;
  color: #fff !important;
  box-shadow: 0 0 20px var(--accent-glow);
  flex-shrink: 0;
  margin: 0 4px;
  transition: transform .15s, box-shadow .15s !important;
}
.aplayer-btn-play:hover {
  transform: scale(1.08);
  box-shadow: 0 0 32px var(--accent-glow);
}
.aplayer-btn-play svg {
  width: 20px;
  height: 20px;
}
.aplayer-btn-skip svg {
  width: 20px;
  height: 20px;
}
.aplayer-btn-speed {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-3);
  border: 1px solid var(--border) !important;
  border-radius: 8px !important;
  padding: 4px 8px !important;
  margin-left: auto;
}
.aplayer-btn-speed:hover {
  color: var(--accent) !important;
  border-color: rgba(79,142,255,.4) !important;
}
.aplayer-volume-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 4px;
}
.aplayer-volume-bar-wrap {
  width: 6px;
  height: 40px;
  cursor: pointer;
  position: relative;
}
.aplayer-volume-bg {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 100%;
  border-radius: 4px;
  background: rgba(255,255,255,.1);
  overflow: hidden;
}
.aplayer-volume-fill {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to top, var(--accent), var(--accent-2));
  border-radius: 4px;
  transition: height .1s;
}
.aplayer-wave {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  height: 40px;
  padding: 0 28px 16px;
}
.aplayer-wave span {
  flex: 1;
  border-radius: 2px;
  background: linear-gradient(to top, rgba(79,142,255,.5), rgba(167,139,250,.3));
  height: 8px;
  transform-origin: bottom;
}
.aplayer.playing .aplayer-wave span {
  animation: waveAnim var(--dur, .8s) ease-in-out infinite alternate;
}
@keyframes waveAnim {
  from { transform: scaleY(1); }
  to { transform: scaleY(var(--peak,3)); }
}

/* ════════════════════════════
   CTA SECTION
   ════════════════════════════ */
.cta-section {
  text-align: center;
  background: linear-gradient(135deg, rgba(79,142,255,.14), rgba(167,139,250,.1));
  border: 1px solid rgba(79,142,255,.2);
  border-radius: 24px;
  padding: 64px 24px;
  margin: 48px 0;
  position: relative;
  overflow: hidden;
}
.cta-section h2 {
  position: relative;
  font-family: var(--font-head);
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 24px;
}

/* ════════════════════════════
   BLOG LINKS
   ════════════════════════════ */
.blog-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 20px 0;
}
.blog-link-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  transition: border-color .2s, background .2s;
}
.blog-link-item:hover {
  border-color: rgba(79,142,255,.3);
  background: var(--surface-2);
}
.blog-link-item::before {
  content: '📄';
  font-size: 18px;
  flex-shrink: 0;
}

/* ════════════════════════════
   PLAIN UL LIST
   ════════════════════════════ */
.ul-plain {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}
.ul-plain li {
  display: flex;
  gap: 10px;
  color: var(--text-2);
  font-size: 15px;
}
.ul-plain li::before {
  content: '▸';
  color: var(--accent);
  flex-shrink: 0;
}

/* ════════════════════════════
   RESPONSIVE
   ════════════════════════════ */
@media (max-width: 1024px) {
  .rating-card {
    flex: 1 1 calc(33.333% - 11px);
    max-width: calc(33.333% - 11px);
  }
}

@media (max-width: 768px) {
  .topbar-inner { padding: 0 16px; }
  .nav a { padding: 8px 10px; font-size: 13px; }
  .nav-cta { padding: 8px 14px !important; }
  .container { padding: 0 16px; }
  .page-wrap { padding: 32px 0 60px; }
  
  .rating-card {
    flex: 1 1 calc(50% - 8px);
    max-width: calc(50% - 8px);
    min-width: 240px;
  }
}

@media (max-width: 560px) {
  .nav .hide-mobile { display: none; }
  
  .rating-card {
    flex: 1 1 100%;
    max-width: 100%;
    min-width: unset;
  }
  
  .aplayer-inner {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }
  
  .aplayer-controls {
    justify-content: center;
  }
  
  .aplayer-volume-wrap {
    margin-left: 0;
  }
}

/* ════════════════════════════
   PRINT STYLES
   ════════════════════════════ */
@media print {
  body {
    background: #fff;
    color: #000;
  }
  .topbar, .anchor-nav, .cta-section, .aplayer, .media-buttons {
    display: none;
  }
  .rating-card, .info-card {
    break-inside: avoid;
    border: 1px solid #ccc;
    background: #fff;
  }
}
.cta-section {
  position: relative;
  background-image: url('/cta-bg.jpg');  /* Фоновое изображение со стоков */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 80px 24px;
  overflow: hidden;
}

/* Затемняющий оверлей поверх картинки */
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(8,8,14,.88),
    rgba(15,15,26,.92)
  );
  z-index: 1;
}

/* Текст и кнопка поверх оверлея */
.cta-section > * {
  position: relative;
  z-index: 2;
}