/* ===== ГЛОБАЛЬНІ НАЛАШТУВАННЯ ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Arial', sans-serif;
  background: #0a0a0a;
  color: #f5f5f5;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  letter-spacing: 0.05em;
  font-size: 1.25rem;       /* ≈ 20px */
  line-height: 1.8;
  overflow-x: hidden;
}

/* ===== HEADER ===== */
.header {
  background: #000;
  color: #fff;
  text-align: center;
  padding: 3rem 1rem 3.5rem;
  box-shadow: 0 0.25rem 1.25rem rgba(255,255,255,0.05);
}
.header h1 {
  font-size: clamp(1.75rem, 5vw, 3.125rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.125rem;
  text-shadow: 0 0 0.625rem rgba(255,255,255,0.4),
               0 0 1.25rem rgba(255,255,255,0.2);
}

/* ===== NAVIGATION ===== */
.nav {
  background: #111;
  border-top: 1px solid #222;
  border-bottom: 1px solid #222;
  box-shadow: 0 0.125rem 0.625rem rgba(255,255,255,0.05);
}
.nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0.75rem 0.5rem;
  gap: 0.625rem;
}
.nav a {
  text-decoration: none;
  color: #eee;
  padding: 0.625rem 1.125rem;
  font-weight: 500;
  border: 1px solid transparent;
  border-radius: 0.375rem;
  transition: all .25s ease;
  font-size: clamp(1rem, 3.5vw, 1.25rem);
}
.nav a:hover {
  background: #fff;
  color: #000;
  box-shadow: 0 0 0.625rem rgba(255,255,255,0.5);
}
.nav a.active,
.nav a[aria-current="page"] {
  border-color: #fff;
  background: #000;
  color: #fff;
  box-shadow: 0 0 0.5rem rgba(255,255,255,0.4);
}

/* ===== MAIN ===== */
.main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 2.5rem 1rem;
}
.content {
  width: 100%;
  max-width: 62.5rem; /* 1000px */
  background: #000;
  border: 1px solid #222;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 0.25rem 1.5rem rgba(255,255,255,0.05);
  animation: fadeIn .8s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(0.9375rem); }
  to { opacity: 1; transform: translateY(0); }
}
.content h2 {
  color: #fff;
  margin-bottom: 1.125rem;
  font-size: clamp(1.5rem, 4.5vw, 2.25rem);
  text-shadow: 0 0 0.625rem rgba(255,255,255,0.6),
               0 0 1.25rem rgba(255,255,255,0.3);
  border-bottom: 1px solid #333;
  padding-bottom: 0.5rem;
}
.content p {
  color: #ccc;
  margin-bottom: 0.875rem;
  font-size: clamp(1rem, 3.5vw, 1.25rem);
}
.lead {
  color: #aaa;
  font-size: clamp(1.125rem, 4vw, 1.375rem);
}

/* === Переміщуване зображення (маленьке) === */
.hero-logo {
  width: clamp(6rem, 12vw, 10rem);  /* приблизно 100–160px, адаптивно */
  height: auto;
  border-radius: 0.6rem;
  position: absolute;
  top: 3rem;     /* ≈ 48px */
  left: 3rem;
  cursor: grab;
  user-select: none;
  transition: transform 0.15s ease, filter 0.3s ease;
  filter: grayscale(100%) brightness(0.9)
          drop-shadow(0 0 0.6rem rgba(255,255,255,0.3));
}

.hero-logo:active {
  transform: scale(0.95);  /* легкий ефект натискання */
}

.hero-logo:hover {
  filter: grayscale(0%) brightness(1);
}

/* ===== TABLE ===== */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.25rem;
  border: 1px solid #333;
  font-size: clamp(0.875rem, 3vw, 1.125rem);
}
th, td {
  padding: 0.75rem 0.625rem;
  border-bottom: 1px solid #333;
  word-break: break-word;
}
th {
  background: #fff;
  color: #000;
  font-weight: 600;
  text-transform: uppercase;
}
tr:nth-child(even) { background: #1a1a1a; }
tr:hover { background: #222; }

/* ===== FOOTER ===== */
.footer {
  background: #000;
  color: #777;
  text-align: center;
  padding: 1.25rem;
  font-size: clamp(0.875rem, 3vw, 1rem);
  border-top: 1px solid #222;
  letter-spacing: 0.05em;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 0.625rem; }
::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 0.5rem;
}
::-webkit-scrollbar-thumb:hover { background: #555; }

/* ===== BUTTONS ===== */
.buttons {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

button {
  background-color: #222;
  color: #fff;
  border: 1px solid #555;
  border-radius: 0.375rem;
  padding: 0.625rem 1.25rem;
  font-size: 1.125rem;
  cursor: pointer;
  transition: all .25s ease;
}
button:hover {
  background-color: #fff;
  color: #000;
  box-shadow: 0 0 0.625rem rgba(255,255,255,0.6);
}

/* ===== STATIC LOGO ===== */
.static-logo {
  width: clamp(12rem, 25vw, 20rem);
  height: auto;
  display: block;
  margin: 1.5rem auto 0.9375rem;
  filter: grayscale(100%) brightness(0.9)
          drop-shadow(0 0 0.9375rem rgba(255,255,255,0.5));
  user-select: none;
  border-radius: 0.875rem;
  transition: all 0.45s ease;
  animation: fadeInImage 1.5s ease;
}
.static-logo:hover {
  filter: grayscale(0%) brightness(1)
          drop-shadow(0 0 1.25rem rgba(255,255,255,0.8));
  transform: scale(1.05);
}

/* ===== МОДАЛЬНЕ ВІКНО ===== */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.modal-content {
  background: #1a1a1a;
  border: 0.125rem solid #f5f5f5;
  padding: 2.5rem 3.75rem;
  border-radius: 1.25rem;
  text-align: center;
  animation: popIn 0.5s ease;
  box-shadow: 0 0 1.875rem rgba(255, 255, 255, 0.2);
}

@keyframes popIn {
  0% { transform: scale(0.7); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.album {
  text-decoration: none;
  color: inherit;
  display: block;
}

.album:link,
.album:visited,
.album:hover,
.album:active {
  color: inherit;
  text-decoration: none;
}
