/* Основные стили */
:root {
  --primary-color: #3498db;
  --secondary-color: #2c3e50;
  --accent-color: #e74c3c;
  --light-color: #ecf0f1;
  --dark-color: #2c3e50;
  --text-color: #333;
  --background-color: #f9f9f9;
  --card-bg: #ffffff;
  --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', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
}

/* Контейнер */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Шапка */
header {
  background-color: var(--secondary-color);
  color: white;
  padding: 1rem 0;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

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

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

.logo h1 {
  font-size: 1.5rem;
  font-weight: 700;
}

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

nav li {
  margin-left: 1.5rem;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  padding: 0.5rem 0.8rem;
  border-radius: 4px;
}

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

/* Мобильная навигация */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Основной контент */
main {
  padding: 2rem 0;
  min-height: calc(100vh - 200px);
}

.page-title {
  margin-bottom: 2rem;
  font-size: 2.2rem;
  color: var(--secondary-color);
  text-align: center;
  position: relative;
}

.page-title:after {
  content: '';
  display: block;
  width: 100px;
  height: 3px;
  background: var(--primary-color);
  margin: 0.5rem auto;
}

.page-title i {
  margin-right: 0.5rem;
  color: var(--primary-color);
}

/* Карточки блога */
.blog-posts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
}

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

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

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

.post-content {
  padding: 1.5rem;
}

.post-title {
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
  color: var(--secondary-color);
}

.post-excerpt {
  color: #666;
  margin-bottom: 1.2rem;
}

.post-meta {
  display: flex;
  justify-content: space-between;
  color: #888;
  font-size: 0.9rem;
}

.read-more {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  text-decoration: none;
  transition: var(--transition);
  margin-top: 1rem;
}

.read-more:hover {
  background-color: #2980b9;
}

/* Отдельный пост */
.post-container {
  background-color: var(--card-bg);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.post-header {
  margin-bottom: 2rem;
  text-align: center;
}

.post-header h1 {
  font-size: 2.5rem;
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.post-featured-image {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: 8px;
  margin: 1rem 0 2rem;
}

.post-body {
  line-height: 1.8;
}

.post-body p, .post-body ul, .post-body ol {
  margin-bottom: 1.5rem;
}

.post-body h2, .post-body h3 {
  margin: 2rem 0 1rem;
  color: var(--secondary-color);
}

.post-body h2 {
  font-size: 1.8rem;
}

.post-body h3 {
  font-size: 1.5rem;
}

/* Чеклист */
.checklist {
  background-color: #f8f9fa;
  border-left: 4px solid var(--primary-color);
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 0 8px 8px 0;
}

.checklist h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}

.checklist h3 i {
  margin-right: 0.5rem;
}

.checklist ul {
  list-style: none;
}

.checklist li {
  margin-bottom: 0.8rem;
  display: flex;
  align-items: flex-start;
}

.checklist li i {
  color: var(--primary-color);
  margin-right: 0.5rem;
  margin-top: 0.25rem;
}

/* Страница О нас */
.about-intro {
  text-align: center;
  margin-bottom: 3rem;
}

.about-intro p {
  max-width: 800px;
  margin: 1rem auto;
}

.team-section {
  margin-top: 3rem;
}

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

.team-member {
  text-align: center;
  background-color: var(--card-bg);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.team-member:hover {
  transform: translateY(-5px);
}

.team-member img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
}

.team-member h3 {
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
}

.team-member p {
  color: #666;
  margin-bottom: 0.5rem;
}

.team-social {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

.team-social a {
  color: var(--primary-color);
  margin: 0 0.5rem;
  font-size: 1.2rem;
}

/* Контактная форма */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-form {
  background-color: var(--card-bg);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 1.5rem;
}

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

.form-control {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
}

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

.btn {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 0.8rem 2rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  transition: var(--transition);
}

.btn:hover {
  background-color: #2980b9;
}

.contact-info {
  background-color: var(--primary-color);
  color: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.contact-info h3 {
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
}

.contact-detail {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.contact-detail i {
  margin-right: 1rem;
  font-size: 1.5rem;
}

/* Футер */
footer {
  background-color: var(--secondary-color);
  color: white;
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  margin-bottom: 1.2rem;
  font-size: 1.3rem;
}

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

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: #ccc;
  text-decoration: none;
  transition: var(--transition);
}

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

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.footer-social a {
  color: white;
  font-size: 1.5rem;
  transition: var(--transition);
}

.footer-social a:hover {
  color: var(--primary-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid #34495e;
  font-size: 0.9rem;
  color: #bbb;
}

/* 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: 8px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 1000;
}

.cookie-title {
  display: flex;
  align-items: center;
  font-size: 1.2rem;
  font-weight: 700;
}

.cookie-title i {
  margin-right: 0.5rem;
  color: var(--primary-color);
}

.cookie-text {
  margin-bottom: 1rem;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.cookie-btn {
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 500;
  border: none;
  font-size: 0.9rem;
}

.accept-all {
  background-color: var(--primary-color);
  color: white;
}

.accept-all:hover {
  background-color: #2980b9;
}

.customize {
  background-color: #eee;
  color: var(--secondary-color);
}

.customize:hover {
  background-color: #ddd;
}

.reject {
  background-color: transparent;
  color: var(--secondary-color);
  border: 1px solid #ccc;
}

.reject:hover {
  background-color: #f1f1f1;
}

/* Спасибо за отправку формы */
.thank-you-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
  z-index: 1100;
}

.modal-content {
  background-color: white;
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  max-width: 500px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  position: relative;
}

.modal-content h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.close-modal {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Адаптивность */
@media (max-width: 992px) {
  .contact-container {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  
  nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--secondary-color);
    padding: 1rem 0;
  }
  
  nav ul.active {
    display: flex;
  }
  
  nav li {
    margin: 0;
  }
  
  nav a {
    display: block;
    padding: 0.8rem 1.5rem;
  }
  
  .post-card {
    max-width: 400px;
    margin: 0 auto;
  }
  
  .contact-form, .contact-info {
    padding: 1.5rem;
  }
}

@media (max-width: 576px) {
  .footer-content {
    grid-template-columns: 1fr;
  }
  
  .team-grid {
    grid-template-columns: 1fr;
  }
  
  .cookie-actions {
    flex-direction: column;
  }
  
  .cookie-btn {
    width: 100%;
  }
}
