/* Основные стили */
:root {
  --primary-color: #3498db;
  --secondary-color: #2980b9;
  --accent-color: #f39c12;
  --text-color: #333;
  --light-text: #666;
  --bg-color: #fff;
  --light-bg: #f9f9f9;
  --border-color: #e5e5e5;
  --success-color: #2ecc71;
  --font-main: 'Roboto', sans-serif;
  --font-headings: '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(--bg-color);
  font-size: 16px;
}

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

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

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Заголовки */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headings);
  margin-bottom: 0.8em;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-color);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
  position: relative;
  padding-bottom: 10px;
  transition: color 0.3s ease;
}

h2:hover {
  color: var(--primary-color);
}

h2:after {
  content: '';
  position: absolute;
  width: 60px;
  height: 3px;
  background-color: var(--accent-color);
  bottom: 0;
  left: 0;
  transition: width 0.3s ease;
}

h2:hover:after {
  width: 100px;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1.5rem;
}

/* Хедер */
.header {
  background-color: var(--bg-color);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 0;
}

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

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

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

.nav-item {
  margin-left: 2rem;
}

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

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

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

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

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

/* Мобильное меню */
.mobile-menu-btn {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  font-size: 1.5rem;
}

/* Герой-секция */
.hero {
  background: linear-gradient(135deg, rgba(52, 152, 219, 0.9), rgba(41, 128, 185, 0.9)), url('../images/1.jpg');
  background-size: cover;
  background-position: center;
  color: white;
  padding: 7rem 0;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3.2rem;
  margin-bottom: 1.5rem;
  color: white;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--accent-color);
  color: white;
}

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

/* Блог посты */
.blog-section {
  padding: 5rem 0;
  background-color: var(--light-bg);
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

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

.post-card {
  background-color: white;
  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(-10px);
  box-shadow: 0 15px 25px rgba(0,0,0,0.1);
}

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

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

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

.post-content {
  padding: 1.5rem;
}

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

.post-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

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

.read-more {
  display: inline-block;
  font-weight: 600;
}

/* Страница отдельного поста */
.single-post {
  padding: 5rem 0;
}

.post-header {
  text-align: center;
  margin-bottom: 3rem;
}

.post-meta {
  margin-bottom: 1rem;
  color: var(--light-text);
}

.post-featured-img {
  margin-bottom: 2rem;
  border-radius: 10px;
  overflow: hidden;
}

.post-content h2 {
  margin-top: 2.5rem;
}

.post-content p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.post-content ul, .post-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.post-content li {
  margin-bottom: 0.5rem;
}

.post-tags {
  margin-top: 2.5rem;
}

.tag {
  display: inline-block;
  background-color: #f1f1f1;
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  color: var(--light-text);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.tag:hover {
  background-color: var(--primary-color);
  color: white;
}

/* О нас */
.about-section {
  padding: 5rem 0;
}

.about-intro {
  margin-bottom: 4rem;
}

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

.team-member {
  text-align: center;
}

.team-img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1rem;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

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

.team-name {
  margin-bottom: 0.5rem;
}

.team-role {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 1rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background-color: #f5f5f5;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

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

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

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

/* Контактная форма */
.contact-section {
  padding: 5rem 0;
}

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

.contact-info {
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.contact-icon {
  margin-right: 1rem;
  width: 24px;
  height: 24px;
  fill: var(--primary-color);
}

.contact-form {
  background-color: white;
  padding: 2.5rem;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

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

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

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

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

.submit-btn:hover {
  background-color: var(--secondary-color);
  transform: translateY(-3px);
}

/* Футер */
.footer {
  background-color: #2c3e50;
  color: white;
  padding: 4rem 0 2rem;
}

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

.footer-logo {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: white;
}

.footer-about {
  margin-bottom: 1.5rem;
}

.footer-heading {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.footer-heading:after {
  content: '';
  position: absolute;
  width: 40px;
  height: 2px;
  background-color: var(--accent-color);
  bottom: -10px;
  left: 0;
}

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

.footer-link-item {
  margin-bottom: 0.8rem;
}

.footer-link {
  color: rgba(255,255,255,0.7);
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: white;
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.1);
  transition: background-color 0.3s ease, transform 0.3s ease;
}

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

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

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

.footer-legal {
  margin-top: 1rem;
}

.footer-legal a {
  color: rgba(255,255,255,0.7);
  margin: 0 0.5rem;
  transition: color 0.3s ease;
}

.footer-legal a:hover {
  color: white;
}

/* Cookie уведомление */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(44, 62, 80, 0.95);
  color: white;
  padding: 1rem 0;
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

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

.cookie-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.cookie-text {
  flex: 1 0 300px;
}

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

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

.cookie-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cookie-btn {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.accept-cookies {
  background-color: var(--accent-color);
  color: white;
}

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

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

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

.decline-cookies {
  background-color: #7f8c8d;
  color: white;
}

.decline-cookies:hover {
  background-color: #95a5a6;
}

/* Модальное окно благодарности */
.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: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

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

.thank-you-modal.show .modal-content {
  transform: translateY(0);
}

.modal-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 1.5rem;
  background-color: var(--success-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-icon svg {
  width: 35px;
  height: 35px;
  fill: white;
}

.modal-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--success-color);
}

.modal-close {
  padding: 0.7rem 2rem;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 5px;
  font-weight: 600;
  margin-top: 1.5rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

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

/* Адаптивный дизайн */
@media (max-width: 992px) {
  h1 {
    font-size: 2.2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  .posts-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }
  
  .nav-list {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: 0;
    background-color: white;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    transition: height 0.3s ease;
    z-index: 100;
  }
  
  .nav-list.open {
    height: auto;
    padding: 1.5rem 0;
  }
  
  .nav-item {
    margin: 0.8rem 0;
  }
  
  .hero {
    padding: 5rem 0;
  }
  
  .cookie-content {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .cookie-buttons {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 576px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.6rem;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .posts-grid, .team-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
}
