/* 
 * Private Capital Preservation Partners
 * Основные стили блога
 */

/* === Основные настройки === */
:root {
  /* Основные цвета */
  --primary-color: #2c3e50;
  --secondary-color: #1a5276;
  --accent-color: #3498db;
  --accent-hover: #2980b9;
  --light-color: #ecf0f1;
  --dark-color: #2c3e50;
  --text-color: #333333;
  --text-light: #7f8c8d;
  --success-color: #2ecc71;
  --warning-color: #f39c12;
  --error-color: #e74c3c;
  
  /* Фоновые цвета */
  --bg-light: #ffffff;
  --bg-gray: #f5f5f5;
  --bg-dark: #34495e;
  
  /* Шрифты */
  --font-main: 'Open Sans', Arial, sans-serif;
  --font-heading: 'Montserrat', 'Open Sans', Arial, sans-serif;
  
  /* Размеры */
  --container-width: 1200px;
  --header-height: 90px;
  --border-radius: 5px;
  --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Сброс стилей */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--bg-light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Типографика */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--dark-color);
  margin-bottom: 1rem;
  font-weight: 600;
  line-height: 1.3;
}

h1 {
  font-size: 2.2rem;
}

h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  position: relative;
}

h3 {
  font-size: 1.4rem;
  margin-top: 2rem;
}

h4 {
  font-size: 1.2rem;
}

p {
  margin-bottom: 1.5rem;
}

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

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

ul, ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.5rem;
}

blockquote {
  border-left: 4px solid var(--accent-color);
  padding: 1rem 2rem;
  margin: 2rem 0;
  background-color: var(--bg-gray);
  font-style: italic;
}

blockquote p {
  margin-bottom: 0.5rem;
}

blockquote cite {
  font-size: 0.9rem;
  color: var(--text-light);
  font-style: normal;
}

/* Контейнеры и сетка */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.flex {
  display: flex;
}

.grid {
  display: grid;
}

/* === Кнопки === */
.btn-primary, .btn-secondary, .btn-tertiary {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  border: none;
  font-size: 1rem;
}

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

.btn-primary:hover {
  background-color: var(--accent-hover);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

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

.btn-secondary:hover {
  background-color: var(--accent-color);
  color: white;
  transform: translateY(-2px);
}

.btn-tertiary {
  background-color: transparent;
  color: var(--text-light);
  border: 1px solid var(--text-light);
}

.btn-tertiary:hover {
  background-color: var(--text-light);
  color: white;
}

/* === Хедер и навигация === */
header {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 15px 0;
  transition: all 0.3s ease;
}

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

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

.logo img {
  height: 60px;
  width: auto;
  margin-right: 15px;
}

.logo-text h1 {
  font-size: 1.3rem;
  margin-bottom: 0;
}

.logo-text p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 0;
}

nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav ul li {
  margin: 0 5px;
  position: relative;
}

nav ul li a {
  display: flex;
  align-items: center;
  padding: 12px 18px;
  color: var(--dark-color);
  font-weight: 600;
  transition: all 0.3s ease;
  border-radius: var(--border-radius);
}

nav ul li a i {
  margin-right: 8px;
}

nav ul li a:hover, nav ul li a.active {
  color: var(--accent-color);
  background-color: rgba(52, 152, 219, 0.1);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  height: 24px;
  cursor: pointer;
}

.nav-toggle span {
  width: 30px;
  height: 3px;
  background-color: var(--dark-color);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* === Героический раздел === */
.hero {
  background-color: var(--bg-light);
  padding: 80px 0;
  margin-bottom: 50px;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.hero-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: var(--text-light);
}

.hero-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: var(--box-shadow);
}

/* === Секция "Что вы узнаете здесь" === */
.what-you-learn {
  padding: 80px 0;
  background-color: var(--bg-gray);
}

.what-you-learn h2 {
  text-align: center;
  margin-bottom: 50px;
}

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

.learn-item {
  background-color: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: var(--box-shadow);
  transition: transform 0.3s ease;
}

.learn-item:hover {
  transform: translateY(-10px);
}

.icon-wrapper {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: rgba(52, 152, 219, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.icon-wrapper i {
  font-size: 30px;
  color: var(--accent-color);
}

.learn-item h3 {
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.learn-item p {
  color: var(--text-light);
  margin-bottom: 0;
}

/* === Блоки с публикациями === */
.featured-posts {
  padding: 80px 0;
}

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

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

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

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

.post-image {
  height: 220px;
  overflow: hidden;
  position: relative;
}

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

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

.post-date {
  position: absolute;
  top: 15px;
  left: 15px;
  background-color: var(--accent-color);
  color: white;
  border-radius: 4px;
  padding: 5px 10px;
  text-align: center;
  line-height: 1.2;
}

.post-date .day {
  font-size: 1.2rem;
  font-weight: bold;
  display: block;
}

.post-date .month {
  font-size: 0.8rem;
  display: block;
}

.post-content {
  padding: 25px;
}

.post-content h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  line-height: 1.4;
}

.post-content p {
  color: var(--text-light);
  margin-bottom: 20px;
}

.posts-cta {
  text-align: center;
  margin-top: 50px;
}

/* === Отзывы === */
.testimonials {
  padding: 80px 0;
  background-color: var(--bg-gray);
}

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

.testimonial-carousel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 30px;
}

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

.testimonial-content {
  margin-bottom: 20px;
  position: relative;
}

.testimonial-content p {
  font-style: italic;
  margin-bottom: 0;
}

.testimonial-content::before {
  content: """;
  font-size: 5rem;
  position: absolute;
  top: -30px;
  left: -15px;
  opacity: 0.1;
  font-family: Georgia, serif;
}

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

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

.testimonial-author h4 {
  font-size: 1.1rem;
  margin-bottom: 5px;
}

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

/* === CTA секция === */
.cta {
  padding: 80px 0;
  background-color: var(--primary-color);
  color: white;
}

.cta-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.cta-content h2 {
  color: white;
  font-size: 2rem;
  margin-bottom: 20px;
}

.cta-content p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 30px;
  font-size: 1.1rem;
}

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

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

.footer-about img.footer-logo {
  height: 60px;
  margin-bottom: 20px;
}

.footer-about p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.footer-links h4, .footer-contact h4 {
  color: white;
  font-size: 1.1rem;
  margin-bottom: 20px;
  position: relative;
}

.footer-links h4::after, .footer-contact h4::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--accent-color);
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.footer-links ul li a {
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
}

.footer-links ul li a:hover {
  color: var(--accent-color);
  padding-left: 5px;
}

.footer-contact p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.footer-contact p i {
  margin-right: 10px;
  color: var(--accent-color);
}

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

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

.social-icons a svg {
  color: white;
  width: 18px;
  height: 18px;
}

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

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

.footer-bottom p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  margin: 0;
}

/* === Баннер с куками === */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: white;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  padding: 15px 0;
  z-index: 9999;
  display: none;
}

.cookie-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.cookie-content p {
  margin: 0 20px 10px 0;
  font-size: 0.9rem;
}

.cookie-buttons {
  display: flex;
}

.cookie-buttons button {
  margin-left: 10px;
  padding: 8px 16px;
  font-size: 0.9rem;
}

/* === Страница блога === */
.page-banner {
  background-color: var(--primary-color);
  color: white;
  padding: 60px 0;
  text-align: center;
  margin-bottom: 50px;
}

.page-banner h2 {
  color: white;
  font-size: 2.2rem;
  margin-bottom: 15px;
}

.page-banner p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
}

.blog-content {
  padding-bottom: 80px;
}

.blog-content .container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
}

.blog-main {
  display: grid;
  gap: 30px;
}

.blog-post-card {
  display: grid;
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: transform 0.3s ease;
}

.blog-post-card.featured {
  grid-template-columns: 1fr 1fr;
}

.blog-post-card:not(.featured) {
  grid-template-columns: 300px 1fr;
}

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

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

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

.blog-post-card .post-meta i {
  margin-right: 5px;
}

.blog-sidebar {
  position: sticky;
  top: 100px;
  align-self: start;
}

.sidebar-widget {
  background-color: white;
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 30px;
  box-shadow: var(--box-shadow);
}

.sidebar-widget h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--bg-gray);
}

.categories ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.categories ul li {
  margin-bottom: 12px;
}

.categories ul li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-color);
  transition: all 0.3s ease;
}

.categories ul li a i {
  margin-right: 8px;
  color: var(--accent-color);
}

.categories ul li a span {
  background-color: var(--bg-gray);
  border-radius: 20px;
  padding: 2px 8px;
  font-size: 0.8rem;
}

.categories ul li a:hover {
  color: var(--accent-color);
  padding-left: 5px;
}

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

.recent-post:last-child {
  margin-bottom: 0;
}

.recent-post img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 5px;
  margin-right: 15px;
}

.recent-post h4 {
  font-size: 1rem;
  margin-bottom: 5px;
  line-height: 1.4;
}

.recent-post .date {
  font-size: 0.8rem;
  color: var(--text-light);
}

.subscribe-form {
  display: flex;
  flex-direction: column;
}

.subscribe-form input {
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
}

.tag-cloud a {
  display: inline-block;
  background-color: var(--bg-gray);
  border-radius: 20px;
  padding: 5px 12px;
  margin-right: 8px;
  margin-bottom: 8px;
  font-size: 0.8rem;
  color: var(--text-color);
  transition: all 0.3s ease;
}

.tag-cloud a:hover {
  background-color: var(--accent-color);
  color: white;
}

/* === Страница отдельного поста === */
.blog-single {
  padding-bottom: 80px;
}

.post-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
}

.post-header h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
}

.post-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.post-author {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.post-author img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 15px;
}

.post-author .author-name {
  font-weight: bold;
  display: block;
  margin-bottom: 5px;
}

.post-author .author-role {
  color: var(--text-light);
  font-size: 0.9rem;
}

.post-details {
  display: flex;
  color: var(--text-light);
  font-size: 0.9rem;
}

.post-details span {
  margin: 0 10px;
  display: flex;
  align-items: center;
}

.post-details i {
  margin-right: 5px;
}

.post-featured-image {
  width: 100%;
  height: 500px;
  margin-bottom: 40px;
  border-radius: 10px;
  overflow: hidden;
}

.post-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-content-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.post-content {
  font-size: 1.1rem;
  line-height: 1.8;
}

.post-intro {
  font-size: 1.2rem;
  color: var(--secondary-color);
  line-height: 1.6;
  font-weight: 500;
}

.post-content h3 {
  margin-top: 40px;
  margin-bottom: 20px;
  font-size: 1.6rem;
}

.post-content h4 {
  margin-top: 30px;
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.image-right {
  float: right;
  margin: 0 0 20px 30px;
  width: 350px;
}

.image-left {
  float: left;
  margin: 0 30px 20px 0;
  width: 350px;
}

.image-right img, .image-left img {
  width: 100%;
  border-radius: 8px;
  box-shadow: var(--box-shadow);
}

.image-caption {
  margin-top: 8px;
  font-size: 0.9rem;
  color: var(--text-light);
  text-align: center;
}

.asset-allocation-table {
  width: 100%;
  border-collapse: collapse;
  margin: 30px 0;
}

.asset-allocation-table th, .asset-allocation-table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

.asset-allocation-table th {
  background-color: var(--bg-gray);
  font-weight: 600;
}

.asset-allocation-table tr:hover {
  background-color: rgba(52, 152, 219, 0.05);
}

.post-tags {
  margin: 40px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

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

.post-tags a {
  background-color: var(--bg-gray);
  border-radius: 20px;
  padding: 5px 12px;
  margin-right: 8px;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: var(--text-color);
  transition: all 0.3s ease;
}

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

.post-share {
  display: flex;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid #ddd;
}

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

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

.post-share a svg {
  color: var(--text-color);
  width: 18px;
  height: 18px;
}

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

.post-share a:hover svg {
  color: white;
}

.post-author-bio {
  display: flex;
  background-color: var(--bg-gray);
  border-radius: 10px;
  padding: 30px;
  margin: 40px 0;
}

.post-author-bio img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 20px;
}

.post-author-bio h4 {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 5px;
}

.post-author-bio h3 {
  font-size: 1.3rem;
  margin-top: 0;
  margin-bottom: 10px;
}

.post-author-bio p {
  margin-bottom: 15px;
}

.author-social a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  margin-right: 10px;
}

.author-social a:hover {
  background-color: var(--accent-color);
}

.author-social a:hover svg {
  color: white;
}

.related-posts h3 {
  margin-bottom: 25px;
  font-size: 1.5rem;
}

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

.related-post img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 12px;
}

.related-post h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  line-height: 1.4;
}

.related-post .related-date {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* === Страница контактов === */
.contact-content {
  padding-bottom: 80px;
}

.contact-content .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-details h3, .contact-social h3 {
  font-size: 1.3rem;
  margin-bottom: 25px;
}

.contact-item {
  display: flex;
  margin-bottom: 30px;
}

.contact-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: rgba(52, 152, 219, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
}

.contact-icon i {
  font-size: 24px;
  color: var(--accent-color);
}

.contact-text h4 {
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.contact-text p {
  color: var(--text-light);
  margin-bottom: 0;
}

.contact-social .social-icons {
  flex-direction: column;
  align-items: flex-start;
}

.contact-social .social-icons a {
  width: auto;
  height: auto;
  background: none;
  border-radius: 0;
  padding: 10px 0;
  display: flex;
  align-items: center;
}

.contact-social .social-icons a svg {
  color: var(--accent-color);
  margin-right: 10px;
}

.contact-social .social-icons a span {
  color: var(--text-color);
  font-weight: 500;
}

.contact-social .social-icons a:hover {
  background: none;
  transform: none;
}

.contact-social .social-icons a:hover span {
  color: var(--accent-color);
}

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

.contact-form-container h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.contact-form-container p {
  color: var(--text-light);
  margin-bottom: 30px;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group.full-width {
  grid-column: span 2;
}

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

.form-group .required {
  color: var(--error-color);
}

.form-group input, .form-group textarea, .form-group select {
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  font-family: var(--font-main);
  font-size: 1rem;
}

.form-group textarea {
  resize: vertical;
}

.privacy-check {
  flex-direction: row;
  align-items: center;
}

.privacy-check input {
  margin-right: 10px;
}

.contact-map {
  margin-bottom: 80px;
}

.contact-map h3 {
  font-size: 1.5rem;
  margin-bottom: 25px;
  text-align: center;
}

.map-container {
  height: 400px;
  border-radius: 10px;
  overflow: hidden;
}

.map-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* === Страница О нас === */
.about-intro {
  padding-bottom: 80px;
}

.about-intro .container {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 50px;
  align-items: start;
}

.about-content h2 {
  font-size: 1.8rem;
  margin-bottom: 25px;
  margin-top: 40px;
}

.about-content h2:first-child {
  margin-top: 0;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.value-item {
  text-align: center;
}

.value-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: rgba(52, 152, 219, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
}

.value-icon i {
  font-size: 24px;
  color: var(--accent-color);
}

.value-item h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.value-item p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 0;
}

.about-image {
  position: sticky;
  top: 100px;
}

.about-image img {
  width: 100%;
  border-radius: 10px;
  box-shadow: var(--box-shadow);
  margin-bottom: 30px;
}

.achievements {
  display: flex;
  justify-content: space-between;
  text-align: center;
}

.achievement h4 {
  font-size: 2rem;
  color: var(--accent-color);
  margin-bottom: 5px;
}

.achievement p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 0;
}

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

.team h2, .partners h2 {
  text-align: center;
  margin-bottom: 15px;
}

.section-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px;
  color: var(--text-light);
}

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

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

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

.team-card img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px;
  border: 5px solid var(--bg-gray);
}

.team-card h3 {
  font-size: 1.2rem;
  margin-bottom: 5px;
}

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

.team-card p:first-of-type {
  color: var(--accent-color);
  font-weight: 500;
}

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

.team-social a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--bg-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 5px;
  transition: all 0.3s ease;
}

.team-social a svg {
  width: 16px;
  height: 16px;
}

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

.team-social a:hover svg {
  color: white;
}

.partners {
  padding: 80px 0;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 30px;
  align-items: center;
}

.partner-logo {
  text-align: center;
}

.partner-logo img {
  max-width: 100%;
  height: auto;
  max-height: 80px;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.3s ease;
}

.partner-logo:hover img {
  filter: grayscale(0);
  opacity: 1;
}

/* === Модальное окно === */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
}

.modal-content {
  background-color: white;
  border-radius: 10px;
  max-width: 500px;
  width: 90%;
  position: relative;
}

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

.thank-you-content {
  padding: 40px;
  text-align: center;
}

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

.thank-you-content h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--success-color);
}

.thank-you-content p {
  margin-bottom: 25px;
}

/* === Утилиты === */
.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

/* === Медиа-запросы === */
@media screen and (max-width: 1200px) {
  .container {
    padding: 0 30px;
  }
}

@media screen and (max-width: 992px) {
  .hero .container, .about-intro .container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .hero-content {
    text-align: center;
  }
  
  .about-image {
    position: static;
  }
  
  .partners-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .blog-post-card.featured, .blog-post-card:not(.featured) {
    grid-template-columns: 1fr;
  }
  
  .blog-content .container {
    grid-template-columns: 1fr;
  }
  
  .blog-sidebar {
    display: none;
  }
  
  .contact-content .container {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 768px) {
  h1 {
    font-size: 1.8rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .nav-toggle {
    display: flex;
  }
  
  nav {
    display: none;
    position: absolute;
    top: 90px;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
  }
  
  nav.active {
    display: block;
  }
  
  nav ul {
    flex-direction: column;
  }
  
  nav ul li {
    margin: 0 0 10px 0;
  }
  
  .logo-text h1 {
    font-size: 1.1rem;
  }
  
  .values-grid, .team-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .partners-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .related-posts-grid {
    grid-template-columns: 1fr;
  }
  
  .testimonial-carousel, .contact-form {
    grid-template-columns: 1fr;
  }
  
  .post-author-bio {
    flex-direction: column;
    text-align: center;
  }
  
  .post-author-bio img {
    margin: 0 auto 20px;
  }
  
  .author-social {
    justify-content: center;
  }
}

@media screen and (max-width: 576px) {
  .values-grid, .team-grid {
    grid-template-columns: 1fr;
  }
  
  .partners-grid {
    grid-template-columns: 1fr;
  }
  
  .achievements {
    flex-direction: column;
  }
  
  .achievement {
    margin-bottom: 20px;
  }
  
  .cookie-content {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .cookie-buttons {
    margin-top: 15px;
  }
  
  .post-details {
    flex-direction: column;
  }
  
  .post-details span {
    margin: 5px 0;
  }
  
  .image-right, .image-left {
    float: none;
    width: 100%;
    margin: 0 0 20px 0;
  }
}
