/* style.css – общие стили для сайта кафедры СИИ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  background-color: #f8fafc;
  color: #1e293b;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Шапка */
.site-header {
  background-color: #1a2b4c;
  color: white;
  padding: 1rem 0;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.header-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.logo a {
  color: white;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.logo span {
  color: #ffd966;
  font-size: 0.9rem;
  display: block;
  margin-top: 4px;
  font-weight: 400;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  flex-wrap: wrap;
}

.main-nav a {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a.active {
  color: white;
  border-bottom-color: #ffd966;
}

/* Кнопки */
.btn {
  display: inline-block;
  background-color: #2a7de1;
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.2s;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background-color: #1e5bbf;
}

.btn-outline {
  background: transparent;
  border: 2px solid #2a7de1;
  color: #2a7de1;
}

.btn-outline:hover {
  background: #2a7de1;
  color: white;
}

/* Основной контент */
main {
  flex: 1;
  padding: 3rem 0;
}

/* Карточки */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}

.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.card-content {
  padding: 1.5rem;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #1a2b4c;
}

.card-text {
  color: #475569;
  margin-bottom: 1rem;
}

/* Герой (hero) */
.hero {
  background: linear-gradient(135deg, #1a2b4c 0%, #2d4379 100%);
  color: white;
  padding: 4rem 0;
  border-radius: 0 0 50px 50px;
  margin-bottom: 3rem;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  opacity: 0.9;
  max-width: 700px;
}

/* Разделы */
.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: #1a2b4c;
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: #2a7de1;
  border-radius: 2px;
}

/* Сотрудники */
.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 2rem;
}

.person-card {
  text-align: center;
}

.person-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  border: 4px solid white;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.person-name {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.person-position {
  color: #64748b;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

/* Контакты */
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info p {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-icon {
  width: 24px;
  text-align: center;
  color: #2a7de1;
  font-weight: bold;
}

.map-placeholder {
  background: #e2e8f0;
  border-radius: 12px;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  border: 2px dashed #cbd5e1;
}

/* Подвал */
.site-footer {
  background-color: #1a2b4c;
  color: rgba(255,255,255,0.8);
  padding: 2rem 0;
  margin-top: 3rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links a {
  color: white;
  text-decoration: none;
  margin-left: 2rem;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.footer-links a:hover {
  opacity: 1;
}

/* Адаптивность */
@media (max-width: 768px) {
  .header-wrapper {
    flex-direction: column;
    gap: 1rem;
  }
  .main-nav ul {
    justify-content: center;
    gap: 1rem;
  }
  .hero-title {
    font-size: 2.5rem;
  }
  .contacts-grid {
    grid-template-columns: 1fr;
  }
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  .footer-links a {
    margin: 0 1rem;
  }
}