/* Основные стили */
:root {
  --primary-color: #3498db;
  --secondary-color: #2980b9;
  --accent-color: #e74c3c;
  --background-color: #f5f7fa;
  --text-color: #2c3e50;
  --light-text: #ecf0f1;
  --dark-background: #34495e;
  --gradient-start: #3498db;
  --gradient-end: #2c3e50;
  --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Roboto', sans-serif;
  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: var(--transition);
}

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

h1, h2, h3, h4, h5, h6 {
  margin-bottom: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

p {
  margin-bottom: 1rem;
}

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

/* Навигация */
.navbar {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  color: var(--light-text);
  padding: 15px 0;
  box-shadow: var(--box-shadow);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

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

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

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

.logo a {
  font-size: 1.5rem;
  color: var(--light-text);
  font-weight: 700;
  letter-spacing: 1px;
}

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

.nav-links li {
  margin-left: 25px;
}

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

.nav-links a:after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 2px;
  background-color: var(--light-text);
  transition: var(--transition);
}

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

.mobile-menu-btn {
  display: none;
  cursor: pointer;
  color: var(--light-text);
  font-size: 1.5rem;
}

/* Стили для главной страницы */
.hero {
  padding: 150px 0 80px;
  text-align: center;
  background: url('images/1.jpg') no-repeat center/cover;
  position: relative;
  color: white;
}

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

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  text-transform: uppercase;
}

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

.btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn:hover {
  background-color: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* 3D кнопка с световым эффектом */
.btn-3d {
  position: relative;
  display: inline-block;
  padding: 15px 35px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 6px;
  box-shadow: 0 8px 0 rgba(44, 62, 80, 0.5);
  transform: perspective(100px) rotateX(0deg);
  transition: transform 0.3s, box-shadow 0.3s;
  overflow: hidden;
  cursor: pointer;
  text-align: center;
  margin: 20px 0;
}

.btn-3d:hover {
  transform: perspective(100px) rotateX(5deg) translateY(-2px);
  box-shadow: 0 10px 0 rgba(44, 62, 80, 0.5);
}

.btn-3d:active {
  transform: perspective(100px) rotateX(10deg) translateY(4px);
  box-shadow: 0 3px 0 rgba(44, 62, 80, 0.5);
}

.btn-3d::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to bottom right, 
    rgba(255, 255, 255, 0.1), 
    rgba(255, 255, 255, 0.05), 
    rgba(255, 255, 255, 0.3), 
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.1)
  );
  transform: rotate(45deg);
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}

.btn-3d:hover::before {
  opacity: 1;
  animation: shine 1.5s infinite;
}

@keyframes shine {
  0% {
    left: -50%;
    opacity: 0.3;
  }
  100% {
    left: 120%;
    opacity: 0;
  }
}

.posts-container {
  padding: 60px 0;
}

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

.post-card {
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

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

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

.post-content {
  padding: 20px;
}

.post-content h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.post-meta {
  display: flex;
  align-items: center;
  font-size: 0.85rem;
  color: #95a5a6;
  margin-bottom: 15px;
}

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

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

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

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

.read-more svg {
  margin-left: 5px;
  transition: var(--transition);
}

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

/* Стили для страницы "О нас" */
.about-section {
  padding: 120px 0 60px;
}

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

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

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 60px;
}

.about-content img {
  width: 100%;
  border-radius: 10px;
  box-shadow: var(--box-shadow);
}

.team-section {
  padding: 40px 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(--box-shadow);
  text-align: center;
  transition: var(--transition);
}

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

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

.team-info {
  padding: 20px;
}

.team-info h3 {
  margin-bottom: 5px;
}

.team-info p {
  color: #7f8c8d;
  margin-bottom: 15px;
}

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

.social-links a {
  color: var(--dark-background);
  transition: var(--transition);
}

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

/* Стили для страницы "Контакты" */
.contact-section {
  padding: 120px 0 60px;
}

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

.contact-header h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

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

.contact-info h3 {
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.contact-info h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 50px;
  height: 3px;
  background-color: var(--primary-color);
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
}

.contact-icon {
  margin-right: 15px;
  min-width: 20px;
  color: var(--primary-color);
}

.contact-text h4 {
  margin-bottom: 5px;
}

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

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

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-family: 'Roboto', sans-serif;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

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

/* Стили для отдельных постов */
.post-section {
  padding: 120px 0 60px;
}

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

.post-header h1 {
  font-size: 2.8rem;
  margin-bottom: 20px;
}

.post-header-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  color: #95a5a6;
  margin-bottom: 30px;
}

.post-header-meta span {
  margin: 0 15px;
  display: flex;
  align-items: center;
}

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

.post-hero-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 40px;
  box-shadow: var(--box-shadow);
}

.post-content-wrapper {
  background-color: white;
  padding: 40px;
  border-radius: 10px;
  box-shadow: var(--box-shadow);
}

.post-content-wrapper h2 {
  font-size: 1.8rem;
  margin-top: 40px;
  margin-bottom: 20px;
}

.post-content-wrapper img {
  width: 100%;
  border-radius: 5px;
  margin: 20px 0;
}

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

.tag {
  padding: 5px 15px;
  background-color: #f1f2f6;
  border-radius: 20px;
  font-size: 0.85rem;
  transition: var(--transition);
}

.tag:hover {
  background-color: #dfe4ea;
}

.share-post {
  margin-top: 40px;
  display: flex;
  align-items: center;
}

.share-post p {
  margin-right: 15px;
  margin-bottom: 0;
  font-weight: 500;
}

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

.share-icons a {
  color: var(--dark-background);
  transition: var(--transition);
}

.share-icons a:hover {
  color: var(--primary-color);
}

.related-posts {
  margin-top: 60px;
}

.related-posts h3 {
  margin-bottom: 30px;
  position: relative;
  display: inline-block;
}

.related-posts h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 50px;
  height: 3px;
  background-color: var(--primary-color);
}

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

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

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

.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

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

.footer-col h3 {
  color: var(--light-text);
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.footer-col h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 30px;
  height: 2px;
  background-color: var(--primary-color);
}

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

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

.footer-links a {
  color: #bdc3c7;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--light-text);
  padding-left: 5px;
}

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

.footer-social a {
  color: var(--light-text);
  transition: var(--transition);
}

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

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

.footer-bottom p {
  margin-bottom: 10px;
}

.footer-bottom-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-bottom-links a {
  color: #bdc3c7;
  transition: var(--transition);
}

.footer-bottom-links a:hover {
  color: var(--light-text);
}

/* Cookies плашка */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1000px;
  background-color: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.cookie-text {
  flex: 1;
  margin-right: 20px;
}

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

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

.cookie-btn {
  padding: 10px 20px;
  border-radius: 5px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

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

.cookie-accept:hover {
  background-color: var(--secondary-color);
}

.cookie-settings {
  background-color: transparent;
  border: 1px solid #ddd;
}

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

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

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

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

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

.thank-you-content {
  background-color: white;
  padding: 40px;
  border-radius: 10px;
  text-align: center;
  max-width: 500px;
  width: 90%;
  transform: translateY(20px);
  transition: all 0.3s;
}

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

.thank-you-content h3 {
  margin-bottom: 20px;
}

.thank-you-content svg {
  color: var(--primary-color);
  font-size: 3rem;
  margin-bottom: 20px;
}

.close-modal {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 10px 25px;
  border-radius: 5px;
  margin-top: 20px;
  cursor: pointer;
  transition: var(--transition);
}

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

/* Медиа запросы */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .contact-container {
    grid-template-columns: 1fr;
  }
  
  .about-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .navbar-container {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .nav-links {
    margin-top: 15px;
    flex-direction: column;
    width: 100%;
  }
  
  .nav-links li {
    margin-left: 0;
    margin-bottom: 10px;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .post-header h1 {
    font-size: 2.2rem;
  }
  
  .post-content-wrapper {
    padding: 20px;
  }
  
  .team-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}

@media (max-width: 576px) {
  .hero {
    padding: 120px 0 60px;
  }
  
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .posts-grid {
    grid-template-columns: 1fr;
  }
  
  .team-grid {
    grid-template-columns: 1fr;
  }
  
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .cookie-text {
    margin-right: 0;
    margin-bottom: 20px;
  }
}
