/* Основные стили */
:root {
  --primary-color: #2c6dbe;
  --secondary-color: #57a2eb;
  --accent-color: #f5a623;
  --text-color: #333333;
  --light-bg: #f9f9f9;
  --dark-bg: #202020;
  --white: #ffffff;
  --transition: all 0.3s ease;
  --border-radius: 8px;
  --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

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

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

/* Шапка */
header {
  background-color: var(--white);
  box-shadow: var(--shadow);
  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;
  text-decoration: none;
  color: var(--primary-color);
  font-weight: 700;
  font-size: 24px;
}

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

.nav-menu {
  display: flex;
  gap: 20px;
}

.nav-menu a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: var(--transition);
  padding: 8px 15px;
  border-radius: var(--border-radius);
}

.nav-menu a:hover {
  background-color: rgba(44, 109, 190, 0.1);
  color: var(--primary-color);
}

.nav-menu a.active {
  background-color: var(--primary-color);
  color: var(--white);
}

/* Мобильное меню */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text-color);
  cursor: pointer;
}

/* Баннер */
.banner {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: var(--white);
  padding: 60px 0;
  text-align: center;
  margin-bottom: 40px;
}

.banner h1 {
  font-size: 3rem;
  margin-bottom: 20px;
}

.banner p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto;
  opacity: 0.9;
}

/* Кнопки */
.btn {
  display: inline-block;
  padding: 12px 24px;
  background-color: var(--accent-color);
  color: var(--white);
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn:hover {
  background-color: #e59610;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
  background-color: rgba(44, 109, 190, 0.1);
  transform: translateY(-2px);
}

/* Посты блога */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

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

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

.post-image {
  height: 200px;
  overflow: hidden;
}

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

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

.post-content {
  padding: 20px;
}

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

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

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

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

.read-more:hover {
  color: var(--secondary-color);
}

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

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

/* Индивидуальный пост */
.single-post {
  background-color: var(--white);
  border-radius: var(--border-radius);
  padding: 40px;
  box-shadow: var(--shadow);
  margin-bottom: 40px;
}

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

.post-header .post-date {
  margin: 10px 0;
}

.post-header h1 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.post-meta {
  display: flex;
  justify-content: center;
  gap: 20px;
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 20px;
}

.post-meta span {
  display: flex;
  align-items: center;
}

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

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

.post-body {
  font-size: 1.1rem;
  line-height: 1.8;
}

.post-body p {
  margin-bottom: 20px;
}

.post-body h2 {
  margin: 40px 0 20px;
  color: var(--primary-color);
}

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

.post-body ul, .post-body ol {
  margin-bottom: 20px;
  padding-left: 20px;
}

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

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

.about-intro {
  text-align: center;
  margin-bottom: 60px;
}

.about-intro h1 {
  color: var(--primary-color);
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.about-intro p {
  max-width: 800px;
  margin: 0 auto 30px;
  font-size: 1.1rem;
}

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

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

.team-member:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.1);
}

.team-member img {
  width: 100%;
  height: auto;
  aspect-ratio: 1/1;
  object-fit: cover;
}

.team-info {
  padding: 20px;
}

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

.team-info p {
  margin-bottom: 15px;
}

.team-info .position {
  color: #666;
  font-style: italic;
  margin-bottom: 10px;
}

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

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: #f1f1f1;
  border-radius: 50%;
  color: var(--primary-color);
  transition: var(--transition);
}

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

/* Контактная страница */
.contact-section {
  padding: 60px 0;
}

.contact-intro {
  text-align: center;
  margin-bottom: 40px;
}

.contact-intro h1 {
  color: var(--primary-color);
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.contact-intro p {
  max-width: 700px;
  margin: 0 auto;
}

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

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

.contact-info h2 {
  color: var(--primary-color);
  margin-bottom: 20px;
}

.contact-method {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
}

.contact-method svg {
  margin-right: 15px;
  min-width: 24px;
  color: var(--primary-color);
}

.contact-method h3 {
  font-size: 1rem;
  margin-bottom: 5px;
}

.contact-form {
  background-color: var(--white);
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.contact-form h2 {
  color: var(--primary-color);
  margin-bottom: 20px;
}

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

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

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

/* Глоссарий */
.glossary {
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: var(--border-radius);
  padding: 30px;
  margin-top: 60px;
  box-shadow: var(--shadow);
}

.glossary h2 {
  color: var(--primary-color);
  margin-bottom: 20px;
  text-align: center;
}

.glossary-list {
  column-count: 2;
  column-gap: 40px;
}

.glossary-item {
  margin-bottom: 20px;
  break-inside: avoid;
}

.glossary-item h3 {
  color: var(--primary-color);
  margin-bottom: 5px;
}

.glossary-item p {
  color: #555;
}

/* Полупрозрачные блоки */
.transparent-box {
  background-color: rgba(255, 255, 255, 0.7);
  padding: 30px;
  border-radius: var(--border-radius);
  margin-bottom: 30px;
}

.semi-transparent {
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.semi-transparent:hover {
  opacity: 1;
}

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

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

.footer-column h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: var(--accent-color);
}

.footer-column ul {
  list-style: none;
}

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

.footer-column ul li a {
  text-decoration: none;
  color: #bbb;
  transition: color 0.3s;
}

.footer-column ul li a:hover {
  color: var(--white);
}

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

.footer-bottom p {
  color: #bbb;
  font-size: 0.9rem;
}

/* Cookie уведомление */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(32, 32, 32, 0.95);
  color: var(--white);
  padding: 15px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1000;
  box-shadow: 0 -5px 10px rgba(0, 0, 0, 0.1);
}

.cookie-text {
  flex: 1;
}

.cookie-text h3 {
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.cookie-text p {
  font-size: 0.9rem;
  opacity: 0.9;
}

.cookie-text a {
  color: var(--accent-color);
  text-decoration: none;
}

.cookie-text a:hover {
  text-decoration: underline;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
  margin-left: 20px;
}

.cookie-btn {
  padding: 8px 15px;
  border-radius: 4px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
}

.cookie-accept {
  background-color: var(--accent-color);
  color: var(--white);
  border: none;
}

.cookie-accept:hover {
  background-color: #e59610;
}

.cookie-settings {
  background-color: transparent;
  color: var(--white);
  border: 1px solid var(--white);
}

.cookie-settings:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.cookie-decline {
  background-color: transparent;
  color: #bbb;
  border: none;
}

.cookie-decline:hover {
  color: var(--white);
}

/* Всплывающее окно благодарности */
.thank-you-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--white);
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  z-index: 2000;
  text-align: center;
  display: none;
}

.thank-you-popup.active {
  display: block;
}

.thank-you-popup h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
}

.thank-you-popup p {
  margin-bottom: 20px;
}

.popup-close {
  margin-top: 10px;
  display: inline-block;
}

/* Overlay */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1500;
  display: none;
}

.overlay.active {
  display: block;
}

/* Адаптивность */
@media (max-width: 992px) {
  .glossary-list {
    column-count: 1;
  }
  
  .banner h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background-color: var(--white);
    padding: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  }
  
  .nav-menu.active {
    display: flex;
  }
  
  .mobile-toggle {
    display: block;
  }
  
  .banner h1 {
    font-size: 2rem;
  }
  
  .banner p {
    font-size: 1rem;
  }
  
  .cookie-banner {
    flex-direction: column;
    text-align: center;
  }
  
  .cookie-buttons {
    margin-top: 15px;
    margin-left: 0;
  }
}

@media (max-width: 576px) {
  .posts-grid {
    grid-template-columns: 1fr;
  }
  
  .team-grid {
    grid-template-columns: 1fr;
  }
  
  .single-post {
    padding: 20px;
  }
  
  .post-header h1 {
    font-size: 2rem;
  }
}
