/* ========================
   GLOBAL RESET & BASICS
======================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}

body {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #e9eef6;
  background: linear-gradient(to bottom, #0d0d0d, #1a1a1a);
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.4;
}

/* glowing side gradients */
body::before,
body::after {
  content: "";
  position: fixed;
  top: 0;
  width: 300px;
  height: 100%;
  pointer-events: none;
  background: radial-gradient(circle at center, rgba(120,150,255,0.15) 0%, transparent 70%);
  filter: blur(90px);
  z-index: 0;
}
body::before { left: -120px; }
body::after { right: -120px; }

/* reusable container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ========================
   HEADER / LOGO
======================== */
.site-header {
  padding: 24px 0;
  position: relative;
  z-index: 5;
}

.header-inner {
  display: flex;
  justify-content: center; /* center the logo */
  align-items: center;
}

.logo {
  height: 64px;
  width: auto;
  display: block;
  filter: drop-shadow(0 0 9px rgba(255,255,255,0.35));
}

/* ========================
   CARD GRID
======================== */
.cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 40px 100px;
  position: relative;
  z-index: 2;
}

.card {
  background: #141414;
  border-radius: 16px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: 1px solid #222;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 25px rgba(120, 150, 255, 0.25), 0 0 40px rgba(160, 100, 255, 0.2);
  border-color: rgba(150, 120, 255, 0.3);
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: #222;
}

.card-content {
  padding: 16px 20px 20px;
}

.card-title {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 10px;
  color: #fff;
}

.card-desc {
  font-size: 14px;
  line-height: 1.5;
  color: #b0b0b0;
  margin-bottom: 12px;
}

.card-stats {
  font-size: 13px;
  color: #888;
  display: flex;
  justify-content: space-between;
}

/* ========================
   CARD DETAIL PAGE
======================== */
.card-page {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 80vh;
  position: relative;
  z-index: 2;
}

.card-detail {
  background: rgba(25, 30, 45, 0.9);
  border-radius: 20px;
  padding: 40px;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 0 25px rgba(100, 150, 255, 0.3);
}

.card-detail img {
  width: 100%;
  border-radius: 15px;
  margin-bottom: 20px;
}

.detail-content {
  text-align: center;
}

.download-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 28px;
  border-radius: 10px;
  background: linear-gradient(90deg, #00aaff, #0077ff);
  color: white;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s;
}
.download-btn:hover {
  background: linear-gradient(90deg, #33ccff, #0099ff);
  transform: scale(1.05);
}

/* ========================
   FOOTER
======================== */
footer,
.site-footer {
  text-align: center;
  padding: 20px;
  font-size: 13px;
  color: #666;
  border-top: 1px solid #222;
  background: #0d0d0d;
}

/* ========================
   PARTICLES BACKGROUND
======================== */
#particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* ========================
   LINKS / BASICS
======================== */
a {
  color: inherit;
  text-decoration: none;
  transition: 0.2s;
}
a:hover {
  opacity: 0.85;
}

/* ========================
   CARD DETAIL PAGE FIX
   ======================== */
.card-detail {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #1e293b;
  border-radius: 16px;
  padding: 20px;
  max-width: 900px;
  margin: 40px auto;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
}

.card-detail img {
  width: 100%;
  max-width: 600px;
  border-radius: 12px;
  margin-bottom: 20px;
}

.detail-content {
  width: 100%;
  text-align: left;
  padding: 0 20px;
}

.detail-content h2 {
  margin-bottom: 16px;
  color: #f1f5f9;
}

.detail-content .card-desc {
  width: 100%;
  color: #cbd5e1;
  line-height: 1.6;
  text-align: justify; /* ✅ текст красиво распределяется по ширине */
  margin-bottom: 20px;
}

/* ========================
   CARD DETAIL REWORK
======================== */
.card-page {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 80px 20px;
}

.card-detail {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 40px;
  background: rgba(18, 22, 34, 0.85);
  border-radius: 20px;
  box-shadow: 0 0 35px rgba(80, 120, 255, 0.2), inset 0 0 10px rgba(255,255,255,0.05);
  max-width: 1100px;
  width: 100%;
  padding: 40px;
  backdrop-filter: blur(6px);
  transition: 0.3s ease;
}
.card-detail:hover {
  box-shadow: 0 0 45px rgba(100, 150, 255, 0.35), inset 0 0 10px rgba(255,255,255,0.08);
}

.card-detail img {
  flex: 1 1 45%;
  width: 100%;
  border-radius: 14px;
  box-shadow: 0 0 20px rgba(0,0,0,0.4);
  object-fit: cover;
}

.detail-content {
  flex: 1 1 55%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #e2e8f0;
}

.detail-content h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #f8fafc;
  text-shadow: 0 0 10px rgba(100,150,255,0.2);
}

.detail-content .card-desc {
  text-align: justify;
  line-height: 1.7;
  color: #cbd5e1;
  margin-bottom: 20px;
}

.card-stats {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: #94a3b8;
  margin-top: 10px;
}

.download-btn {
  align-self: flex-start;
  background: linear-gradient(90deg, #0066ff, #00aaff);
  padding: 14px 32px;
  border-radius: 10px;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
  margin-top: 24px;
  box-shadow: 0 0 15px rgba(0,102,255,0.3);
}
.download-btn:hover {
  background: linear-gradient(90deg, #0088ff, #33ccff);
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(80,150,255,0.4);
}

/* Mobile layout */
@media (max-width: 800px) {
  .card-detail {
    flex-direction: column;
    text-align: center;
  }
  .card-detail img {
    width: 100%;
    margin-bottom: 20px;
  }
  .detail-content {
    align-items: center;
  }
  .download-btn {
    align-self: center;
  }
}

/* ========================
   FIXED HEADER (final)
======================== */
.site-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  height: 100px;
  background: rgba(50, 65, 95, 0.6);
  top: 2.5vh;
  border-radius: 20px;
  backdrop-filter: blur(18px);
  border: 1px solid rgba(130, 160, 255, 0.3);
  box-shadow: 0 0 30px rgba(120, 160, 255, 0.15);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.site-header:hover {
  background: rgba(60, 80, 110, 0.7);
  box-shadow: 0 0 40px rgba(140, 180, 255, 0.3);
}

.header-inner {
  width: 100%;
  max-width: 1200px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 50px;
}

/* LOGO — центр по горизонтали */
.logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 36px;
  font-weight: 700;
  color: #e9eef6;
  text-shadow: 0 0 20px rgba(140, 170, 255, 0.6);
}

/* NAVIGATION */
.nav {
  display: flex;
  gap: 35px;
  margin-left: auto;
}

.nav-item {
  position: relative;
  font-size: 15px;
  color: #e0e6f2;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s, text-shadow 0.2s;
}

.nav-item:hover {
  color: #9cc9ff;
  text-shadow: 0 0 10px rgba(120, 160, 255, 0.5);
}

/* TOOLTIP (Soon) */
.nav-item::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(20, 30, 50, 0.9);
  color: #9cc9ff;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  border: 1px solid rgba(120, 150, 255, 0.3);
  box-shadow: 0 0 10px rgba(120, 150, 255, 0.2);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.nav-item:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(3px);
}

/* Чтобы контент не уезжал под хедер */
body {
  padding-top: 130px;
}

.user-select-none {
  user-select: none;
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 8%;
  background: rgba(15, 17, 25, 0.8);
  border-top: 1px solid rgba(0, 136, 255, 0.3);
  color: #d9d9d9;
}

.footer-col.left {
  flex: 1;
}

.footer-col.center {
  text-align: center;
  flex: 1;
}

.footer-col.right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 15px; /* ← расстояние между Office и иконками */
}

.footer-icons a {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.footer-icons a:hover {
  background: rgba(0, 136, 255, 0.25);
  transform: scale(1.1);
  box-shadow: 0 0 8px rgba(0, 136, 255, 0.3);
}

.footer-icons img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  user-select: none;
}

.office {
  font-size: 13px;
  opacity: 0.85;
}

.update-date {
  color: rgba(200, 200, 255, 0.6);
  font-size: 13px;
  margin-top: 4px;
}

.footer-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.footer-icons a {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  overflow: visible;
}

.footer-icons img {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.footer-icons a:hover img {
  transform: scale(1.1);
}

/* === Tooltip эффект (как "suun") === */
.footer-icons a::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 140%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  opacity: 0;
  background: rgba(10, 30, 60, 0.85);
  color: #fff;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 12px;
  white-space: nowrap;
  pointer-events: none;
  transition: all 0.25s ease;
  box-shadow: 0 0 10px rgba(0, 136, 255, 0.4);
  border: 1px solid rgba(0, 136, 255, 0.3);
}

.footer-icons a:hover::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Маленькая "стрелочка" под tooltip */
.footer-icons a::after {
  content: "";
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: rgba(10, 30, 60, 0.85);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.footer-icons a:hover::after {
  opacity: 1;
}
