/* Основные стили */
:root {
  --primary-color: #4a6baf;
  --secondary-color: #f8f9fa;
  --accent-color: #61dafb;
  --text-color: #333;
  --border-color: #e0e0e0;
  --header-height: 70px;
  --footer-height: 100px;
  --container-width: 1200px;
  --border-radius: 8px;
  --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: #2a4078;
}

/* Стили для шапки */
.site-header {
  background-color: #fff;
  padding: 15px 0;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  text-decoration: none;
  display: flex;
  align-items: center;
}

.logo:before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 24px;
  background-color: var(--accent-color);
  margin-right: 10px;
  border-radius: 3px;
}

.main-nav ul {
  list-style: none;
  display: flex;
  padding: 0;
  margin: 0;
}

.main-nav li {
  margin-left: 30px;
}

.main-nav a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  padding-bottom: 3px;
}

.main-nav a:after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--primary-color);
  transition: var(--transition);
}

.main-nav a:hover:after {
  width: 100%;
}

/* Стили для основного содержимого */
.site-main {
  flex: 1;
  padding: 40px 0;
}

h1, h2, h3, h4, h5, h6 {
  margin-bottom: 20px;
  color: var(--primary-color);
}

h1 {
  font-size: 2.8rem;
  font-weight: 700;
}

h2 {
  font-size: 2rem;
  font-weight: 600;
}

p {
  margin-bottom: 20px;
}

ul, ol {
  margin-left: 20px;
  margin-bottom: 20px;
}

/* Герой-секция */
.hero {
  background-color: var(--secondary-color);
  padding: 80px 0;
  text-align: center;
  margin-bottom: 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.hero-title {
  font-size: 3.2rem;
  margin-bottom: 24px;
  color: var(--primary-color);
}

.hero-subtitle {
  font-size: 1.5rem;
  color: #6c757d;
  margin-bottom: 32px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--primary-color);
  color: white;
  font-weight: bold;
  text-decoration: none;
  border-radius: 50px;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(74, 107, 175, 0.3);
}

.hero-cta:hover {
  background-color: #3a569d;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(74, 107, 175, 0.4);
  color: white;
}

/* Текстовые блоки */
.text-block {
  padding: 40px;
  background-color: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  margin-bottom: 30px;
}

.text-block h2 {
  color: var(--primary-color);
  font-size: 1.8rem;
  margin-bottom: 20px;
  padding-bottom: 10px;
  position: relative;
}

.text-block h2:after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;
  height: 3px;
  background-color: var(--accent-color);
}

/* Карточки страниц */
.pages-list {
  margin: 30px 0;
}

.pages-list ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.pages-list li {
  margin: 0;
}

.pages-list a {
  display: block;
  padding: 20px;
  background-color: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  color: var(--primary-color);
  font-weight: 500;
  border-left: 3px solid var(--primary-color);
}

.pages-list a:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* Стили для футера */
.site-footer {
  background-color: var(--primary-color);
  color: #fff;
  padding: 40px 0;
  margin-top: auto;
}

.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-footer-logo {
  font-weight: bold;
  font-size: 20px;
}

.site-footer-links {
  display: flex;
  list-style: none;
}

.site-footer-links li {
  margin-left: 20px;
}

.site-footer-links a {
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition);
}

.site-footer-links a:hover {
  color: #fff;
}

.copyright {
  margin-top: 20px;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

/* Адаптивность */
@media (max-width: 768px) {
  .site-header .container {
    flex-direction: column;
    padding: 15px 0;
  }
  
  .logo {
    margin-bottom: 15px;
  }
  
  .main-nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .main-nav li {
    margin: 0 10px 10px;
  }
  
  .hero {
    padding: 60px 20px;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .site-footer .container {
    flex-direction: column;
    text-align: center;
  }
  
  .site-footer-links {
    margin-top: 20px;
    justify-content: center;
  }
  
  .site-footer-links li {
    margin: 0 10px;
  }
}

/* Анимации */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.site-main {
  animation: fadeIn 0.5s ease-out;
}