/* Основные стили */
:root {
  --primary-color: #2c3e50;
  --secondary-color: #3498db;
  --accent-color: #e74c3c;
  --light-gray: #f5f5f5;
  --dark-gray: #333;
  --white: #fff;
  --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(--dark-gray);
  line-height: 1.6;
  background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--primary-color);
  margin-bottom: 0.8rem;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

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

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

p {
  margin-bottom: 1.2rem;
}

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

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

/* Навигация */
.navbar {
  background-color: var(--primary-color);
  padding: 1rem 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

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

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

.logo h1 {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 0;
}

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

.nav-links li {
  margin-left: 2rem;
}

.nav-links a {
  color: var(--white);
  font-weight: 500;
  padding: 0.5rem;
  border-radius: 4px;
}

.nav-links a:hover {
  color: var(--white);
  background-color: var(--secondary-color);
}

.hamburger {
  display: none;
  cursor: pointer;
  color: var(--white);
  font-size: 1.5rem;
}

/* Главная страница */
.hero {
  background-image: linear-gradient(rgba(44, 62, 80, 0.8), rgba(44, 62, 80, 0.8)), url('images/1.jpg');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-align: center;
  position: relative;
}

.hero-content {
  z-index: 1;
  max-width: 800px;
}

.hero h1 {
  font-size: 3rem;
  color: var(--white);
  margin-bottom: 1.5rem;
}

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

.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  background-color: var(--secondary-color);
  color: var(--white);
  border: none;
  border-radius: 4px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

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

.blog-section {
  padding: 5rem 0;
}

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

.section-title h2 {
  font-size: 2.5rem;
  color: var(--primary-color);
}

.section-title p {
  font-size: 1.1rem;
  color: var(--dark-gray);
}

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

.post-card {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  background-color: var(--white);
}

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

.post-image {
  height: 200px;
  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.1);
}

.post-content {
  padding: 1.5rem;
}

.post-title {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
}

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

.read-more {
  color: var(--secondary-color);
  font-weight: 500;
  display: flex;
  align-items: center;
}

.read-more i {
  margin-left: 0.5rem;
  transition: transform 0.3s ease;
}

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

/* Таймлайн */
.timeline {
  margin: 4rem 0;
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 4px;
  background-color: var(--primary-color);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  width: 50%;
  box-sizing: border-box;
}

.timeline-item::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--secondary-color);
  top: 15px;
  right: -10px;
  z-index: 1;
}

.left {
  left: 0;
}

.right {
  left: 50%;
}

.right::after {
  left: -10px;
}

.content {
  padding: 20px;
  background-color: var(--light-gray);
  position: relative;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.timeline-date {
  font-weight: bold;
  color: var(--accent-color);
  margin-bottom: 0.5rem;
}

/* Итог раздел */
.summary {
  background-color: var(--light-gray);
  padding: 3rem 0;
  margin-top: 4rem;
}

.summary-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.summary h3 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.summary p {
  font-size: 1.1rem;
  line-height: 1.8;
}

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

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.info-item {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.info-item i {
  font-size: 1.5rem;
  color: var(--secondary-color);
  margin-right: 1rem;
  min-width: 30px;
}

.info-item p {
  margin-bottom: 0;
}

.contact-form {
  background-color: var(--light-gray);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.form-control {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
}

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

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

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

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

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

.team-card {
  background-color: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
}

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

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

.team-details {
  padding: 1.5rem;
}

.team-details h3 {
  margin-bottom: 0.3rem;
}

.team-details p {
  color: var(--dark-gray);
  margin-bottom: 1rem;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

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

.social-icons a:hover {
  background-color: var(--secondary-color);
  color: var(--white);
}

/* Пост */
.post-header {
  background-color: var(--light-gray);
  padding: 5rem 0;
  margin-bottom: 3rem;
}

.post-header-content {
  text-align: center;
}

.post-date {
  color: var(--accent-color);
  font-weight: 500;
  margin-bottom: 1rem;
  display: block;
}

.post-title-large {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.post-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  color: var(--dark-gray);
}

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

.post-meta i {
  margin-right: 0.5rem;
  color: var(--secondary-color);
}

.post-body {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

.post-body p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.post-body img {
  border-radius: 8px;
  margin: 2rem 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.post-body blockquote {
  border-left: 4px solid var(--secondary-color);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--primary-color);
}

.share-post {
  display: flex;
  align-items: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #eee;
}

.share-post span {
  margin-right: 1rem;
  font-weight: 500;
}

.share-icons {
  display: flex;
  gap: 1rem;
}

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

.share-icons a:hover {
  background-color: var(--secondary-color);
  color: var(--white);
}

/* Футер */
.footer {
  background-color: var(--primary-color);
  color: var(--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 {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.footer-logo img {
  height: 40px;
  margin-right: 1rem;
}

.footer-logo h3 {
  color: var(--white);
  margin-bottom: 0;
}

.footer-about p {
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.footer-links h4 {
  color: var(--white);
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

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

.footer-links li {
  margin-bottom: 0.8rem;
}

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

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

.footer-newsletter p {
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.newsletter-form {
  display: flex;
}

.newsletter-form input {
  flex-grow: 1;
  padding: 0.8rem;
  border: none;
  border-radius: 4px 0 0 4px;
}

.newsletter-form button {
  padding: 0 1.5rem;
  background-color: var(--secondary-color);
  color: var(--white);
  border: none;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.newsletter-form button:hover {
  background-color: var(--accent-color);
}

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

.social-icons-footer {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

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

.social-icons-footer a:hover {
  background-color: var(--secondary-color);
}

.copyright {
  color: #ddd;
  font-size: 0.9rem;
}

.footer-legal {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
}

.footer-legal a {
  color: #ddd;
  font-size: 0.9rem;
}

/* Cookies плашка */
.cookies-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--primary-color);
  color: var(--white);
  padding: 1.5rem;
  z-index: 1000;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

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

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

.cookies-text {
  max-width: 70%;
}

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

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

.cookies-buttons {
  display: flex;
  gap: 1rem;
}

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

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

.btn-settings, .btn-decline {
  background-color: transparent;
  border: 1px solid var(--white);
  color: var(--white);
}

.btn-accept:hover {
  background-color: var(--accent-color);
}

.btn-settings:hover, .btn-decline:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Модальное окно после отправки формы */
.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: all 0.3s ease;
}

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

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

.modal.show .modal-content {
  transform: scale(1);
}

.modal-header {
  margin-bottom: 1.5rem;
}

.modal-header i {
  font-size: 3rem;
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.modal-header h3 {
  color: var(--primary-color);
}

.modal-body {
  margin-bottom: 1.5rem;
}

.modal-footer .btn {
  min-width: 120px;
}

/* Адаптивность */
@media screen and (max-width: 992px) {
  .container {
    padding: 0 1.5rem;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .contact-container {
    grid-template-columns: 1fr;
  }
  
  .timeline::after {
    left: 31px;
  }
  
  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }
  
  .right {
    left: 0;
  }
  
  .timeline-item::after {
    left: 21px;
  }
}

@media screen and (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--primary-color);
    flex-direction: column;
    padding: 1rem 0;
  }
  
  .nav-links.show {
    display: flex;
  }
  
  .nav-links li {
    margin-left: 0;
    margin-bottom: 0.5rem;
    text-align: center;
  }
  
  .hamburger {
    display: block;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .section-title h2 {
    font-size: 2rem;
  }
  
  .cookies-content {
    flex-direction: column;
  }
  
  .cookies-text {
    max-width: 100%;
    margin-bottom: 1rem;
  }
}

@media screen and (max-width: 576px) {
  .hero {
    height: 400px;
  }
  
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .post-title-large {
    font-size: 2rem;
  }
}
