/* Основные стили */
:root {
  --primary-color: #3a7bd5;
  --secondary-color: #5d34af;
  --accent-color: #f5a623;
  --background-color: #f9f9f9;
  --text-color: #333333;
  --light-text: #777777;
  --card-bg: #ffffff;
  --border-color: #e0e0e0;
  --success-color: #4CAF50;
  --error-color: #F44336;
  --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Roboto', Arial, sans-serif;
}

body {
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

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

/* Шапка сайта */
header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  padding: 20px 0;
  box-shadow: var(--shadow);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

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

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

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

.logo h1 {
  color: white;
  font-size: 1.8rem;
  font-weight: 700;
}

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

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

nav ul li a {
  color: white;
  font-weight: 500;
  position: relative;
  padding-bottom: 5px;
}

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

nav ul li a:hover:after {
  width: 100%;
}

.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Главный контент */
main {
  margin-top: 100px;
  min-height: 80vh;
  padding: 40px 0;
}

.hero {
  text-align: center;
  padding: 60px 20px;
  background: url('images/hero-bg.jpg') center/cover;
  color: white;
  margin-bottom: 50px;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
}

.hero:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

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

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

.btn {
  display: inline-block;
  padding: 12px 24px;
  background-color: var(--accent-color);
  color: white;
  border-radius: 30px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn:hover {
  background-color: #e09415;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Блоки статей */
.posts-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.post-card {
  background-color: var(--card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  position: relative;
}

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

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

.post-content {
  padding: 20px;
}

.post-date {
  color: var(--light-text);
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.post-title {
  font-size: 1.3rem;
  margin-bottom: 10px;
  font-weight: 700;
}

.post-excerpt {
  color: var(--light-text);
  margin-bottom: 15px;
}

.read-more {
  font-weight: 500;
  display: inline-block;
  padding-bottom: 3px;
  border-bottom: 2px solid var(--primary-color);
}

.new-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: var(--accent-color);
  color: white;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 5px 10px;
  border-radius: 20px;
  z-index: 3;
}

/* Страница поста */
.single-post {
  background-color: var(--card-bg);
  border-radius: 10px;
  padding: 30px;
  box-shadow: var(--shadow);
}

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

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

.post-meta {
  display: flex;
  align-items: center;
  color: var(--light-text);
  margin-bottom: 20px;
}

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

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

.featured-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 30px;
}

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

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

.post-body h2 {
  font-size: 1.8rem;
  margin: 40px 0 20px;
}

.post-body h3 {
  font-size: 1.5rem;
  margin: 30px 0 15px;
}

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

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

.post-tags {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  padding: 5px 15px;
  background-color: #f0f0f0;
  border-radius: 20px;
  font-size: 0.9rem;
  color: var(--light-text);
}

/* Страница О нас */
.about-header {
  text-align: center;
  margin-bottom: 50px;
}

.about-header h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.about-description {
  max-width: 800px;
  margin: 0 auto 50px;
  text-align: center;
  font-size: 1.1rem;
}

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

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

.team-member:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.team-member img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.member-info {
  padding: 20px;
}

.member-info h3 {
  margin-bottom: 5px;
  font-size: 1.3rem;
}

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

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

.social-links a {
  display: inline-block;
  width: 30px;
  height: 30px;
  line-height: 30px;
  text-align: center;
  border-radius: 50%;
  color: white;
  background-color: var(--primary-color);
  transition: all 0.3s ease;
}

.social-links a:hover {
  background-color: var(--secondary-color);
  transform: scale(1.1);
}

/* Страница контактов */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

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

.contact-info h2 {
  font-size: 2rem;
  margin-bottom: 30px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 25px;
}

.info-item svg {
  width: 24px;
  height: 24px;
  margin-right: 15px;
  color: var(--primary-color);
}

.info-item-content h3 {
  font-size: 1.2rem;
  margin-bottom: 5px;
}

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

.contact-form h2 {
  font-size: 2rem;
  margin-bottom: 30px;
}

.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 var(--border-color);
  border-radius: 5px;
  font-size: 1rem;
  transition: border 0.3s ease;
}

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

.form-control::placeholder {
  color: #bbb;
}

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

.email-subscription {
  margin-top: 40px;
  background-color: var(--card-bg);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: var(--shadow);
}

.email-subscription h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

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

.subscription-form {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
}

.subscription-form input {
  flex: 1;
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: 5px 0 0 5px;
  font-size: 1rem;
}

.subscription-form button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 0 25px;
  border-radius: 0 5px 5px 0;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

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

/* Футер */
footer {
  background-color: #2a2a2a;
  color: white;
  padding: 50px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 40px;
}

.footer-logo {
  margin-bottom: 20px;
}

.footer-logo img {
  height: 40px;
}

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

.footer-heading {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 20px;
}

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

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

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

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

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

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #444;
  color: white;
  transition: all 0.3s ease;
}

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

.copyright {
  text-align: center;
  border-top: 1px solid #444;
  padding-top: 20px;
  font-size: 0.9rem;
  color: #bbb;
}

/* Cookies плашка */
.cookie-notice {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--card-bg);
  padding: 20px;
  box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
  z-index: 9999;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transform: translateY(100%);
  transition: transform 0.4s ease-in-out;
}

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

.cookie-content {
  flex: 1;
}

.cookie-content h3 {
  margin-bottom: 10px;
}

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

.cookie-button {
  padding: 8px 16px;
  border-radius: 4px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
}

.cookie-accept {
  background-color: var(--success-color);
  color: white;
}

.cookie-customize, .cookie-decline {
  background-color: transparent;
  color: var(--text-color);
  border: 1px solid var(--border-color);
}

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

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

/* Всплывающие сообщения */
.popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.7);
  background-color: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  z-index: 1001;
  text-align: center;
  width: 400px;
  max-width: 90%;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.popup.show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

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

.popup h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

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

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

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

/* Медиа-запросы */
@media (max-width: 992px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  header {
    padding: 15px 0;
  }
  
  .logo h1 {
    font-size: 1.5rem;
  }
  
  .logo img {
    height: 40px;
  }
  
  nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--primary-color);
    flex-direction: column;
    text-align: center;
    padding: 20px 0;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  }
  
  nav.active ul {
    display: flex;
  }
  
  nav ul li {
    margin: 0 0 10px;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .hero h2 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .subscription-form {
    flex-direction: column;
  }
  
  .subscription-form input, 
  .subscription-form button {
    border-radius: 5px;
  }
  
  .subscription-form button {
    margin-top: 10px;
    padding: 12px 15px;
  }
  
  .cookie-notice {
    flex-direction: column;
  }
  
  .cookie-buttons {
    margin-left: 0;
    margin-top: 15px;
    justify-content: center;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 576px) {
  main {
    margin-top: 80px;
    padding: 20px 0;
  }
  
  .hero {
    padding: 40px 15px;
  }
  
  .post-header h1 {
    font-size: 2rem;
  }
  
  .featured-image {
    height: 250px;
  }
  
  .team-container {
    grid-template-columns: 1fr;
  }
}
