/* Основные стили */
:root {
  --primary-color: #3498db;
  --secondary-color: #2c3e50;
  --accent-color: #8e44ad;
  --light-color: #ecf0f1;
  --dark-color: #34495e;
  --success-color: #2ecc71;
  --warning-color: #f1c40f;
  --danger-color: #e74c3c;
  --text-color: #333;
  --border-radius: 5px;
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

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

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

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

/* Хедер */
.header {
  background-color: var(--secondary-color);
  color: #fff;
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--box-shadow);
}

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

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

.logo img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 10px;
}

.logo-text {
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}

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

.nav-list {
  display: flex;
  list-style: none;
}

.nav-item {
  margin-left: 20px;
}

.nav-link {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1rem;
  transition: var(--transition);
  padding: 5px 10px;
  border-radius: var(--border-radius);
}

.nav-link:hover,
.nav-link.active {
  background-color: var(--primary-color);
}

/* Мобильное меню */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Прогресс-бар чтения */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 5px;
  background: linear-gradient(to right, var(--primary-color), var(--accent-color));
  z-index: 1001;
  width: 0%;
  transition: width 0.2s ease;
}

/* Герой секция */
.hero {
  background: linear-gradient(to right, var(--secondary-color), var(--primary-color));
  color: #fff;
  padding: 80px 0;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

.btn {
  display: inline-block;
  padding: 12px 25px;
  background-color: var(--accent-color);
  color: #fff;
  text-decoration: none;
  border-radius: var(--border-radius);
  font-weight: 500;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn:hover {
  background-color: darken(var(--accent-color), 10%);
  transform: translateY(-2px);
  box-shadow: var(--box-shadow);
}

.btn-primary {
  background-color: var(--primary-color);
}

.btn-secondary {
  background-color: transparent;
  border: 2px solid #fff;
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Блок постов на главной */
.posts-section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
  font-size: 2.5rem;
  color: var(--secondary-color);
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: var(--accent-color);
  margin: 15px auto 0;
  border-radius: 2px;
}

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

.post-card {
  background-color: #fff;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

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

.post-image {
  height: 200px;
  width: 100%;
  object-fit: cover;
}

.post-content {
  padding: 20px;
}

.post-date {
  color: #777;
  font-size: 0.9rem;
  margin-bottom: 10px;
  display: block;
}

.post-title {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.post-excerpt {
  color: #666;
  margin-bottom: 20px;
}

.read-more {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
}

.read-more svg {
  margin-left: 5px;
  transition: var(--transition);
}

.read-more:hover svg {
  transform: translateX(5px);
}

/* Полная страница поста */
.single-post {
  padding: 60px 0;
}

.post-header {
  text-align: center;
  margin-bottom: 40px;
}

.post-header h1 {
  font-size: 3rem;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.post-meta {
  color: #777;
  font-size: 1rem;
  margin-bottom: 20px;
}

.post-featured-image {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: var(--border-radius);
  margin-bottom: 30px;
}

.post-body {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}

.post-body p, 
.post-body ul, 
.post-body ol, 
.post-body blockquote {
  margin-bottom: 20px;
}

.post-body h2 {
  font-size: 2rem;
  margin: 40px 0 20px;
  color: var(--secondary-color);
}

.post-body h3 {
  font-size: 1.5rem;
  margin: 30px 0 15px;
  color: var(--secondary-color);
}

.post-body blockquote {
  padding: 20px;
  background-color: rgba(52, 152, 219, 0.1);
  border-left: 4px solid var(--primary-color);
  font-style: italic;
}

.post-body code {
  background-color: #f4f4f4;
  padding: 2px 5px;
  border-radius: 3px;
  font-family: monospace;
}

.post-body pre {
  background-color: #f4f4f4;
  padding: 15px;
  border-radius: var(--border-radius);
  overflow-x: auto;
  margin-bottom: 20px;
}

.post-body img {
  max-width: 100%;
  border-radius: var(--border-radius);
  margin: 20px 0;
}

/* О нас страница */
.about-section {
  padding: 80px 0;
}

.about-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  align-items: center;
}

.about-image {
  width: 100%;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.team-section {
  padding: 80px 0;
  background-color: #f9f9f9;
}

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

.team-card {
  background-color: #fff;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  text-align: center;
  transition: var(--transition);
}

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

.team-image {
  width: 100%;
  height: auto;
}

.team-info {
  padding: 20px;
}

.team-name {
  font-size: 1.5rem;
  margin-bottom: 5px;
  color: var(--secondary-color);
}

.team-position {
  color: var(--primary-color);
  font-weight: 500;
  margin-bottom: 15px;
}

.team-bio {
  color: #666;
  margin-bottom: 15px;
  font-size: 0.95rem;
}

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

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #f4f4f4;
  color: var(--secondary-color);
  transition: var(--transition);
}

.social-link:hover {
  background-color: var(--primary-color);
  color: #fff;
}

/* Контактная форма */
.contact-section {
  padding: 80px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
}

.contact-info {
  background-color: var(--secondary-color);
  color: #fff;
  padding: 40px;
  border-radius: var(--border-radius);
}

.contact-title {
  font-size: 2rem;
  margin-bottom: 30px;
  position: relative;
}

.contact-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--primary-color);
  margin-top: 10px;
}

.contact-details {
  margin-top: 30px;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.contact-icon {
  margin-right: 15px;
  font-size: 1.5rem;
  color: var(--primary-color);
}

.contact-text {
  line-height: 1.5;
}

.contact-form-container {
  background-color: #fff;
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

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

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--secondary-color);
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

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

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

/* Цитаты пользователей */
.testimonials-section {
  padding: 80px 0;
  background-color: #f5f9fd;
}

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

.testimonial-card {
  background-color: #fff;
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  font-size: 5rem;
  color: rgba(52, 152, 219, 0.1);
  position: absolute;
  top: 10px;
  left: 15px;
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.testimonial-author-image {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 15px;
  object-fit: cover;
}

.testimonial-author-name {
  font-weight: 600;
  color: var(--secondary-color);
  margin-bottom: 3px;
}

.testimonial-author-title {
  font-size: 0.9rem;
  color: #777;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-about {
  margin-right: 20px;
}

.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.footer-logo img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 10px;
}

.footer-logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}

.footer-description {
  margin-bottom: 20px;
  opacity: 0.8;
  line-height: 1.6;
}

.footer-social {
  display: flex;
  gap: 15px;
}

.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
  transition: var(--transition);
}

.footer-social-link:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
}

.footer-title {
  font-size: 1.2rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background-color: var(--primary-color);
  position: absolute;
  bottom: 0;
  left: 0;
}

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

.footer-link {
  margin-bottom: 15px;
}

.footer-link a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition);
}

.footer-link a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

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

.footer-contact-icon {
  margin-right: 15px;
  color: var(--primary-color);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
}

.footer-copyright {
  opacity: 0.7;
  font-size: 0.9rem;
}

/* Cookie уведомление */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background-color: #fff;
  padding: 20px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  transform: translateY(150%);
  transition: transform 0.4s ease;
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-content {
  margin-right: 20px;
}

.cookie-title {
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--secondary-color);
}

.cookie-text {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 10px;
}

.cookie-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
}

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

.cookie-btn {
  padding: 8px 16px;
  border-radius: var(--border-radius);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-family: inherit;
}

.accept-all {
  background-color: var(--success-color);
  color: #fff;
}

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

.decline {
  background-color: transparent;
  border: 1px solid #ddd;
  color: var(--text-color);
}

/* Модальное окно с благодарностью */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal.show {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background-color: #fff;
  padding: 40px;
  border-radius: var(--border-radius);
  max-width: 500px;
  width: 90%;
  text-align: center;
  transform: translateY(-50px);
  transition: transform 0.3s ease;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.modal.show .modal-content {
  transform: translateY(0);
}

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

.modal-title {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.modal-text {
  margin-bottom: 20px;
  color: #666;
}

.modal-btn {
  padding: 12px 25px;
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: var(--border-radius);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.modal-btn:hover {
  background-color: darken(var(--primary-color), 10%);
}

/* Медиа запросы */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .post-header h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }
  
  .nav-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--secondary-color);
    flex-direction: column;
    padding: 20px 0;
    box-shadow: var(--box-shadow);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
  }
  
  .nav-list.show {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .nav-item {
    margin: 0;
  }
  
  .nav-link {
    display: block;
    padding: 15px;
    border-radius: 0;
  }
  
  .hero {
    padding: 60px 0;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .contact-form-container,
  .contact-info {
    padding: 25px;
  }
  
  .cookie-banner {
    flex-direction: column;
  }
  
  .cookie-content {
    margin-right: 0;
    margin-bottom: 20px;
  }
  
  .cookie-actions {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .header {
    padding: 10px 0;
  }
  
  .logo-text {
    font-size: 1.5rem;
  }
  
  .hero {
    padding: 50px 0;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .post-card {
    max-width: 100%;
  }
  
  .team-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  
  .modal-content {
    padding: 25px;
  }
  
  .modal-title {
    font-size: 1.5rem;
  }
}
