:root {
  --primary: #5a2ca0;          /* Фіолетовий основний */
  --primary-light: #7c4dff;
  --text-dark: #222;
  --bg: #fff;
  --card: #f8f8f8;
  --gradient-light1: #ede7f6;  /* Світлі фіолетові відтінки */
  --gradient-light2: #d1c4e9;
}

/* ===== БАЗА ===== */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--text-dark);
  background: var(--bg);
  line-height: 1.6;
}
h1,h2,h3,h4 { margin-top: 0; font-weight: 700; }
img { display: block; max-width: 100%; height: auto; }

/* ===== КОНТЕЙНЕР/СЕКЦІЇ ===== */
.container { width: 90%; max-width: 1200px; margin: 0 auto; }
.section { padding: 60px 0; }
.section h2 {
  text-align: center;
  margin-bottom: 40px;
  color: var(--primary);
}

/* ===== HERO ===== */
.hero {
  background: var(--primary);
  color: #fff;
  text-align: center;
  padding: 80px 20px;
}
.hero-logo {
  display: block;
  margin: 0 auto 32px;
  max-width: 250px;
  height: auto;
  filter: drop-shadow(0 3px 10px rgba(0,0,0,.45));
  transition: transform .3s ease;
}
.hero-logo:hover { transform: scale(1.05); }

/* ===== GRID ===== */
.person-grid, .card-grid, .news-grid {
  display: grid;
  gap: 30px;
}
.person-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.card-grid   { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.news-grid   { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

/* ===== КАРТКИ ===== */
.person, .coach, .base-item, .news-card {
  background: var(--card);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
  text-align: center;
}
.person h4, .coach h4, .base-item h4, .news-card h4 {
  margin: 10px 0 6px;
  color: var(--primary);
  font-size: 1.15rem;
}
.position, .phone { margin: 0 0 8px; color: #555; font-size: .95rem; }
.desc { text-align: left; font-size: .95rem; line-height: 1.55; }

/* ===== ЗОБРАЖЕННЯ (з ніжним градієнтом) ===== */
.person img, .coach img {
  width: 100%;
  height: 300px;
  object-fit: contain;
  border-radius: 10px;
  margin-bottom: 15px;
  border: 2px solid var(--primary); 
  box-shadow: 0 2px 6px rgba(90, 44, 160, .2);
  background: linear-gradient(135deg, var(--gradient-light1), var(--gradient-light2));
}

.base-item img {
  width: 100%;
  height: 400px;
  object-fit: contain;
  border-radius: 10px;
  margin-bottom: 15px;
  border: 2px solid var(--primary);
  box-shadow: 0 2px 6px rgba(90, 44, 160, .2);
  background: linear-gradient(135deg, var(--gradient-light1), var(--gradient-light2));
}

.news-card img {
  width: 100%;
  height: 250px;
  object-fit: contain;
  border-radius: 10px;
  margin-bottom: 15px;
  border: 2px solid var(--primary);
  box-shadow: 0 2px 6px rgba(90, 44, 160, .2);
  background: linear-gradient(135deg, var(--gradient-light1), var(--gradient-light2));
}

.sponsors { background: #fafafa; }
.logos { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; }
.sponsor img {
  height: 120px;
  width: auto;
  object-fit: contain;
  display: block;
  margin: 10px auto;
  padding: 8px;
  border-radius: 6px;
  border: 2px solid var(--primary);
  box-shadow: 0 2px 6px rgba(90, 44, 160, .2);
  background: linear-gradient(135deg, var(--gradient-light1), var(--gradient-light2));
}

/* ===== КОНТАКТИ ===== */
#contacts { text-align: center; font-size: 1rem; line-height: 1.65; }

/* ===== ФОРМА ===== */
form {
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
  background: #fff;
  padding: 24px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,.08);
}
.form-group { margin-bottom: 18px; }
label { display:block; margin-bottom:6px; font-weight:600; }
input, select, textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  background: #fff;
}
button {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
}
button:hover { background: var(--primary-light); }
.form-status { margin-top: 14px; font-weight: 600; color: #2e7d32; }

/* ===== ФУТЕР ===== */
.footer {
  background: var(--primary);
  color: #fff;
  text-align: center;
  padding: 20px;
}

/* ===== ВИРІВНЮВАННЯ ТЕКСТУ (для CMS вставок) ===== */
.center-text {
  text-align: center;
}
.right-text {
  text-align: right;
}
.left-text {
  text-align: left;
}
.justify-text {
  text-align: justify;
}




