/* Основные настройки */
:root {
  --primary-color: #4a6cfd;
  --secondary-color: #6d42c7;
  --accent-color: #ff6b6b;
  --text-color: #333;
  --light-color: #f8f9fa;
  --dark-color: #343a40;
  --border-color: #e9ecef;
  --success-color: #28a745;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.12);
  --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  --font-main: 'Roboto', sans-serif;
  --font-heading: 'Montserrat', sans-serif;
}

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

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

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

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

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  font-weight: 600;
  text-align: center;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  text-decoration: none;
}

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

.btn-outline:hover {
  background-color: var(--primary-color);
  color: white;
  text-decoration: none;
}

.section {
  padding: 80px 0;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  margin-bottom: 40px;
  position: relative;
  color: var(--dark-color);
  text-align: center;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--gradient-primary);
  margin: 10px auto;
  border-radius: 2px;
}

/* Навигация */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
  padding: 15px 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  padding: 8px 0;
  box-shadow: var(--shadow-md);
}

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

.logo {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
  display: flex;
  align-items: center;
}

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

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

.nav-link {
  color: var(--dark-color);
  font-weight: 500;
  position: relative;
}

.nav-link:hover {
  color: var(--primary-color);
}

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

.nav-link:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px;
  background-color: var(--dark-color);
  transition: all 0.3s ease;
}

/* Главный баннер */
.hero {
  height: 80vh;
  display: flex;
  align-items: center;
  background-image: url('images/1.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
  margin-top: 70px;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.hero-content {
  position: relative;
  z-index: 1;
  color: white;
  max-width: 700px;
  margin-left: 50px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  font-family: var(--font-heading);
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 30px;
}

/* Карточки постов */
.blog-posts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.post-card {
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

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

.post-content {
  padding: 25px;
}

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

.post-title {
  font-size: 1.6rem;
  margin-bottom: 15px;
  color: var(--dark-color);
  font-family: var(--font-heading);
}

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

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

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

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

/* Полная страница поста */
.post-header {
  text-align: center;
  margin-bottom: 50px;
}

.post-header .post-title {
  font-size: 3rem;
  margin-bottom: 15px;
}

.post-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  font-size: 0.9rem;
  color: #777;
}

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

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

.post-full-image {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 30px;
}

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

.post-body h2 {
  font-size: 2rem;
  margin: 40px 0 20px;
  font-family: var(--font-heading);
}

.post-body h3 {
  font-size: 1.6rem;
  margin: 30px 0 15px;
  font-family: var(--font-heading);
}

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

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

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

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

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

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

.about-content {
  display: flex;
  gap: 50px;
  align-items: center;
  margin-bottom: 80px;
}

.about-text {
  flex: 1;
}

.about-image {
  flex: 1;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

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

.team-section {
  margin: 80px 0;
}

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

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

.team-member:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-md);
}

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

.team-info {
  padding: 20px;
}

.team-name {
  font-size: 1.4rem;
  margin-bottom: 5px;
  font-family: var(--font-heading);
}

.team-position {
  color: var(--primary-color);
  font-weight: 500;
  margin-bottom: 15px;
}

.team-bio {
  margin-bottom: 15px;
  font-size: 0.95rem;
  line-height: 1.7;
}

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

.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #f1f1f1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background-color: var(--primary-color);
}

.social-icon svg {
  width: 18px;
  height: 18px;
  fill: var(--dark-color);
  transition: all 0.3s ease;
}

.social-icon:hover svg {
  fill: white;
}

/* Контактная форма */
.contact-section {
  margin-top: 70px;
}

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

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

.contact-info-title {
  font-size: 1.8rem;
  margin-bottom: 30px;
  font-family: var(--font-heading);
  color: var(--dark-color);
}

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

.info-icon {
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
}

.info-icon svg {
  fill: white;
  width: 24px;
  height: 24px;
}

.info-content h3 {
  font-size: 1.2rem;
  margin-bottom: 5px;
  color: var(--dark-color);
}

.info-content p {
  color: #666;
}

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

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

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--dark-color);
}

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

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(74, 108, 253, 0.2);
}

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

.form-submit {
  width: 100%;
  font-size: 1.1rem;
}

/* Подписка */
.subscribe-section {
  background: var(--gradient-primary);
  padding: 60px 0;
  color: white;
  text-align: center;
  margin: 80px 0;
}

.subscribe-title {
  font-size: 2rem;
  margin-bottom: 20px;
  font-family: var(--font-heading);
}

.subscribe-text {
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.subscribe-form {
  display: flex;
  max-width: 600px;
  margin: 0 auto;
}

.subscribe-input {
  flex: 1;
  padding: 15px 20px;
  border: none;
  border-radius: 4px 0 0 4px;
  font-size: 1rem;
}

.subscribe-input:focus {
  outline: none;
}

.subscribe-button {
  padding: 15px 30px;
  background-color: var(--accent-color);
  color: white;
  border: none;
  border-radius: 0 4px 4px 0;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
}

.subscribe-button:hover {
  background-color: #ff5252;
}

.subscribers-count {
  margin-top: 20px;
  font-size: 1.1rem;
}

.subscribers-count span {
  font-weight: 700;
  font-size: 1.3rem;
}

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

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

.footer-column h3 {
  font-size: 1.4rem;
  margin-bottom: 25px;
  font-family: var(--font-heading);
  position: relative;
}

.footer-column h3::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: var(--primary-color);
  margin-top: 10px;
}

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

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

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

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

.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: rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

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

.footer-social svg {
  width: 20px;
  height: 20px;
  fill: white;
}

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

/* Cookie уведомление */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  padding: 20px;
  background-color: white;
  box-shadow: var(--shadow-md);
  border-radius: 10px;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

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

.cookie-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.cookie-text {
  font-size: 0.95rem;
  color: #666;
}

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

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

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

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

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

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

.cookie-customize:hover {
  background-color: #f8f9fa;
}

.cookie-decline {
  background-color: transparent;
  color: #dc3545;
  border: 1px solid #dc3545;
}

.cookie-decline:hover {
  background-color: #dc3545;
  color: white;
}

/* Модальные окна */
.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;
}

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

.modal-content {
  background-color: white;
  padding: 30px;
  border-radius: 10px;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(-50px);
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
}

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

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 600;
  font-family: var(--font-heading);
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #777;
}

.thank-you-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  display: block;
}

.thank-you-text {
  text-align: center;
  margin-bottom: 30px;
}

/* Адаптивность */
@media (max-width: 992px) {
  .section-title {
    font-size: 2.2rem;
  }
  
  .hero-title {
    font-size: 3rem;
  }
  
  .hero-subtitle {
    font-size: 1.3rem;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .post-header .post-title {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    flex-direction: column;
    background-color: white;
    width: 100%;
    padding: 30px;
    box-shadow: var(--shadow-sm);
    transition: left 0.3s ease;
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .hero-content {
    margin-left: 0;
    padding: 0 20px;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .about-content {
    flex-direction: column-reverse;
  }
  
  .footer-container {
    gap: 30px;
  }
  
  .post-full-image {
    max-height: 300px;
  }
  
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .cookie-buttons {
    margin-top: 20px;
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 576px) {
  .section {
    padding: 60px 0;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .post-card {
    min-width: 100%;
  }
  
  .blog-posts {
    grid-template-columns: 1fr;
  }
  
  .subscribe-form {
    flex-direction: column;
  }
  
  .subscribe-input {
    border-radius: 4px;
    margin-bottom: 10px;
  }
  
  .subscribe-button {
    border-radius: 4px;
    width: 100%;
  }
  
  .post-header .post-title {
    font-size: 2rem;
  }
}
