/* BBS Основний стиль */
:root {
  --primary: #0f2027;
  --secondary: #2c5364;
  --accent: #00c9ff;
  --light: #f4f4f4;
  --dark: #121212;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}

body {
  background: var(--light);
  color: var(--dark);
  transition: all 0.3s ease;
}

header {
  background: linear-gradient(to right, var(--primary), var(--secondary));
  color: white;
  padding: 30px 0;
  text-align: center;
}

header h1 {
  font-size: 3rem;
  margin-bottom: 10px;
}

header p {
  font-size: 1.2rem;
  opacity: 0.9;
}

nav ul {
  display: flex;
  justify-content: center;
  gap: 25px;
  list-style: none;
  padding: 20px 0;
  background: var(--secondary);
  flex-wrap: wrap;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  position: relative;
  padding: 5px 10px;
  transition: color 0.3s ease;
}

nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: left;
}

nav a:hover::after {
  transform: scaleX(1);
}

.hero {
  background: linear-gradient(to right, #00c9ff, #92fe9d);
  color: var(--dark);
  padding: 80px 20px;
  text-align: center;
}

.hero h2 {
  font-size: 2.8rem;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto;
}

.btn {
  display: inline-block;
  margin-top: 30px;
  padding: 12px 25px;
  background: var(--primary);
  color: white;
  border-radius: 25px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.btn:hover {
  background: var(--accent);
  color: black;
}

.modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  background: white;
  padding: 40px;
  border-radius: 10px;
  max-width: 600px;
  text-align: center;
  box-shadow: 0 0 15px rgba(0,0,0,0.3);
}

.modal-content button {
  margin-top: 20px;
  padding: 10px 20px;
  border: none;
  background: var(--secondary);
  color: white;
  border-radius: 5px;
  cursor: pointer;
}

footer {
  background: var(--secondary);
  color: white;
  text-align: center;
  padding: 30px 10px;
  margin-top: 40px;
  font-size: 0.9rem;
}
footer a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

footer a:hover {
  color: var(--accent); /* або білий з підкресленням */
  text-decoration: underline;
}
.nav-centered ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  list-style: none;
  padding: 20px 0;
  margin: 0;
}

.nav-centered li {
  display: inline-block;
}

.nav-centered a {
  text-decoration: none;
  color: white;
  background-color: var(--secondary);
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: bold;
  transition: background 0.3s ease;
}

.nav-centered a:hover {
  background-color: var(--accent);
  color: black;
}
.container {
  padding: 40px 20px;
}

.content-box ul {
  list-style: none;
  padding-left: 0;
}

.content-box ul li {
  margin-bottom: 10px;
}

.content-box ul li a {
  text-decoration: none;
  font-weight: bold;
  color: var(--accent);
  transition: color 0.3s ease;
}

.content-box ul li a:hover {
  color: var(--primary);
}
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  padding: 40px 20px;
  max-width: 1200px;
  margin: auto;
}

.tile {
  background: var(--light);
  border: 2px solid var(--accent);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, background 0.3s ease;
}

.tile:hover {
  transform: translateY(-5px);
  background: var(--accent);
  color: white;
}

.tile h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.tile p {
  font-size: 1rem;
  margin-bottom: 15px;
}

.tile a {
  display: inline-block;
  padding: 10px 20px;
  background: var(--primary);
  color: white;
  border-radius: 25px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.tile a:hover {
  background: var(--dark);
}
.tiles-grid.small-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  padding: 40px 20px;
  justify-items: center;
}
nav.top-nav ul {
  display: flex;
  justify-content: center;
  gap: 20px;
  list-style: none;
  padding: 20px;
  background: var(--secondary);
}

nav.top-nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  position: relative;
}

nav.top-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: left;
}

nav.top-nav a:hover::after {
  transform: scaleX(1);
}

