/* Основные стили */
:root {
  --primary-color: #2a56c6;
  --secondary-color: #4a7aef;
  --accent-color: #f39c12;
  --background-color: #f8f9fa;
  --text-color: #333;
  --light-text: #6c757d;
  --border-color: #e0e0e0;
  --footer-color: #2c3e50;
  --success-color: #2ecc71;
  --error-color: #e74c3c;
}

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

body {
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
}

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

/* Заголовок */
header {
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 50px;
  margin-right: 10px;
}

.logo h1 {
  font-size: 24px;
  color: var(--primary-color);
}

/* Навигация */
nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 20px;
}

nav ul li a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  position: relative;
  transition: color 0.3s;
}

nav ul li a:hover {
  color: var(--primary-color);
}

nav ul li a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s;
}

nav ul li a:hover::after {
  width: 100%;
}

/* Главный раздел */
.hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  padding: 80px 0;
  text-align: center;
}

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

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

.btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--accent-color);
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 500;
  transition: background-color 0.3s, transform 0.3s;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background-color: #e67e22;
  transform: translateY(-2px);
}

/* Карточки блога */
.blog-cards {
  padding: 60px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
  font-size: 32px;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--accent-color);
}

.cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
}

.card {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.card-img {
  height: 200px;
  overflow: hidden;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.card:hover .card-img img {
  transform: scale(1.05);
}

.card-content {
  padding: 25px;
}

.card-content h3 {
  font-size: 22px;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.card-content p {
  margin-bottom: 20px;
  color: var(--light-text);
}

.card-date {
  font-size: 14px;
  color: var(--light-text);
  margin-bottom: 10px;
  display: block;
}

/* Информационный блок */
.info-block {
  background-color: var(--secondary-color);
  color: white;
  padding: 60px 0;
  text-align: center;
}

.info-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 900px;
  margin: 0 auto;
}

.info-item {
  flex: 0 0 calc(33.333% - 20px);
  margin: 10px;
  padding: 30px 20px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  transition: transform 0.3s;
}

.info-item:hover {
  transform: translateY(-5px);
}

.info-item i {
  font-size: 40px;
  margin-bottom: 15px;
  display: block;
}

.info-item h3 {
  margin-bottom: 10px;
  font-size: 22px;
}

/* Счетчик просмотров и факт */
.fun-fact-container {
  background-color: #fff;
  padding: 30px;
  margin: 40px 0;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.view-counter, .fun-fact {
  flex: 1;
  min-width: 300px;
  padding: 20px;
  border-radius: 5px;
  margin: 10px;
}

.view-counter {
  background-color: rgba(74, 122, 239, 0.1);
  border-left: 3px solid var(--primary-color);
}

.fun-fact {
  background-color: rgba(243, 156, 18, 0.1);
  border-left: 3px solid var(--accent-color);
}

.counter-number {
  font-size: 40px;
  font-weight: bold;
  color: var(--primary-color);
  margin: 10px 0;
}

.fact-text {
  font-style: italic;
  font-size: 18px;
}

/* Футер */
footer {
  background-color: var(--footer-color);
  color: white;
  padding: 60px 0 20px;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.footer-section {
  flex: 1;
  min-width: 250px;
  margin-bottom: 30px;
}

.footer-section h3 {
  font-size: 20px;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-section h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--accent-color);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: white;
}

.contact-info {
  margin-bottom: 15px;
  display: flex;
  align-items: flex-start;
}

.contact-info i {
  margin-right: 10px;
  color: var(--accent-color);
  font-size: 18px;
  margin-top: 3px;
}

.social-icons {
  display: flex;
  margin-top: 20px;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  margin-right: 10px;
  color: white;
  transition: background-color 0.3s, transform 0.3s;
}

.social-icons a:hover {
  background-color: var(--accent-color);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  margin-top: 30px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
}

/* Форма обратной связи */
.contact-form {
  background-color: white;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  margin: 40px 0;
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  font-size: 16px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-control:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(74, 122, 239, 0.2);
}

textarea.form-control {
  min-height: 150px;
}

.contact-info-block {
  background-color: var(--primary-color);
  color: white;
  padding: 40px;
  border-radius: 8px;
  height: 100%;
}

.contact-info-block h3 {
  font-size: 24px;
  margin-bottom: 30px;
}

/* О нас страница */
.about-hero {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
  color: white;
  padding: 100px 0;
  text-align: center;
}

.about-hero h2 {
  font-size: 42px;
  margin-bottom: 20px;
}

.about-content {
  padding: 60px 0;
}

.about-text {
  margin-bottom: 40px;
}

.about-text p {
  margin-bottom: 20px;
  font-size: 17px;
}

.team-section {
  padding: 40px 0;
}

.team-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
}

.team-card {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s;
}

.team-card:hover {
  transform: translateY(-10px);
}

.team-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.team-info {
  padding: 20px;
}

.team-info h3 {
  font-size: 20px;
  margin-bottom: 5px;
  color: var(--primary-color);
}

.team-info p {
  color: var(--light-text);
  margin-bottom: 15px;
}

.team-social {
  display: flex;
  justify-content: center;
  margin-top: 15px;
}

.team-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  background-color: #f5f5f5;
  border-radius: 50%;
  margin: 0 5px;
  color: var(--primary-color);
  transition: background-color 0.3s, color 0.3s;
}

.team-social a:hover {
  background-color: var(--primary-color);
  color: white;
}

/* Cookies плашка */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1000px;
  background-color: white;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  padding: 20px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cookie-text {
  flex: 1;
  margin-right: 20px;
}

.cookie-text h3 {
  margin-bottom: 10px;
  color: var(--text-color);
}

.cookie-text p {
  color: var(--light-text);
}

.cookie-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cookie-btn {
  padding: 10px 20px;
  border-radius: 5px;
  font-weight: 500;
  cursor: pointer;
  border: none;
}

.accept-cookies {
  background-color: var(--success-color);
  color: white;
}

.customize-cookies {
  background-color: #f8f9fa;
  color: var(--text-color);
  border: 1px solid var(--border-color);
}

.reject-cookies {
  background-color: #f8f9fa;
  color: var(--light-text);
  border: 1px solid var(--border-color);
}

/* Адаптивность */
@media (max-width: 992px) {
  .header-container {
    flex-direction: column;
    text-align: center;
  }
  
  .logo {
    margin-bottom: 15px;
    justify-content: center;
  }
  
  nav ul {
    justify-content: center;
  }
  
  nav ul li {
    margin: 0 10px;
  }
  
  .info-item {
    flex: 0 0 calc(50% - 20px);
  }
  
  .footer-section {
    flex: 0 0 50%;
    margin-bottom: 40px;
  }
}

@media (max-width: 768px) {
  .hero h2 {
    font-size: 32px;
  }
  
  .hero p {
    font-size: 16px;
  }
  
  .section-title {
    font-size: 28px;
  }
  
  .card-content h3 {
    font-size: 20px;
  }
  
  .info-item {
    flex: 0 0 100%;
  }
  
  .footer-section {
    flex: 0 0 100%;
  }
  
  .cookie-banner {
    flex-direction: column;
    text-align: center;
  }
  
  .cookie-text {
    margin-right: 0;
    margin-bottom: 20px;
  }
  
  .cookie-buttons {
    justify-content: center;
  }
  
  .contact-info-block {
    margin-top: 30px;
  }
}

@media (max-width: 576px) {
  .cards-container {
    grid-template-columns: 1fr;
  }
  
  nav ul {
    flex-direction: column;
    align-items: center;
  }
  
  nav ul li {
    margin: 5px 0;
  }
  
  .hero {
    padding: 50px 0;
  }
  
  .cookie-btn {
    width: 100%;
    margin-bottom: 10px;
  }
  
  .team-cards {
    grid-template-columns: 1fr;
  }
}

/* Стили для постов */
.post-content {
  padding: 40px 0;
}

.post-header {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  text-align: center;
  margin-bottom: 40px;
}

.post-header h1 {
  font-size: 40px;
  margin-bottom: 15px;
}

.post-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.8);
}

.post-meta span {
  margin: 0 10px;
  display: flex;
  align-items: center;
}

.post-meta i {
  margin-right: 5px;
}

.post-body {
  background-color: white;
  border-radius: 10px;
  padding: 40px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  margin-bottom: 40px;
}

.post-img {
  margin: 20px 0;
  border-radius: 5px;
  overflow: hidden;
}

.post-img img {
  width: 100%;
  display: block;
}

.post-body p {
  margin-bottom: 20px;
  line-height: 1.7;
  font-size: 17px;
}

.post-body h2, .post-body h3 {
  margin: 30px 0 15px;
  color: var(--primary-color);
}

blockquote {
  background-color: #f8f9fa;
  border-left: 4px solid var(--accent-color);
  padding: 20px;
  margin: 20px 0;
  font-style: italic;
}

.post-tags {
  margin: 30px 0;
}

.tag {
  display: inline-block;
  background-color: #f1f2f6;
  color: var(--text-color);
  padding: 5px 15px;
  border-radius: 30px;
  margin-right: 10px;
  margin-bottom: 10px;
  text-decoration: none;
  font-size: 14px;
  transition: background-color 0.3s;
}

.tag:hover {
  background-color: #e0e2e7;
}

.share-post {
  margin-top: 30px;
  display: flex;
  align-items: center;
}

.share-post span {
  margin-right: 15px;
  font-weight: 500;
}

.share-links {
  display: flex;
}

.share-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: #f8f9fa;
  border-radius: 50%;
  margin-right: 10px;
  color: var(--text-color);
  transition: background-color 0.3s, color 0.3s;
}

.share-links a:hover {
  background-color: var(--primary-color);
  color: white;
}

/* Модальное окно */
.modal {
  display: none;
  position: fixed;
  z-index: 1001;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  align-items: center;
  justify-content: center;
}

.modal-content {
  background-color: white;
  padding: 40px;
  border-radius: 10px;
  text-align: center;
  max-width: 500px;
  width: 90%;
  position: relative;
  animation: modalAnimation 0.3s;
}

@keyframes modalAnimation {
  from {opacity: 0; transform: translateY(-30px);}
  to {opacity: 1; transform: translateY(0);}
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
  color: var(--light-text);
  transition: color 0.3s;
}

.close-modal:hover {
  color: var(--text-color);
}

.modal-icon {
  font-size: 60px;
  color: var(--success-color);
  margin-bottom: 20px;
}

.modal h3 {
  font-size: 24px;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.modal p {
  margin-bottom: 20px;
  color: var(--light-text);
}
