:root {
  --primary-color: #2c3e50;
  --secondary-color: #3498db;
  --accent-color: #e67e22;
  --text-color: #333;
  --light-text: #666;
  --bg-light: #f8f9fa;
  --bg-white: #fff;
  --shadow: rgba(0, 0, 0, 0.1);
  --border-radius: 8px;
  --spacing: 20px;
}

* {
  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(--bg-light);
}

a {
  text-decoration: none;
  color: var(--secondary-color);
  transition: all 0.3s ease;
}

a:hover {
  color: var(--accent-color);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing);
}

/* Заголовок */
header {
  background-color: var(--primary-color);
  color: white;
  padding: 20px 0;
  box-shadow: 0 2px 10px var(--shadow);
}

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

.logo {
  display: flex;
  align-items: center;
  font-size: 24px;
  font-weight: 700;
}

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

.header-content a {
  color: white;
}

.slogan {
  font-style: italic;
  opacity: 0.8;
  margin-top: 5px;
  font-size: 16px;
}

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

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

nav ul li a {
  padding: 5px 10px;
  border-radius: var(--border-radius);
}

nav ul li a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
}

/* Главная секция */
.hero {
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  color: white;
  text-align: center;
  padding: 100px 0 80px;
  position: relative;
}

.hero h1 {
  font-size: 42px;
  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;
  border-radius: 30px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.btn:hover {
  background-color: #d35400;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 75px;
  background-image: url('data:image/svg+xml;charset=utf8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"%3E%3Cpath fill="%23f8f9fa" fill-opacity="1" d="M0,288L48,272C96,256,192,224,288,197.3C384,171,480,149,576,165.3C672,181,768,235,864,250.7C960,267,1056,245,1152,208C1248,171,1344,117,1392,90.7L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"%3E%3C/path%3E%3C/svg%3E');
  background-size: cover;
}

/* Секция статей */
.posts-section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 36px;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.section-title p {
  color: var(--light-text);
  max-width: 700px;
  margin: 0 auto;
}

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

.post-card {
  background: var(--bg-white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 5px 15px var(--shadow);
  transition: transform 0.3s ease;
}

.post-card:hover {
  transform: translateY(-5px);
}

.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: 25px;
}

.post-content h3 {
  margin-bottom: 15px;
  font-size: 22px;
}

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

.read-more {
  font-weight: 600;
  display: flex;
  align-items: center;
}

.read-more svg {
  margin-left: 5px;
  transition: transform 0.3s ease;
}

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

/* Секция терминологии */
.terminology-section {
  background-color: var(--bg-white);
  padding: 80px 0;
  position: relative;
}

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

.term-card {
  padding: 25px;
  background-color: var(--bg-light);
  border-radius: var(--border-radius);
  border-left: 4px solid var(--secondary-color);
  box-shadow: 0 3px 10px var(--shadow);
  transition: transform 0.3s ease;
}

.term-card:hover {
  transform: translateY(-3px);
}

.term-card h3 {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  color: var(--primary-color);
}

.term-card h3 svg {
  margin-right: 10px;
  color: var(--secondary-color);
}

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

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  margin-bottom: 80px;
}

.about-text h2 {
  font-size: 36px;
  margin-bottom: 25px;
  color: var(--primary-color);
}

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

.about-image {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 20px 30px var(--shadow);
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
}

.team-section h2 {
  text-align: center;
  font-size: 36px;
  margin-bottom: 50px;
  color: var(--primary-color);
}

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

.team-card {
  background-color: var(--bg-white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 10px 20px var(--shadow);
  text-align: center;
  transition: transform 0.3s ease;
}

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

.team-image {
  width: 100%;
  height: 300px;
  overflow: hidden;
}

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

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

.team-info {
  padding: 20px;
}

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

.team-info p:first-of-type {
  color: var(--secondary-color);
  font-weight: 600;
  margin-bottom: 15px;
}

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

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  background-color: var(--bg-light);
  border-radius: 50%;
  margin: 0 5px;
  color: var(--primary-color);
  transition: all 0.3s ease;
}

.social-links a:hover {
  background-color: var(--secondary-color);
  color: white;
  transform: translateY(-3px);
}

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

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-info h2 {
  font-size: 36px;
  margin-bottom: 30px;
  color: var(--primary-color);
}

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

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

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

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

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

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

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

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

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

.form-control:focus {
  outline: none;
  border-color: var(--secondary-color);
}

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

.submit-btn {
  width: 100%;
  padding: 14px;
  background-color: var(--secondary-color);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

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

/* Страница поста */
.post-header {
  background-color: var(--primary-color);
  color: white;
  padding: 100px 0 50px;
  text-align: center;
  position: relative;
}

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

.post-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 16px;
  opacity: 0.9;
}

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

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

.post-content-wrapper {
  max-width: 800px;
  margin: 0 auto;
  padding: 50px 20px;
}

.post-content-wrapper p {
  margin-bottom: 25px;
  font-size: 18px;
  line-height: 1.8;
}

.post-content-wrapper h2 {
  margin-top: 40px;
  margin-bottom: 20px;
  font-size: 28px;
  color: var(--primary-color);
}

.post-content-wrapper h3 {
  margin-top: 30px;
  margin-bottom: 15px;
  font-size: 24px;
  color: var(--primary-color);
}

.post-image-wrapper {
  margin: 40px 0;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 15px 25px var(--shadow);
}

.post-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

blockquote {
  border-left: 4px solid var(--secondary-color);
  padding: 20px;
  margin: 30px 0;
  background-color: var(--bg-light);
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  font-style: italic;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  margin: 40px 0;
}

.post-tags a {
  display: inline-block;
  padding: 8px 15px;
  background-color: var(--bg-light);
  border-radius: 30px;
  margin: 0 8px 8px 0;
  font-size: 14px;
  transition: all 0.3s ease;
}

.post-tags a:hover {
  background-color: var(--secondary-color);
  color: white;
}

.post-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 60px;
  padding-top: 30px;
  border-top: 1px solid #eee;
}

.post-navigation a {
  display: flex;
  align-items: center;
  font-weight: 600;
}

.post-navigation a:first-child svg {
  margin-right: 10px;
}

.post-navigation a:last-child svg {
  margin-left: 10px;
}

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

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

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

.footer-column h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 2px;
  background-color: var(--secondary-color);
}

.footer-column p {
  margin-bottom: 15px;
  opacity: 0.8;
}

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

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

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
}

.footer-links a svg {
  margin-right: 5px;
  font-size: 14px;
}

.footer-links a:hover {
  color: white;
  transform: translateX(5px);
}

.social-media {
  display: flex;
}

.social-media 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;
  transition: all 0.3s ease;
}

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

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

.footer-bottom p {
  opacity: 0.7;
  font-size: 14px;
}

/* Cookie уведомление */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background-color: var(--bg-white);
  padding: 20px;
  border-radius: var(--border-radius);
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1000;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.5s ease;
}

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

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

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

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

.cookie-btn {
  padding: 8px 15px;
  border-radius: 30px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-size: 14px;
}

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

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

.customize, .decline {
  background-color: var(--bg-light);
  color: var(--text-color);
}

.customize:hover, .decline:hover {
  background-color: #e6e6e6;
}

/* Отзывчивость */
@media (max-width: 992px) {
  .posts-grid,
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .about-content,
  .contact-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }
  
  .desktop-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--primary-color);
    flex-direction: column;
    padding: 20px;
    z-index: 100;
  }
  
  .desktop-menu.active {
    display: flex;
  }
  
  nav ul {
    flex-direction: column;
  }
  
  nav ul li {
    margin-left: 0;
    margin-bottom: 15px;
  }
  
  .hero h1 {
    font-size: 32px;
  }
  
  .posts-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }
  
  .post-header h1 {
    font-size: 32px;
  }
}

@media (max-width: 576px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .cookie-text {
    padding-right: 0;
    margin-bottom: 15px;
  }
}

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

.thank-you-modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background-color: white;
  padding: 40px;
  border-radius: var(--border-radius);
  text-align: center;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  transform: scale(0.8);
  transition: transform 0.3s ease;
}

.thank-you-modal.active .modal-content {
  transform: scale(1);
}

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

.modal-content p {
  margin-bottom: 30px;
}

.modal-close-btn {
  padding: 10px 25px;
  background-color: var(--secondary-color);
  color: white;
  border: none;
  border-radius: 30px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}

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

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

.fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

.delay-1 {
  animation-delay: 0.1s;
}

.delay-2 {
  animation-delay: 0.2s;
}

.delay-3 {
  animation-delay: 0.3s;
}

.delay-4 {
  animation-delay: 0.4s;
}

.delay-5 {
  animation-delay: 0.5s;
}
