/* Глобальные стили */
:root {
  --primary-color: #2a71d0;
  --secondary-color: #6c48c9;
  --accent-color: #35d0a1;
  --bg-color: #f9fbfd;
  --dark-bg: #1c2333;
  --text-color: #333;
  --light-text: #fff;
  --border-color: #e5e8ed;
  --success-color: #28a745;
  --error-color: #dc3545;
  --warning-color: #ffc107;
}

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

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

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

img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

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

/* Header */
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: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
}

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

nav li {
  margin-left: 30px;
}

nav a {
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--text-color);
  position: relative;
}

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

nav a:hover::after,
nav a.active::after {
  width: 100%;
}

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

.mobile-menu-btn {
  display: none;
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-color);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--light-text);
  padding: 80px 0;
  text-align: center;
}

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

.hero p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto 30px;
}

.cta-button {
  display: inline-block;
  padding: 12px 28px;
  background-color: var(--accent-color);
  color: var(--light-text);
  font-weight: 600;
  font-size: 1.1rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.cta-button:hover {
  background-color: var(--light-text);
  color: var(--accent-color);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Editor's Note */
.editors-note {
  background-color: #f0f7ff;
  border-left: 4px solid var(--primary-color);
  margin: 30px 0;
  padding: 20px;
  border-radius: 0 8px 8px 0;
}

.editors-note h3 {
  color: var(--primary-color);
  margin-bottom: 10px;
  font-size: 1.4rem;
}

/* Blog Posts */
.blog-posts {
  padding: 60px 0;
}

.blog-posts h2 {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 50px;
  color: var(--primary-color);
}

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

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

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

.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-date {
  color: #777;
  font-size: 0.9rem;
  margin-bottom: 10px;
  display: block;
}

.post-title {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: var(--text-color);
  transition: color 0.3s ease;
}

.post-card:hover .post-title {
  color: var(--primary-color);
}

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

.read-more {
  display: inline-block;
  padding: 8px 20px;
  background-color: var(--primary-color);
  color: var(--light-text);
  border-radius: 50px;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

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

/* Summary Section */
.summary-section {
  background-color: var(--dark-bg);
  color: var(--light-text);
  padding: 50px 0;
  text-align: center;
}

.summary-section h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.summary-section p {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.8;
}

/* Single Post Page */
.single-post {
  padding: 60px 0;
}

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

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

.post-meta {
  color: #777;
  margin-bottom: 20px;
}

.post-meta span {
  margin: 0 10px;
}

.post-featured-image {
  margin-bottom: 40px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.post-featured-image img {
  width: 100%;
  border-radius: 10px;
}

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

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

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

.post-body h3 {
  margin-top: 30px;
  margin-bottom: 15px;
  color: var(--text-color);
}

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

.post-body li {
  margin-bottom: 10px;
}

.post-body blockquote {
  border-left: 4px solid var(--primary-color);
  padding-left: 20px;
  font-style: italic;
  margin: 30px 0;
  color: #555;
}

.post-footer {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid var(--border-color);
}

/* About Us Page */
.team-section {
  padding: 60px 0;
}

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

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

.team-card {
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s ease;
}

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

.team-image {
  height: 250px;
  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-content {
  padding: 20px;
}

.team-content h3 {
  font-size: 1.3rem;
  margin-bottom: 5px;
  color: var(--primary-color);
}

.team-content p:first-of-type {
  color: var(--secondary-color);
  font-weight: 500;
  margin-bottom: 10px;
}

.social-links {
  margin-top: 15px;
}

.social-links a {
  margin: 0 5px;
  color: #555;
  transition: all 0.3s ease;
}

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

/* Contact Page */
.contact-section {
  padding: 60px 0;
}

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

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

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

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

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

.social-media {
  margin-top: 30px;
}

.social-media h3 {
  margin-bottom: 15px;
  font-size: 1.3rem;
}

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

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: #fff;
  transition: all 0.3s ease;
}

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

.contact-form {
  background-color: #fff;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.05);
}

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

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

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

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

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

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

.submit-btn {
  width: 100%;
  padding: 14px;
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

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

/* Cookies Banner */
.cookies-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--dark-bg);
  color: #fff;
  padding: 15px 0;
  z-index: 1000;
  box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

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

.cookies-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.cookies-text {
  flex: 1;
  min-width: 280px;
}

.cookies-text p {
  margin-bottom: 0;
}

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

.cookies-buttons button {
  padding: 8px 20px;
  border: none;
  border-radius: 5px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

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

.accept-cookies:hover {
  background-color: #218838;
}

.customize-cookies {
  background-color: transparent;
  border: 1px solid #fff;
  color: #fff;
}

.customize-cookies:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.reject-cookies {
  background-color: transparent;
  color: #ccc;
}

.reject-cookies:hover {
  color: #fff;
}

/* Footer */
footer {
  background-color: var(--dark-bg);
  color: #fff;
  padding: 60px 0 20px;
}

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

.footer-logo img {
  height: 50px;
  margin-bottom: 15px;
}

.footer-about p {
  margin-bottom: 20px;
  color: #bbb;
}

.footer-links h3, .footer-contact h3, .footer-subscribe h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: #fff;
}

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

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

.footer-links a {
  color: #bbb;
  transition: color 0.3s ease;
}

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

.footer-contact p {
  margin-bottom: 10px;
  color: #bbb;
  display: flex;
  align-items: flex-start;
}

.footer-contact svg {
  margin-right: 10px;
  min-width: 20px;
  color: var(--primary-color);
}

.subscribe-form {
  display: flex;
}

.subscribe-input {
  flex-grow: 1;
  padding: 10px 15px;
  border: none;
  border-radius: 5px 0 0 5px;
  font-size: 0.9rem;
}

.subscribe-btn {
  padding: 0 20px;
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 0 5px 5px 0;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.subscribe-btn:hover {
  background-color: var(--secondary-color);
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
  color: #999;
  font-size: 0.9rem;
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

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

.modal-content {
  background-color: #fff;
  padding: 40px;
  border-radius: 10px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  transform: translateY(-50px);
  transition: transform 0.4s ease;
}

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

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #777;
  transition: color 0.3s ease;
}

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

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

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

.modal p {
  margin-bottom: 25px;
  color: #555;
}

.modal-button {
  display: inline-block;
  padding: 10px 25px;
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.modal-button:hover {
  background-color: var(--secondary-color);
}

/* Responsive Styles */
@media (max-width: 992px) {
  .contact-container {
    grid-template-columns: 1fr;
  }
  
  .contact-info {
    order: 2;
  }
  
  .contact-form {
    order: 1;
  }
}

@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
  }
  
  nav ul {
    margin-top: 20px;
  }
  
  nav li {
    margin: 0 15px;
  }
  
  .hero h2 {
    font-size: 2.2rem;
  }
  
  .post-header h1 {
    font-size: 2.2rem;
  }
  
  .posts-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}

@media (max-width: 576px) {
  .logo h1 {
    font-size: 1.5rem;
  }
  
  nav {
    display: none;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .hero h2 {
    font-size: 1.8rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  .cta-button {
    padding: 10px 20px;
  }
  
  .post-header h1 {
    font-size: 1.8rem;
  }
  
  .cookies-content {
    justify-content: center;
  }
  
  .cookies-text {
    text-align: center;
  }
  
  .cookies-buttons {
    justify-content: center;
  }
}
