/* Базовые стили */
:root {
  --primary-color: #2a6ab8;
  --secondary-color: #4c8fdd;
  --accent-color: #e64e4e;
  --dark-color: #333;
  --light-color: #f8f9fa;
  --gray-color: #6c757d;
  --light-gray: #e9ecef;
  --white: #ffffff;
  --success-color: #28a745;
  --warning-color: #ffc107;
  --font-family: 'Roboto', Arial, sans-serif;
  --box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

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

body {
  font-family: var(--font-family);
  line-height: 1.6;
  color: var(--dark-color);
  background-color: var(--light-color);
}

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

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

ul {
  list-style: none;
}

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

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

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

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

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

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

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

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

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

/* Заголовки */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--dark-color);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

/* Шапка сайта */
header {
  background-color: var(--white);
  box-shadow: var(--box-shadow);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo img {
  height: 50px;
}

nav ul {
  display: flex;
}

nav ul li {
  margin-left: 30px;
}

nav ul li a {
  color: var(--dark-color);
  font-weight: 500;
  padding: 5px 0;
  position: relative;
}

nav ul li a:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

nav ul li a:hover:after,
nav ul li a.active:after {
  width: 100%;
}

nav ul li a.active {
  color: var(--primary-color);
}

/* Секция Hero */
.hero {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 80px 0;
  text-align: center;
  background-image: linear-gradient(rgba(42, 106, 184, 0.9), rgba(42, 106, 184, 0.9)), url('images/7.jpg');
  background-size: cover;
  background-position: center;
}

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

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

/* Слово редактора */
.editor-word {
  padding: 80px 0;
  background-color: var(--white);
}

.editor-content {
  display: flex;
  gap: 40px;
  align-items: center;
}

.editor-content img {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--box-shadow);
}

.editor-text {
  flex: 1;
}

.editor-name {
  display: block;
  font-weight: 700;
  font-style: italic;
  margin-top: 20px;
  color: var(--primary-color);
}

/* Последние публикации */
.recent-posts {
  padding: 80px 0;
  background-color: var(--light-color);
}

.recent-posts h2 {
  text-align: center;
  margin-bottom: 40px;
}

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

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

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

.post-image {
  height: 200px;
  overflow: hidden;
}

.post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

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

.post-content {
  padding: 20px;
}

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

.post-content h3 a {
  color: var(--dark-color);
}

.post-content h3 a:hover {
  color: var(--primary-color);
}

.post-meta {
  color: var(--gray-color);
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.post-excerpt {
  margin-bottom: 15px;
}

.read-more {
  display: inline-block;
  color: var(--primary-color);
  font-weight: 500;
}

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

/* Форма подписки */
.newsletter {
  padding: 60px 0;
  background-color: var(--primary-color);
  color: var(--white);
  text-align: center;
}

.newsletter h2 {
  color: var(--white);
}

.newsletter p {
  max-width: 600px;
  margin: 0 auto 30px;
}

.newsletter-form {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 15px;
  border: none;
  border-radius: 4px 0 0 4px;
  font-size: 1rem;
}

.newsletter-form button {
  padding: 15px 25px;
  background-color: var(--accent-color);
  color: var(--white);
  border: none;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  font-weight: 500;
  transition: var(--transition);
}

.newsletter-form button:hover {
  background-color: #d04545;
}

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

.footer-content {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo img {
  height: 50px;
  margin-bottom: 15px;
}

.footer-logo p {
  font-size: 0.9rem;
  color: #bbb;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.footer-column h3 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 20px;
}

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

.footer-column ul li a {
  color: #bbb;
  font-size: 0.9rem;
}

.footer-column ul li a:hover {
  color: var(--white);
}

.footer-contact h3 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.footer-contact p {
  margin-bottom: 15px;
  font-size: 0.9rem;
  color: #bbb;
  display: flex;
  align-items: center;
}

.footer-contact p svg {
  margin-right: 10px;
}

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

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--white);
  transition: var(--transition);
}

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

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

.footer-bottom p {
  font-size: 0.9rem;
  color: #888;
}

/* Cookie consent */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--dark-color);
  color: var(--white);
  padding: 20px 0;
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
  display: none;
}

.cookie-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cookie-content p {
  margin-bottom: 15px;
  max-width: 800px;
}

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

.cookie-buttons button {
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: var(--transition);
}

#accept-cookies {
  background-color: var(--primary-color);
  color: var(--white);
}

#accept-cookies:hover {
  background-color: var(--secondary-color);
}

#customize-cookies {
  background-color: var(--light-gray);
  color: var(--dark-color);
}

#customize-cookies:hover {
  background-color: #d0d0d0;
}

#reject-cookies {
  background-color: transparent;
  border: 1px solid var(--light-gray);
  color: var(--light-gray);
}

#reject-cookies:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.cookie-content a {
  color: var(--light-gray);
  text-decoration: underline;
  font-size: 0.9rem;
}

.cookie-content a:hover {
  color: var(--white);
}

/* Страница Блог */
.blog-post {
  padding: 60px 0;
}

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

.post-featured-image {
  margin-bottom: 30px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.post-featured-image img {
  width: 100%;
  height: auto;
}

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

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

.post-content h3 {
  margin-top: 30px;
  margin-bottom: 15px;
}

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

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

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

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

.post-tags span {
  font-weight: 700;
  margin-right: 10px;
}

.post-tags a {
  display: inline-block;
  margin-right: 10px;
  padding: 5px 10px;
  background-color: var(--light-gray);
  color: var(--dark-color);
  border-radius: 4px;
  font-size: 0.9rem;
}

.post-tags a:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

.post-share {
  margin-bottom: 50px;
  display: flex;
  align-items: center;
}

.post-share span {
  font-weight: 700;
  margin-right: 15px;
}

.post-share a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: var(--light-gray);
  border-radius: 50%;
  color: var(--dark-color);
  margin-right: 10px;
  transition: var(--transition);
}

.post-share a:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

.related-posts {
  margin-bottom: 50px;
}

.related-posts h2 {
  margin-bottom: 30px;
  text-align: center;
}

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

.related-post {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

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

.related-post h3 {
  padding: 15px;
  font-size: 1.1rem;
  background-color: var(--white);
}

.post-comments h2 {
  margin-bottom: 30px;
  text-align: center;
}

.comment-form {
  max-width: 800px;
  margin: 0 auto;
  background-color: var(--white);
  padding: 30px;
  border-radius: 8px;
  box-shadow: var(--box-shadow);
}

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

.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;
  border: 1px solid var(--light-gray);
  border-radius: 4px;
  font-size: 1rem;
}

.form-group textarea {
  resize: vertical;
}

/* Особые блоки в статьях */
.info-box, .warning-box, .tip-box {
  padding: 20px;
  margin: 30px 0;
  border-radius: 8px;
}

.info-box {
  background-color: #e3f2fd;
  border-left: 5px solid #2196f3;
}

.warning-box {
  background-color: #fff8e1;
  border-left: 5px solid #ffc107;
}

.tip-box {
  background-color: #e8f5e9;
  border-left: 5px solid #4caf50;
}

.info-box h3, .warning-box h3, .tip-box h3 {
  margin-top: 0;
  margin-bottom: 15px;
}

.comparison-box {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin: 30px 0;
}

.comparison-item {
  padding: 20px;
  background-color: var(--white);
  border-radius: 8px;
  box-shadow: var(--box-shadow);
}

.comparison-item h3 {
  margin-top: 0;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.regions-box, .stages-box {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 30px 0;
}

.region, .stage {
  padding: 15px;
  background-color: var(--white);
  border-radius: 8px;
  box-shadow: var(--box-shadow);
}

.region h4, .stage h4 {
  margin-top: 0;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.case-study {
  background-color: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
  margin: 30px 0;
  border-left: 5px solid var(--primary-color);
}

.case-study h3 {
  margin-top: 0;
  margin-bottom: 15px;
}

.final-tips {
  background-color: #e8f5e9;
  border-radius: 8px;
  padding: 25px;
  margin: 30px 0;
}

.final-tips h3 {
  margin-top: 0;
  margin-bottom: 20px;
  color: #2e7d32;
}

.final-tips ol {
  padding-left: 20px;
}

.final-tips li {
  margin-bottom: 15px;
}

.final-tips strong {
  color: #2e7d32;
}

/* Страница О нас */
.about-hero {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 60px 0;
  text-align: center;
}

.about-hero h1 {
  color: var(--white);
}

.about-mission {
  padding: 80px 0;
  background-color: var(--white);
}

.mission-content {
  display: flex;
  gap: 50px;
  align-items: center;
}

.mission-text {
  flex: 1;
}

.mission-image {
  flex: 1;
}

.mission-image img {
  border-radius: 8px;
  box-shadow: var(--box-shadow);
}

.about-values {
  padding: 80px 0;
  background-color: var(--light-color);
}

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

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.value-card {
  background-color: var(--white);
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

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

.value-icon {
  margin-bottom: 20px;
  color: var(--primary-color);
}

.value-card h3 {
  margin-bottom: 15px;
}

.team-section {
  padding: 80px 0;
  background-color: var(--white);
}

.team-section h2 {
  text-align: center;
  margin-bottom: 20px;
}

.team-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: 40px;
}

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

.team-member img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  box-shadow: var(--box-shadow);
}

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

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

.team-member p:nth-child(3) {
  font-weight: 500;
  color: var(--primary-color);
}

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

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

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

.about-stats {
  padding: 60px 0;
  background-color: var(--primary-color);
  color: var(--white);
}

.about-stats h2 {
  text-align: center;
  margin-bottom: 50px;
  color: var(--white);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.stat-card {
  text-align: center;
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.stat-title {
  font-size: 1.1rem;
}

.testimonials {
  padding: 80px 0;
  background-color: var(--light-color);
}

.testimonials h2 {
  text-align: center;
  margin-bottom: 50px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.testimonial-card {
  background-color: var(--white);
  padding: 30px;
  border-radius: 8px;
  box-shadow: var(--box-shadow);
}

.testimonial-text {
  margin-bottom: 20px;
  font-style: italic;
  position: relative;
}

.testimonial-text:before {
  content: '"';
  font-size: 60px;
  color: var(--light-gray);
  position: absolute;
  top: -20px;
  left: -15px;
  opacity: 0.5;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.testimonial-author img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin-right: 15px;
}

.testimonial-author h4 {
  margin-bottom: 5px;
}

.testimonial-author p {
  color: var(--gray-color);
  font-size: 0.9rem;
  margin-bottom: 0;
}

.cta-section {
  padding: 80px 0;
  background-color: var(--primary-color);
  color: var(--white);
  text-align: center;
}

.cta-content h2 {
  color: var(--white);
  margin-bottom: 20px;
}

.cta-content p {
  max-width: 600px;
  margin: 0 auto 30px;
}

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

.cta-content .btn:hover {
  background-color: var(--light-gray);
}

/* Страница Контакты */
.contact-hero {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 60px 0;
  text-align: center;
}

.contact-hero h1 {
  color: var(--white);
}

.contact-info {
  padding: 80px 0;
  background-color: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.contact-card {
  text-align: center;
  padding: 30px;
  background-color: var(--light-color);
  border-radius: 8px;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

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

.contact-icon {
  margin-bottom: 20px;
  color: var(--primary-color);
}

.contact-card h3 {
  margin-bottom: 15px;
}

.contact-form-section {
  padding: 80px 0;
  background-color: var(--light-color);
}

.form-container {
  max-width: 800px;
  margin: 0 auto;
  background-color: var(--white);
  padding: 40px;
  border-radius: 8px;
  box-shadow: var(--box-shadow);
}

.form-container h2 {
  text-align: center;
  margin-bottom: 10px;
}

.form-container > p {
  text-align: center;
  margin-bottom: 30px;
  color: var(--gray-color);
}

.contact-form {
  display: grid;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkbox-group input {
  width: auto;
}

.checkbox-group label {
  display: inline;
}

.map-section {
  padding: 80px 0;
  background-color: var(--white);
}

.map-section h2 {
  text-align: center;
  margin-bottom: 30px;
}

.map-container {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.faq-section {
  padding: 80px 0;
  background-color: var(--light-color);
}

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

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 20px;
  background-color: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.faq-question {
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-question h3 {
  margin-bottom: 0;
  font-size: 1.1rem;
}

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

.faq-answer {
  padding: 0 20px 20px;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background-color: var(--white);
  padding: 40px;
  border-radius: 8px;
  max-width: 500px;
  width: 90%;
  position: relative;
}

.close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 1.5rem;
  cursor: pointer;
}

.thank-you-message {
  text-align: center;
}

.thank-you-message svg {
  color: var(--success-color);
  margin-bottom: 20px;
}

.thank-you-message h3 {
  margin-bottom: 15px;
}

.thank-you-message p {
  margin-bottom: 30px;
}

/* Медиа-запросы для адаптивности */
@media (max-width: 1024px) {
  .posts-grid, .regions-box, .stages-box {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .values-grid, .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 50px;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.7rem;
  }
  
  .editor-content {
    flex-direction: column;
    text-align: center;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .mission-content {
    flex-direction: column;
    gap: 30px;
  }
  
  .related-posts-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .container {
    width: 95%;
  }
  
  header .container {
    flex-direction: column;
    gap: 20px;
  }
  
  nav ul {
    justify-content: center;
  }
  
  nav ul li {
    margin: 0 10px;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .posts-grid, .values-grid, .stats-grid, .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .newsletter-form input {
    border-radius: 4px;
    margin-bottom: 10px;
  }
  
  .newsletter-form button {
    border-radius: 4px;
    width: 100%;
  }
  
  .footer-links {
    grid-template-columns: 1fr;
  }
  
  .cookie-buttons {
    flex-direction: column;
  }
  
  .regions-box, .stages-box {
    grid-template-columns: 1fr;
  }
}
