/* Основные стили */
:root {
  --primary-color: #2a52be;
  --secondary-color: #4169e1;
  --accent-color: #ffd700;
  --background-color: #f8f9fa;
  --dark-color: #343a40;
  --text-color: #212529;
  --light-color: #ffffff;
  --border-color: #dee2e6;
  --success-color: #28a745;
  --danger-color: #dc3545;
  --warning-color: #ffc107;
  --info-color: #17a2b8;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

body {
  font-family: 'Roboto', 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
}

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

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

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

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

/* Навигация */
.navbar {
  background-color: var(--light-color);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 1rem 0;
}

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

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

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

.logo-text {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
}

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

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

.nav-link {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--dark-color);
  padding: 0.5rem;
  border-bottom: 2px solid transparent;
}

.nav-link:hover, 
.nav-link.active {
  color: var(--primary-color);
  border-bottom: 2px solid var(--primary-color);
}

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

/* Заголовок */
.hero {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--light-color);
  padding: 3rem 0;
  text-align: center;
  margin-bottom: 2rem;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

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

.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  background-color: var(--accent-color);
  color: var(--dark-color);
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

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

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

.btn-secondary:hover {
  background-color: var(--light-color);
  color: var(--primary-color);
}

/* Секция постов */
.posts-section {
  padding: 2rem 0;
}

.section-title {
  font-size: 2.2rem;
  margin-bottom: 2rem;
  text-align: center;
  color: var(--dark-color);
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 100px;
  height: 3px;
  background-color: var(--primary-color);
  margin: 0.5rem auto;
}

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

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

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

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

.post-content {
  padding: 1.5rem;
}

.post-title {
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
  color: var(--dark-color);
}

.post-meta {
  display: flex;
  align-items: center;
  margin-bottom: 0.8rem;
  font-size: 0.9rem;
  color: #666;
}

.post-date {
  margin-right: 1rem;
  display: flex;
  align-items: center;
}

.post-date svg, .post-category svg {
  width: 16px;
  height: 16px;
  margin-right: 5px;
}

.post-excerpt {
  margin-bottom: 1.2rem;
  color: #555;
}

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

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

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

/* Одиночный пост */
.post-header {
  text-align: center;
  margin-bottom: 2rem;
}

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

.post-header .post-meta {
  justify-content: center;
  margin-bottom: 1.5rem;
}

.featured-image {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 2rem;
}

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

.post-body h2 {
  margin: 2rem 0 1rem;
  font-size: 1.8rem;
}

.post-body h3 {
  margin: 1.5rem 0 1rem;
  font-size: 1.5rem;
}

.post-body p {
  margin-bottom: 1.5rem;
}

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

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

.post-body blockquote {
  border-left: 4px solid var(--primary-color);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background-color: rgba(0,0,0,0.03);
  font-style: italic;
}

.post-body img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 2rem auto;
  border-radius: 8px;
}

.post-body code {
  background-color: #f1f1f1;
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-size: 0.9rem;
  font-family: 'Courier New', monospace;
}

.post-body pre {
  background-color: #333;
  color: #f8f8f8;
  padding: 1rem;
  border-radius: 5px;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.post-body pre code {
  background-color: transparent;
  color: inherit;
  padding: 0;
}

.share-post {
  margin-top: 2rem;
  text-align: center;
}

.share-post h3 {
  margin-bottom: 1rem;
}

.share-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.share-button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--light-color);
  transition: transform 0.3s ease;
}

.share-button:hover {
  transform: translateY(-3px);
}

.share-button.facebook {
  background-color: #3b5998;
}

.share-button.twitter {
  background-color: #1da1f2;
}

.share-button.linkedin {
  background-color: #0077b5;
}

.share-button svg {
  width: 20px;
  height: 20px;
}

.related-posts {
  margin-top: 3rem;
}

.related-posts h2 {
  text-align: center;
  margin-bottom: 2rem;
}

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

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

.team-card {
  background-color: var(--light-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.3s ease;
}

.team-card:hover {
  transform: translateY(-5px);
}

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

.team-info {
  padding: 1.5rem;
}

.team-name {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

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

.team-bio {
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

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

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

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

.about-content {
  max-width: 800px;
  margin: 0 auto 3rem;
  padding: 0 1rem;
  line-height: 1.8;
  font-size: 1.1rem;
}

.mission-vision {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 3rem 0;
}

.mission, .vision {
  background-color: var(--light-color);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.mission h3, .vision h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

/* Контакты */
.contact-section {
  padding: 3rem 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info {
  padding-right: 2rem;
}

.contact-info h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--dark-color);
}

.contact-info p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

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

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

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

.info-content p {
  margin-bottom: 0;
  color: #555;
}

.contact-form {
  background-color: var(--light-color);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

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

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

.form-control {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 1rem;
}

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

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

.btn-submit {
  background-color: var(--primary-color);
  color: var(--light-color);
  padding: 1rem 2rem;
}

.btn-submit:hover {
  background-color: var(--secondary-color);
}

.admin-preview {
  margin-top: 3rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.admin-preview h3 {
  background-color: var(--dark-color);
  color: var(--light-color);
  padding: 1rem;
  margin: 0;
}

.iframe-container {
  position: relative;
  overflow: hidden;
  padding-top: 56.25%; /* 16:9 соотношение сторон */
}

.iframe-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Жалобы */
.complaints-section {
  margin-top: 3rem;
  background-color: var(--light-color);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.complaints-section h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: var(--dark-color);
}

/* Футер */
.footer {
  background-color: var(--dark-color);
  color: var(--light-color);
  padding: 3rem 0 1.5rem;
  margin-top: 3rem;
}

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

.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 1.2rem;
}

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

.footer-logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--light-color);
}

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

.footer h3 {
  font-size: 1.3rem;
  margin-bottom: 1.2rem;
  position: relative;
  padding-bottom: 0.8rem;
}

.footer h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 2px;
  background-color: var(--accent-color);
}

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

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

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

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

.footer-contact p {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.footer-contact svg {
  width: 18px;
  height: 18px;
  margin-right: 10px;
  flex-shrink: 0;
  margin-top: 4px;
}

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

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

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

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

.footer-bottom-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 0.8rem;
}

.footer-bottom-links a {
  color: #ccc;
  margin: 0 0.8rem;
}

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

/* Кнопка наверх */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: var(--light-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--secondary-color);
  transform: translateY(-3px);
}

/* Cookie плашка */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--light-color);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  padding: 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transform: translateY(100%);
  transition: transform 0.5s ease;
}

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

.cookie-text {
  flex-grow: 1;
  padding-right: 1rem;
}

.cookie-text h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

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

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

.accept-all {
  background-color: var(--success-color);
  color: var(--light-color);
}

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

.decline {
  background-color: var(--danger-color);
  color: var(--light-color);
}

/* Всплывающее окно спасибо */
.thank-you-popup {
  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: 1100;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

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

.popup-content {
  background-color: var(--light-color);
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transform: translateY(-50px);
  transition: transform 0.5s ease;
}

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

.popup-content h2 {
  color: var(--success-color);
  margin-bottom: 1rem;
}

.popup-content p {
  margin-bottom: 1.5rem;
}

.close-popup {
  background-color: var(--primary-color);
  color: var(--light-color);
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

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

/* Адаптивность */
@media (max-width: 992px) {
  .mission-vision {
    grid-template-columns: 1fr;
  }
  
  .contact-section {
    grid-template-columns: 1fr;
  }
  
  .contact-info {
    padding-right: 0;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .posts-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
  
  .hamburger {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100%;
    background-color: var(--light-color);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: right 0.5s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .nav-item {
    margin: 1.5rem 0;
  }
  
  .close-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
  }
}

@media (max-width: 576px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .posts-grid {
    grid-template-columns: 1fr;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
}
