@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600&family=Inter:wght@300;400;500&display=swap');

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


:root {
  --bg: #e6ebf2;

  --card: #ffffff;
  --card-hover: #e9eff7;

  --border: #b9c7d8;
  --border-accent: rgba(18, 64, 140, 0.6);

  --text: #070b14;
  --text-dim: #2b3646;

  --accent: #12408c;
  --accent-soft: rgba(18, 64, 140, 0.15);
  --accent-glow: rgba(18, 64, 140, 0.28);

  --surface-soft: rgba(0, 0, 0, 0.05);
  --surface-hover: rgba(0, 0, 0, 0.1);

  --modal-overlay: rgba(0, 0, 0, 0.75);
}


body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

/* Ссылки */
.text-link {
color: var(--text-dim);
text-decoration: none;
border-bottom: 1px solid rgba(18, 64, 140, 0.25);
transition: color 0.2s ease, border-color 0.2s ease;
}

.text-link:visited {
  color: var(--text-dim);
}

.text-link:hover {
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
}

.text-link:active {
  opacity: 0.7;
}

.wrap { max-width: 900px; margin: 0 auto; padding: 2rem 1rem; }

/* Header */
.header { text-align: center; margin-bottom: 1.5rem; }
.header small { font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--text-dim); }
.header h1 { font-family: 'JetBrains Mono', monospace; font-size: 1.4rem; font-weight: 600; margin-top: 0.3rem; }
.header .line { width: 16rem; height: 2px; margin: 0.8rem auto 0; background: linear-gradient(90deg, var(--accent), transparent); }

/* Cards */
.card {
  background: linear-gradient(135deg, var(--card), var(--card-hover));
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.card:hover { border-color: var(--border-accent); box-shadow: 0 0 20px var(--accent-glow); }

.card h2 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}


.tags { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.75rem; font-size: 0.75rem; color: var(--text-dim); }
.tags span { display: flex; align-items: center; gap: 0.35rem; }
.tags .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }

/* CTA */
.cta {
  display: flex; align-items: center; gap: 0.75rem;
  text-decoration: none; color: inherit;
  background: rgba(210, 170, 60, 0.05);
  border: 1px solid var(--border-accent);
  border-radius: 0.5rem;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  transition: background 0.3s, border-color 0.3s;
}
.cta:hover { background: rgba(210, 170, 60, 0.1); border-color: rgba(210, 170, 60, 0.5); }
.cta .icon-circle {
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  background: rgba(210, 170, 60, 0.15);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 1.1rem;
}
.cta .label { font-size: 0.875rem; font-weight: 500; }
.cta .sublabel { font-size: 0.75rem; color: var(--text-dim); }

/* Links list */
.link-row {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.6rem 0.75rem; border-radius: 0.375rem;
  text-decoration: none; color: inherit;
  transition: background 0.2s;
}
.link-row:hover { background: var(--card-hover); }
.link-row .emoji { font-size: 1rem; flex-shrink: 0; width: 1.25rem; text-align: center; }
.link-row .val { font-size: 0.875rem; }
.link-row .note { font-size: 0.75rem; color: var(--text-dim); }

/* Marketplace grid */
.mp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
.mp-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.25rem; padding: 0.9rem 0.75rem; border-radius: 0.5rem;
  border: 1px solid var(--border);
  background: var(--card-hover);
  text-decoration: none; color: var(--text);
  transition: border-color 0.2s, background 0.2s;
  text-align: center; cursor: pointer;
  margin-top: 6px;    /* Отступ сверху */
  margin-bottom: 6px;
  font-size: 14px !important;
  line-height: normal;
}
.mp-btn:hover { border-color: var(--border-accent); background: rgba(255,255,255,0.04); }
.mp-btn .top { display: flex; align-items: center; gap: 0.4rem; font-size: 0.9rem; font-weight: 500; }
.mp-btn .icon { font-size: 1.1rem; }
.mp-btn .sub { font-size: 0.7rem; color: var(--text-dim); line-height: 1.2; }

/* Галерея */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
.gallery-item {
  aspect-ratio: 16/10; border-radius: 1rem;
  border: 1px solid var(--border);
  background: var(--card-hover);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  color: var(--text-dim); font-size: 0.6rem;
  text-transform: uppercase; letter-spacing: 0.1em;
}
.gallery-item .ph { font-size: 1.5rem; margin-bottom: 0.4rem; opacity: 0.5; }
.gallery-hint { font-size: 0.75rem; color: var(--text-dim); margin-top: 0.75rem; }

/* Footer */
.footer {
  text-align: center; padding: 1rem 0 1.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem; color: var(--text-dim);
  letter-spacing: 0.1em;
}

/* ======= Модал_стиль ======= */
.modal-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  align-items: center; justify-content: center;
  padding: 1rem;
  animation: fadeIn 0.2s ease;
}
.modal-overlay.active { display: flex; }

.modal {
  background: linear-gradient(135deg, var(--card), var(--card-hover));
  border: 1px solid var(--border-accent);
  border-radius: 0.75rem;
  padding: 1.5rem;
  max-width: 720px; /*ширина модалки*/
  width: 95%;
  max-height: 95vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 0 40px rgba(210, 170, 60, 0.08);
  animation: slideUp 0.25s ease;
}

.modal-close {
  position: absolute; top: 0.75rem; right: 0.75rem;
  background: none; border: none; color: var(--text-dim);
  font-size: 1.25rem; cursor: pointer; padding: 0.25rem 0.5rem;
  border-radius: 0.25rem; transition: color 0.2s, background 0.2s;
  line-height: 1;
}
.modal-close:hover { color: var(--text); background: rgba(255,255,255,0.06); }

.modal h3 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--accent); margin-bottom: 1rem;
}

.card p {
  font-size: 0.875rem;
  color: var(--text-dim);
}

.modal p {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 0.6rem;
}

.modal ul {
  font-size: 0.85rem;
  color: var(--text-dim);
  padding-left: 1.2rem;
  margin-bottom: 0.6rem;
}
.modal li { margin-bottom: 0.3rem; }
.modal strong { color: var(--text); font-weight: 500; }

.modal .info-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem; color: var(--text-dim);
  text-transform: uppercase; letter-spacing: 0.05em;
  margin-top: 1rem; margin-bottom: 0.4rem;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/*@media (max-width: 500px) {*/
@media (max-width: 500px) {  
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .mp-grid { grid-template-columns: 1fr; }
  .header h1 { font-size: 1.15rem; }
  .modal { padding: 1.25rem; }


.accordion-container {
  margin-top: 0.8rem;
}

.accordion-item {
  border-top: 1px solid var(--border);
  padding-top: 0.6rem;
}

.accordion-item summary {
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  margin: 0.4rem 0 0.6rem 0;
  list-style: none;
  color: var(--text-dim);
}

.accordion-item ul {
  font-size: 0.75rem;
  padding-left: 1.4rem;
  margin-bottom: 0.5rem;
  list-style: circle;
}



}