/* Основные стили */
:root {
  --primary-color: #4e54c8;
  --secondary-color: #8f94fb;
  --accent-color: #ff6b6b;
  --text-color: #333;
  --light-text: #666;
  --bg-color: #f9f9f9;
  --card-bg: #ffffff;
  --border-color: #eeeeee;
  --footer-bg: #2d3436;
  --footer-text: #f5f5f5;
}

* {
  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(--bg-color);
}

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

/* Шапка сайта */
header {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 20px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

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

.logo img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 50%;
  margin-right: 10px;
}

.logo h1 {
  font-size: 24px;
  color: white;
  margin: 0;
}

.navbar ul {
  display: flex;
  list-style: none;
}

.navbar li {
  margin-left: 25px;
}

.navbar a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  transition: color 0.3s;
}

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

/* Hero секция */
.hero {
  background: url('images/hero.jpg') no-repeat center center/cover;
  height: 400px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 20px;
}

.hero h2 {
  font-size: 42px;
  margin-bottom: 20px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

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

.btn {
  display: inline-block;
  background-color: var(--accent-color);
  color: white;
  padding: 12px 24px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
}

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

/* Основной контент */
main {
  padding: 60px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
  font-size: 32px;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  margin: 15px auto;
  border-radius: 2px;
}

/* Секция блога */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.blog-card {
  background-color: var(--card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.07);
  transition: transform 0.3s, box-shadow 0.3s;
}

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

.card-img {
  height: 200px;
  overflow: hidden;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

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

.card-content {
  padding: 25px;
}

.card-date {
  font-size: 14px;
  color: var(--light-text);
  margin-bottom: 10px;
}

.card-title {
  font-size: 22px;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.card-excerpt {
  color: var(--light-text);
  margin-bottom: 20px;
}

.read-more {
  display: inline-block;
  color: var(--primary-color);
  font-weight: 500;
  text-decoration: none;
  position: relative;
}

.read-more::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  background: var(--primary-color);
  left: 0;
  bottom: -2px;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.read-more:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Боковая панель */
.sidebar {
  background-color: var(--card-bg);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.07);
  margin-bottom: 30px;
}

.sidebar-title {
  font-size: 20px;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.sidebar-title::after {
  content: '';
  position: absolute;
  width: 50px;
  height: 3px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  left: 0;
  bottom: 0;
  border-radius: 2px;
}

.email-form {
  margin-bottom: 30px;
}

.form-input {
  width: 100%;
  padding: 12px 15px;
  margin-bottom: 15px;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  font-size: 16px;
}

.tip-box {
  background-color: #f0f5ff;
  border-left: 4px solid var(--primary-color);
  padding: 15px;
  border-radius: 5px;
}

.tip-box h4 {
  margin-bottom: 10px;
  color: var(--primary-color);
}

.two-column {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
}

/* Статья блога */
.post-header {
  margin-bottom: 40px;
}

.post-title {
  font-size: 38px;
  margin-bottom: 15px;
}

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

.post-content {
  margin-bottom: 40px;
  font-size: 18px;
}

.post-content p, 
.post-content ul, 
.post-content ol,
.post-content blockquote {
  margin-bottom: 20px;
}

.post-content h2 {
  font-size: 28px;
  margin: 40px 0 20px;
}

.post-content h3 {
  font-size: 22px;
  margin: 30px 0 15px;
}

.post-image {
  width: 100%;
  margin: 30px 0;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

blockquote {
  background-color: #f8f9fa;
  border-left: 4px solid var(--primary-color);
  padding: 20px;
  margin: 20px 0;
  font-style: italic;
}

/* О нас страница */
.about-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
}

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

.team-card {
  background-color: var(--card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.07);
  text-align: center;
}

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

.team-info {
  padding: 20px;
}

.team-name {
  margin-bottom: 5px;
  color: var(--primary-color);
}

.team-position {
  color: var(--light-text);
  font-style: italic;
  margin-bottom: 15px;
}

.social-icons {
  display: flex;
  justify-content: center;
  margin-top: 15px;
}

.social-icons a {
  color: var(--light-text);
  margin: 0 10px;
  font-size: 18px;
  transition: color 0.3s;
}

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

/* Контактная форма */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-form {
  background-color: var(--card-bg);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.07);
}

.contact-form h3 {
  margin-bottom: 20px;
}

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

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

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

.contact-info {
  background-color: var(--card-bg);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.07);
}

.contact-info h3 {
  margin-bottom: 20px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
}

.info-item i {
  margin-right: 15px;
  font-size: 20px;
  color: var(--primary-color);
}

.map {
  height: 250px;
  margin-top: 20px;
  border-radius: 10px;
  overflow: hidden;
}

.map iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Footer */
footer {
  background-color: var(--footer-bg);
  color: var(--footer-text);
  padding: 50px 0 20px;
}

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

.footer-col h4 {
  font-size: 18px;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  width: 40px;
  height: 3px;
  background: var(--accent-color);
  left: 0;
  bottom: 0;
  border-radius: 2px;
}

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

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

.footer-links a {
  color: #bdc3c7;
  text-decoration: none;
  transition: color 0.3s;
}

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

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

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

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

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

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 900px;
  background-color: var(--card-bg);
  padding: 20px 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

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

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

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

.cookie-btn {
  padding: 8px 16px;
  border-radius: 5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
}

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

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

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

.customize:hover {
  background-color: rgba(78, 84, 200, 0.1);
}

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

.reject:hover {
  background-color: #f5f5f5;
}

.hidden {
  display: none;
}

/* Модальное окно */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

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

.modal-content {
  background-color: var(--card-bg);
  padding: 30px;
  border-radius: 10px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.2);
  position: relative;
  transform: translateY(-20px);
  transition: transform 0.3s;
  text-align: center;
}

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

.close-modal {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 24px;
  color: var(--light-text);
  cursor: pointer;
  background: none;
  border: none;
}

.modal-icon {
  font-size: 50px;
  color: var(--accent-color);
  margin-bottom: 20px;
}

.modal-title {
  font-size: 24px;
  margin-bottom: 15px;
}

/* Адаптивный дизайн */
@media (max-width: 992px) {
  .two-column {
    grid-template-columns: 1fr;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .blog-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
}

@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    text-align: center;
  }
  
  .navbar ul {
    margin-top: 20px;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .navbar li {
    margin: 5px 10px;
  }
  
  .hero h2 {
    font-size: 32px;
  }
  
  .post-title {
    font-size: 28px;
  }
  
  .cookie-banner {
    flex-direction: column;
  }
  
  .cookie-text {
    margin-right: 0;
    margin-bottom: 20px;
  }
}

@media (max-width: 576px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .blog-grid {
    grid-template-columns: 1fr;
  }
  
  .team-grid {
    grid-template-columns: 1fr;
  }
}

/* Анимации */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.5s ease forwards;
}

/* SVG иконки для социальных сетей */
.social-icon {
  width: 24px;
  height: 24px;
  fill: currentColor;
}
