:root {
  --primary-color: #2c6ac7;
  --secondary-color: #f6b93b;
  --background-color: #f5f7fa;
  --text-color: #333;
  --gray-light: #e0e0e0;
  --gray-medium: #757575;
  --gray-dark: #424242;
  --accent-color: #ff5722;
  --success-color: #4caf50;
  --danger-color: #f44336;
  --border-radius: 8px;
  --transition-speed: 0.3s;
  --box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

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

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

/* Кастомный скроллбар */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-color);
}

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

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

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

/* Шапка сайта */
header {
  background-color: #fff;
  box-shadow: var(--box-shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

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

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

.logo h1 {
  font-size: 22px;
  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);
}

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

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--primary-color);
}

/* Заголовки */
.hero {
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 20%;
  background: linear-gradient(to top, var(--background-color), transparent);
}

.hero h2 {
  font-size: 3em;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2em;
  max-width: 700px;
  margin: 0 auto 30px;
}

.cta-button {
  display: inline-block;
  background-color: white;
  color: var(--primary-color);
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all var(--transition-speed);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

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

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

.section-title h2 {
  font-size: 2.5em;
  color: var(--primary-color);
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--secondary-color);
  border-radius: 2px;
}

/* Блоги */
.blog-posts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
}

.blog-card {
  background: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: transform var(--transition-speed);
}

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

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

.blog-content {
  padding: 20px;
}

.blog-card h3 {
  margin-bottom: 10px;
  color: var(--primary-color);
}

.blog-meta {
  color: var(--gray-medium);
  font-size: 0.9em;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.blog-meta svg {
  margin-right: 5px;
  width: 16px;
  height: 16px;
}

.blog-card p {
  margin-bottom: 20px;
}

.read-more {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  padding: 8px 20px;
  border-radius: 50px;
  font-weight: 500;
  transition: all var(--transition-speed);
}

.read-more:hover {
  background-color: var(--secondary-color);
  color: white;
}

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

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

.post-header h1 {
  font-size: 2.5em;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.post-meta {
  display: flex;
  align-items: center;
  color: var(--gray-medium);
  font-size: 1em;
  margin-bottom: 20px;
}

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

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

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

.post-content {
  line-height: 1.8;
}

.post-content p {
  margin-bottom: 20px;
}

.post-content h2, .post-content h3 {
  color: var(--primary-color);
  margin-top: 40px;
  margin-bottom: 20px;
}

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

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

.post-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid var(--gray-light);
}

.post-navigation a {
  display: flex;
  align-items: center;
  color: var(--primary-color);
  font-weight: 500;
}

.post-navigation a svg {
  width: 20px;
  height: 20px;
}

.post-navigation .prev svg {
  margin-right: 10px;
}

.post-navigation .next svg {
  margin-left: 10px;
}

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

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

.contact-info h3 {
  color: var(--primary-color);
  margin-bottom: 20px;
  font-size: 1.5em;
}

.contact-details {
  list-style: none;
}

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

.contact-details svg {
  margin-right: 15px;
  min-width: 24px;
  color: var(--primary-color);
}

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

.contact-form h3 {
  color: var(--primary-color);
  margin-bottom: 20px;
  font-size: 1.5em;
}

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

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

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--gray-light);
  border-radius: var(--border-radius);
  font-size: 1em;
  transition: border-color var(--transition-speed);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
}

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

.btn-submit {
  background-color: var(--primary-color);
  color: white;
  padding: 12px 30px;
  border: none;
  border-radius: 50px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all var(--transition-speed);
}

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

/* О нас */
.about-container {
  background: white;
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.about-intro {
  margin-bottom: 50px;
  text-align: center;
}

.about-intro h2 {
  color: var(--primary-color);
  margin-bottom: 20px;
  font-size: 2em;
}

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

.team-member {
  text-align: center;
}

.team-member img {
  width: 100%;
  height: auto;
  border-radius: 50%;
  margin-bottom: 15px;
  box-shadow: var(--box-shadow);
  transition: transform var(--transition-speed);
}

.team-member img:hover {
  transform: scale(1.05);
}

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

.team-member p {
  color: var(--gray-medium);
  margin-bottom: 10px;
}

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

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  transition: all var(--transition-speed);
}

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

.social-links svg {
  width: 18px;
  height: 18px;
}

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

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

.footer-col h3 {
  color: var(--secondary-color);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

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

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

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

.footer-links a {
  color: white;
  opacity: 0.8;
}

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

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

/* Cookie баннер */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1200px;
  background-color: white;
  padding: 20px 30px;
  border-radius: var(--border-radius);
  box-shadow: 0 0 20px rgba(0,0,0,0.2);
  z-index: 9999;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.cookie-text {
  flex: 1;
}

.cookie-text h3 {
  margin-bottom: 10px;
  color: var(--primary-color);
}

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

.cookie-btn {
  padding: 8px 20px;
  border-radius: 50px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-speed);
  border: none;
}

.cookie-accept {
  background-color: var(--success-color);
  color: white;
}

.cookie-accept:hover {
  background-color: #388e3c;
}

.cookie-customize {
  background-color: transparent;
  border: 1px solid var(--gray-medium);
  color: var(--gray-dark);
}

.cookie-customize:hover {
  background-color: var(--gray-light);
}

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

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

/* Благодарственное всплывающее окно */
.thank-you-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: 0 0 30px rgba(0,0,0,0.3);
  z-index: 10000;
  text-align: center;
  max-width: 400px;
  display: none;
}

.thank-you-popup h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
}

.thank-you-popup p {
  margin-bottom: 20px;
}

.thank-you-popup button {
  background-color: var(--primary-color);
  color: white;
  padding: 10px 25px;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-speed);
}

.thank-you-popup button:hover {
  background-color: var(--secondary-color);
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  z-index: 9999;
  display: none;
}

/* Адаптивность */
@media (max-width: 992px) {
  .contact-container {
    grid-template-columns: 1fr;
  }
  
  .section-title h2 {
    font-size: 2em;
  }
  
  .hero h2 {
    font-size: 2.5em;
  }
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }
  
  .nav-links {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: white;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    transform: translateY(-200%);
    transition: transform var(--transition-speed);
    z-index: 999;
  }
  
  .nav-links.active {
    transform: translateY(0);
  }
  
  .nav-links li {
    margin: 15px 0;
  }
  
  .hero h2 {
    font-size: 2em;
  }
  
  .hero p {
    font-size: 1em;
  }
  
  section {
    padding: 60px 0;
  }
  
  .section-title {
    margin-bottom: 30px;
  }
  
  .blog-card {
    max-width: 400px;
    margin: 0 auto;
  }
  
  .single-post {
    padding: 20px;
  }
  
  .post-header h1 {
    font-size: 2em;
  }
  
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .cookie-buttons {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .navbar {
    padding: 10px 0;
  }
  
  .logo img {
    height: 40px;
  }
  
  .logo h1 {
    font-size: 18px;
  }
  
  .hero {
    padding: 60px 0;
  }
  
  .hero h2 {
    font-size: 1.8em;
  }
  
  .cta-button {
    padding: 10px 25px;
    font-size: 0.9em;
  }
  
  .section-title h2 {
    font-size: 1.8em;
  }
  
  .team-members {
    grid-template-columns: 1fr;
  }
  
  .team-member {
    max-width: 300px;
    margin: 0 auto;
  }
  
  .contact-form, .contact-info {
    padding: 20px;
  }
  
  .cookie-btn {
    padding: 8px 15px;
    font-size: 0.9em;
  }
}
