/* Основные стили */
:root {
  --primary-color: #0056b3;
  --secondary-color: #4a86e8;
  --accent-color: #ffc107;
  --text-color: #333;
  --light-text: #6c757d;
  --light-bg: #f8f9fa;
  --dark-bg: #2c3e50;
  --success-color: #28a745;
  --danger-color: #dc3545;
  --white: #ffffff;
  --black: #000000;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --border-radius: 5px;
  --transition: all 0.3s ease;
}

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

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

/* Типография */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 1rem;
  font-weight: 700;
  color: var(--dark-bg);
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1.25rem;
}

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

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

/* Контейнеры */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Навигационная панель */
.navbar {
  background-color: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

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

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

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

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

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

.nav-links a {
  font-weight: 500;
  padding: 5px 10px;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.nav-links a:hover {
  background-color: var(--light-bg);
  text-decoration: none;
}

.nav-links a.active {
  color: var(--primary-color);
  border-bottom: 2px solid var(--primary-color);
}

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

/* Герой-секция */
.hero {
  background-color: var(--dark-bg);
  color: var(--white);
  padding: 80px 0;
  text-align: center;
  background-image: linear-gradient(45deg, rgba(0, 86, 179, 0.8), rgba(74, 134, 232, 0.8)), url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
}

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

.hero p {
  font-size: 1.25rem;
  max-width: 800px;
  margin: 0 auto 2rem;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
}

/* Кнопки */
.btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: var(--border-radius);
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

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

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

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

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

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

.btn-accent:hover {
  background-color: #e0a800;
  color: var(--dark-bg);
  text-decoration: none;
}

/* Секции */
.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  display: inline-block;
  position: relative;
  margin-bottom: 20px;
}

.section-title h2::after {
  content: '';
  position: absolute;
  width: 70px;
  height: 3px;
  background-color: var(--primary-color);
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

.section-title p {
  color: var(--light-text);
  max-width: 800px;
  margin: 0 auto;
}

/* Блоки постов */
.posts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

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

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

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

.post-content {
  padding: 20px;
}

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

.post-title {
  font-size: 1.25rem;
  margin-bottom: 10px;
  transition: var(--transition);
}

.post:hover .post-title {
  color: var(--primary-color);
}

.post-excerpt {
  color: var(--text-color);
  margin-bottom: 15px;
}

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

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

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

/* Одиночный пост */
.single-post {
  background-color: var(--white);
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.post-header {
  margin-bottom: 30px;
}

.post-meta {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  color: var(--light-text);
  font-size: 0.9rem;
}

.post-meta > span {
  margin-right: 20px;
  display: flex;
  align-items: center;
}

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

.featured-image {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  margin-bottom: 30px;
}

.post-body h2, 
.post-body h3 {
  margin-top: 30px;
}

.post-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  margin: 20px 0;
}

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

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

.post-footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.tag {
  background-color: var(--light-bg);
  color: var(--light-text);
  padding: 5px 10px;
  border-radius: 30px;
  font-size: 0.85rem;
  margin-right: 10px;
  margin-bottom: 10px;
}

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

.share-text {
  margin-right: 15px;
  font-weight: 500;
}

.share-links {
  display: flex;
}

.share-link {
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  border-radius: 50%;
  margin-right: 10px;
  transition: var(--transition);
}

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

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

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

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

/* Цитата из будущего */
.quote-block {
  background: linear-gradient(135deg, #0056b3 0%, #40c4ff 100%);
  color: var(--white);
  padding: 40px;
  border-radius: var(--border-radius);
  margin: 40px 0;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.quote-block::before {
  content: '"';
  position: absolute;
  top: -20px;
  left: 20px;
  font-size: 150px;
  opacity: 0.2;
  font-family: Georgia, serif;
}

.quote-content {
  font-size: 1.3rem;
  font-style: italic;
  position: relative;
  z-index: 1;
  margin-bottom: 20px;
}

.quote-author {
  font-weight: 700;
  display: block;
  text-align: right;
}

.quote-title {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.quote-title h3 {
  margin: 0;
  color: var(--white);
}

.quote-title svg {
  margin-right: 10px;
}

/* Всплывающие подсказки */
.tooltip {
  position: relative;
  display: inline-block;
  border-bottom: 1px dotted var(--light-text);
  cursor: help;
}

.tooltip .tooltip-text {
  visibility: hidden;
  width: 200px;
  background-color: var(--dark-bg);
  color: var(--white);
  text-align: center;
  border-radius: var(--border-radius);
  padding: 10px;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s;
  box-shadow: var(--shadow);
  font-size: 0.9rem;
}

.tooltip .tooltip-text::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: var(--dark-bg) transparent transparent transparent;
}

.tooltip:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

/* Форма контакта */
.contact-form-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

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

.contact-info h3 {
  color: var(--white);
  margin-bottom: 20px;
}

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

.contact-icon {
  margin-right: 15px;
  font-size: 1.5rem;
}

.contact-text {
  line-height: 1.4;
}

.contact-text a {
  color: var(--white);
  text-decoration: underline;
}

.contact-text a:hover {
  text-decoration: none;
}

.social-links {
  display: flex;
  margin-top: 20px;
}

.social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  margin-right: 10px;
  transition: var(--transition);
}

.social-link:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
}

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

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

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

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  background-color: #f9f9f9;
  transition: var(--transition);
}

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

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

.submit-btn {
  width: 100%;
  padding: 15px;
  font-size: 1rem;
}

/* Страница О нас */
.team-section {
  background-color: var(--light-bg);
}

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

.team-member {
  background-color: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

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

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

.team-info {
  padding: 20px;
  text-align: center;
}

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

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

.team-bio {
  margin-bottom: 15px;
  color: var(--light-text);
}

.team-social {
  display: flex;
  justify-content: center;
}

.team-social a {
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--light-text);
  background-color: var(--light-bg);
  border-radius: 50%;
  margin: 0 5px;
  transition: var(--transition);
}

.team-social a:hover {
  color: var(--white);
  background-color: var(--primary-color);
}

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

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

.footer-logo {
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  display: inline-block;
}

.footer-about {
  margin-bottom: 20px;
}

.footer-heading {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: var(--white);
}

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

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

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

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

.footer-contact {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.footer-contact svg {
  margin-right: 10px;
  color: var(--primary-color);
}

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

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

.footer-bottom a {
  color: #aaa;
  margin: 0 10px;
}

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

/* Модальное окно для cookies */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--white);
  padding: 20px;
  border-radius: var(--border-radius);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  z-index: 999;
  width: 90%;
  max-width: 600px;
  display: none;
}

.cookie-banner.show {
  display: block;
}

.cookie-content {
  margin-bottom: 15px;
}

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

.cookie-buttons {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.cookie-btn {
  padding: 10px 20px;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-weight: 500;
  transition: var(--transition);
  border: none;
  flex-grow: 1;
  text-align: center;
}

.accept-all {
  background-color: var(--primary-color);
  color: var(--white);
}

.accept-all:hover {
  background-color: #004494;
}

.customize {
  background-color: var(--light-bg);
  color: var(--text-color);
}

.customize:hover {
  background-color: #e2e6ea;
}

.decline {
  background-color: transparent;
  border: 1px solid #ddd;
  color: var(--light-text);
}

.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: 1000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

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

.modal-content {
  background-color: var(--white);
  padding: 40px;
  border-radius: var(--border-radius);
  text-align: center;
  max-width: 500px;
  width: 90%;
  box-shadow: var(--shadow);
  transform: translateY(50px);
  transition: transform 0.5s ease;
}

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

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

.modal-title {
  margin-bottom: 15px;
  color: var(--success-color);
}

.modal-btn {
  margin-top: 20px;
  padding: 10px 25px;
}

/* Адаптивность */
@media (max-width: 992px) {
  .contact-form-wrapper {
    grid-template-columns: 1fr;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  .section {
    padding: 60px 0;
  }
}

@media (max-width: 768px) {
  .navbar-container {
    flex-direction: column;
  }
  
  .logo {
    margin-bottom: 15px;
  }
  
  .nav-links {
    flex-direction: column;
    width: 100%;
  }
  
  .nav-links li {
    margin: 0;
    margin-bottom: 10px;
    width: 100%;
    text-align: center;
  }
  
  .nav-links a {
    display: block;
    padding: 10px;
  }
  
  .mobile-menu-btn {
    display: block;
    position: absolute;
    top: 15px;
    right: 15px;
  }
  
  .hero {
    padding: 50px 0;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .section {
    padding: 40px 0;
  }
  
  .section-title h2 {
    font-size: 1.5rem;
  }
  
  .quote-content {
    font-size: 1.1rem;
  }
  
  .cookie-buttons {
    flex-direction: column;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .btn {
    width: 100%;
    margin-bottom: 10px;
  }
  
  .posts {
    grid-template-columns: 1fr;
  }
  
  .quote-block {
    padding: 25px;
  }
  
  .modal-content {
    padding: 25px;
  }
}
