/* 
  Основные стили для блога "Интеллектуальная автоматизация"
  Тема: n8n и OpenAI
  Год: 2024
*/

/* ========== ОСНОВНЫЕ НАСТРОЙКИ ========== */
:root {
  /* Основная цветовая палитра */
  --primary-color: #2563eb; /* Основной синий цвет */
  --primary-dark: #1d4ed8; /* Темно-синий для ховера */
  --secondary-color: #10b981; /* Зеленый для акцентов */
  --accent-color: #8b5cf6; /* Фиолетовый акцент */
  --dark-color: #1e293b; /* Темный цвет для текста */
  --light-color: #f8fafc; /* Светлый цвет для фона */
  --gray-color: #94a3b8; /* Серый для второстепенного текста */
  --border-color: #e2e8f0; /* Цвет границ */
  --success-color: #22c55e; /* Зеленый для успешных действий */
  --error-color: #ef4444; /* Красный для ошибок */
  --warning-color: #f59e0b; /* Желтый для предупреждений */
  
  /* Отступы и размеры */
  --container-max-width: 1200px;
  --container-padding: 1.5rem;
  --section-spacing: 5rem;
  --element-spacing: 1.5rem;
  --border-radius: 8px;
  --border-radius-lg: 12px;
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.1);
  --box-shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
  
  /* Типографика */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  --font-secondary: 'Montserrat', Georgia, 'Times New Roman', Times, serif;
  --font-mono: 'JetBrains Mono', 'Courier New', Courier, monospace;
  --base-font-size: 16px;
  --h1-size: 2.5rem;
  --h2-size: 2rem;
  --h3-size: 1.5rem;
  --h4-size: 1.25rem;
  --small-font-size: 0.875rem;
  --line-height: 1.7;
  --heading-line-height: 1.3;
}

/* ========== СБРОС И ОСНОВНЫЕ СТИЛИ ========== */
*, 
*::before, 
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: var(--base-font-size);
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  line-height: var(--line-height);
  color: var(--dark-color);
  background-color: var(--light-color);
  overflow-x: hidden;
}

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

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

a:hover {
  color: var(--primary-dark);
}

ul, ol {
  list-style-position: inside;
  margin-bottom: var(--element-spacing);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-secondary);
  line-height: var(--heading-line-height);
  margin-bottom: 1rem;
  color: var(--dark-color);
  font-weight: 700;
}

h1 {
  font-size: var(--h1-size);
  margin-bottom: 1.5rem;
}

h2 {
  font-size: var(--h2-size);
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
}

h3 {
  font-size: var(--h3-size);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

h4 {
  font-size: var(--h4-size);
  margin-top: 1.5rem;
}

p {
  margin-bottom: 1.25rem;
}

code {
  font-family: var(--font-mono);
  background-color: rgba(0, 0, 0, 0.05);
  padding: 0.2em 0.4em;
  border-radius: 3px;
  font-size: 0.9em;
}

pre {
  font-family: var(--font-mono);
  background-color: #f1f5f9;
  padding: 1rem;
  border-radius: var(--border-radius);
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

pre code {
  background-color: transparent;
  padding: 0;
}

blockquote {
  border-left: 4px solid var(--primary-color);
  padding-left: 1rem;
  margin-left: 0;
  margin-bottom: 1.5rem;
  font-style: italic;
  color: var(--gray-color);
}

hr {
  border: none;
  height: 1px;
  background-color: var(--border-color);
  margin: 2rem 0;
}

/* ========== КОНТЕЙНЕРЫ ========== */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

section {
  margin-bottom: var(--section-spacing);
}

.section-description {
  font-size: 1.1rem;
  color: var(--gray-color);
  max-width: 800px;
  margin: 0 auto 3rem auto;
  text-align: center;
}

/* ========== ШАПКА И НАВИГАЦИЯ ========== */
header {
  background-color: white;
  box-shadow: var(--box-shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 1rem 0;
}

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

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

.logo img {
  height: 50px;
  width: auto;
}

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

.nav-links li {
  margin-left: 2rem;
}

.nav-links a {
  font-weight: 500;
  color: var(--dark-color);
  position: relative;
  padding-bottom: 5px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

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

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

.mobile-nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--dark-color);
  transition: all 0.3s ease;
}

/* ========== ГЕРОЙ ========== */
.hero {
  padding: 5rem 0;
  background: linear-gradient(to right, #f0f9ff, #e0f2fe);
  margin-bottom: var(--section-spacing);
}

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

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: var(--gray-color);
}

.hero-image img {
  border-radius: var(--border-radius-lg);
  box-shadow: var(--box-shadow-lg);
}

/* ========== КНОПКИ ========== */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-size: 1rem;
  line-height: 1.5;
}

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

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

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

.btn-secondary:hover {
  background-color: #0ea271; /* Темнее вариант для ховера */
  color: white;
}

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

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

.btn-block {
  display: block;
  width: 100%;
}

.btn-cookie {
  background-color: var(--primary-color);
  color: white;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

.btn-cookie-outline {
  background-color: transparent;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

.btn-cookie-outline:hover {
  background-color: rgba(37, 99, 235, 0.1);
}

/* ========== КАРТОЧКИ ФУНКЦИЙ ========== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
}

.feature-card {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--box-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-lg);
}

.feature-card i {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1.25rem;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.feature-card p {
  color: var(--gray-color);
  margin-bottom: 0;
}

/* ========== РАЗДЕЛ ПОСТОВ ========== */
.latest-posts {
  background-color: #f8fafc;
  padding: 5rem 0;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

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

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

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

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

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

.post-content {
  padding: 1.5rem;
}

.post-content h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.post-content p {
  color: var(--gray-color);
  margin-bottom: 1.5rem;
}

.view-all {
  text-align: center;
  margin-top: 2rem;
}

/* ========== БЛОК ОШИБОК НОВИЧКОВ ========== */
.mistakes {
  padding: 5rem 0;
  background-color: white;
}

.mistakes-content {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  align-items: center;
}

.mistakes-image img {
  border-radius: var(--border-radius-lg);
  box-shadow: var(--box-shadow);
}

.mistakes-list {
  display: grid;
  gap: 1.5rem;
}

.mistake-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.mistake-item i {
  font-size: 1.5rem;
  color: var(--warning-color);
  margin-top: 0.25rem;
}

.mistake-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.mistake-item p {
  margin-bottom: 0;
  color: var(--gray-color);
}

/* ========== CTA СЕКЦИЯ ========== */
.cta {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: white;
  padding: 5rem 0;
  text-align: center;
}

.cta h2 {
  color: white;
  margin-bottom: 1.5rem;
}

.cta p {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto 2rem auto;
  opacity: 0.9;
}

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

.subscribe-form input {
  flex: 1;
  padding: 0.75rem 1.25rem;
  border: none;
  border-radius: var(--border-radius) 0 0 var(--border-radius);
  font-size: 1rem;
}

.subscribe-form button {
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

/* ========== ФУТЕР ========== */
footer {
  background-color: var(--dark-color);
  color: white;
  padding: 4rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 2rem;
}

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

.footer-logo p {
  color: var(--gray-color);
  font-size: 0.9rem;
}

.footer-links h3 {
  color: white;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

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

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--gray-color);
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: white;
}

.footer-contact address {
  font-style: normal;
  color: var(--gray-color);
}

.footer-contact p {
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
}

.footer-contact i {
  margin-right: 0.75rem;
  width: 16px;
}

.footer-contact a {
  color: var(--gray-color);
}

.footer-contact a:hover {
  color: white;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

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

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

/* ========== КУКИ БАННЕР ========== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: white;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  padding: 1.25rem;
  z-index: 9999;
  display: none;
}

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

.cookie-content {
  max-width: var(--container-max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.cookie-content p {
  margin-bottom: 0;
  flex: 1;
  min-width: 300px;
}

.cookie-buttons {
  display: flex;
  gap: 0.75rem;
}

/* ========== СТРАНИЦА БЛОГА ========== */
.page-header {
  background: linear-gradient(to right, #f0f9ff, #e0f2fe);
  padding: 4rem 0;
  text-align: center;
  margin-bottom: 3rem;
}

.page-header h1 {
  margin-bottom: 1rem;
}

.page-header p {
  font-size: 1.2rem;
  color: var(--gray-color);
  max-width: 800px;
  margin: 0 auto;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

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

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

.blog-post-card .post-image {
  height: 240px;
}

.blog-post-card .post-meta {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--gray-color);
}

.blog-post-card .post-meta i {
  margin-right: 0.25rem;
}

.blog-post-card h2 {
  font-size: 1.5rem;
  margin-top: 0;
  margin-bottom: 1rem;
}

/* ========== ПОДПИСКА НА РАССЫЛКУ ========== */
.newsletter {
  background-color: #f0f9ff;
  padding: 5rem 0;
}

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

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

.newsletter-form input {
  flex: 1;
  padding: 0.75rem 1.25rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius) 0 0 var(--border-radius);
  font-size: 1rem;
}

.newsletter-form button {
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

/* ========== СТРАНИЦА О НАС ========== */
.about-story {
  padding: 5rem 0;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: center;
}

.about-image img {
  border-radius: var(--border-radius-lg);
  box-shadow: var(--box-shadow-lg);
}

.about-text h2 {
  margin-top: 0;
}

.about-mission {
  background-color: #f8fafc;
  padding: 5rem 0;
}

.mission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.mission-item {
  background-color: white;
  padding: 2.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  text-align: center;
}

.mission-item i {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.mission-item h3 {
  margin-bottom: 1rem;
}

.mission-item p {
  color: var(--gray-color);
  margin-bottom: 0;
}

.team {
  padding: 5rem 0;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

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

.team-member img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--border-radius);
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease;
}

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

.team-member h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

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

.team-member p:nth-of-type(1) {
  font-weight: 500;
  color: var(--primary-color);
}

.team-member .social-links {
  justify-content: center;
  margin-top: 1rem;
}

.team-member .social-links a {
  width: 32px;
  height: 32px;
  background-color: #f1f5f9;
  color: var(--dark-color);
}

.stats {
  background-color: var(--primary-color);
  padding: 4rem 0;
  color: white;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

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

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  display: block;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.stat-item p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 0;
}

/* ========== СТРАНИЦА КОНТАКТОВ ========== */
.contact-info {
  padding: 5rem 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.contact-card {
  background-color: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  text-align: center;
}

.contact-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.contact-icon i {
  font-size: 1.75rem;
  color: white;
}

.contact-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.contact-card p {
  color: var(--gray-color);
  margin-bottom: 0.5rem;
}

.contact-card p:last-child {
  margin-bottom: 0;
}

.contact-card .social-links {
  justify-content: center;
  margin-top: 1rem;
}

.contact-form {
  background-color: #f8fafc;
  padding: 5rem 0;
}

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

.form-header {
  text-align: center;
  margin-bottom: 3rem;
}

.form-header h2 {
  margin-bottom: 1rem;
}

.form-header p {
  color: var(--gray-color);
  max-width: 500px;
  margin: 0 auto;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group:last-child {
  margin-bottom: 0;
}

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

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-family: var(--font-primary);
}

.form-group textarea {
  resize: vertical;
}

.checkbox-container {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.checkbox-container input {
  width: auto;
  margin-top: 0.25rem;
}

.map {
  padding: 5rem 0;
}

.map h2 {
  text-align: center;
  margin-bottom: 3rem;
}

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

.faq {
  background-color: #f8fafc;
  padding: 5rem 0;
}

.faq h2 {
  text-align: center;
  margin-bottom: 3rem;
}

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

.faq-item {
  background-color: white;
  border-radius: var(--border-radius);
  margin-bottom: 1rem;
  overflow: hidden;
}

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

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

.faq-toggle {
  color: var(--primary-color);
  transition: transform 0.3s ease;
}

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

.faq-answer {
  padding: 0 1.5rem 1.5rem;
  display: none;
}

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

.faq-answer p {
  margin-bottom: 0.75rem;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

/* ========== МОДАЛЬНОЕ ОКНО БЛАГОДАРНОСТИ ========== */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.modal.show {
  display: flex;
}

.modal-content {
  background-color: white;
  padding: 3rem;
  border-radius: var(--border-radius);
  max-width: 500px;
  text-align: center;
  position: relative;
}

.close {
  position: absolute;
  right: 1.5rem;
  top: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--gray-color);
}

.success-icon {
  font-size: 4rem;
  color: var(--success-color);
  margin-bottom: 1.5rem;
}

.modal h2 {
  margin-bottom: 1rem;
}

.modal p {
  color: var(--gray-color);
  margin-bottom: 2rem;
}

.modal-btn {
  min-width: 120px;
}

/* ========== СТРАНИЦА ПОСТА ========== */
.blog-post {
  padding: 5rem 0;
}

.post-header {
  margin-bottom: 3rem;
}

.post-header h1 {
  font-size: 2.5rem;
  margin-bottom: 1.25rem;
}

.post-meta {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  font-size: 0.95rem;
  color: var(--gray-color);
}

.post-meta i {
  margin-right: 0.5rem;
}

.featured-image {
  margin-bottom: 2.5rem;
}

.featured-image img {
  width: 100%;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

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

.post-content img {
  border-radius: var(--border-radius);
  margin: 2rem 0;
}

.post-tags {
  margin-bottom: 2rem;
}

.post-tags span {
  font-weight: 500;
  margin-right: 0.75rem;
}

.post-tags a {
  display: inline-block;
  background-color: #f1f5f9;
  color: var(--primary-color);
  padding: 0.35rem 0.75rem;
  border-radius: var(--border-radius);
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

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

.post-navigation {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.nav-previous i,
.nav-next i {
  margin: 0 0.5rem;
}

.related-posts {
  margin-bottom: 3rem;
}

.related-posts h3 {
  text-align: center;
  margin-bottom: 2.5rem;
}

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.related-post {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: var(--box-shadow);
  text-align: center;
}

.related-post img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: var(--border-radius);
  margin-bottom: 1.25rem;
}

.related-post h4 {
  margin-bottom: 1.25rem;
  font-size: 1.1rem;
}

.related-post .btn {
  margin-top: 0.5rem;
}

.note-box {
  background-color: #f0f9ff;
  border-left: 4px solid var(--primary-color);
  padding: 1.5rem;
  margin-bottom: 2rem;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.note-box p:last-child {
  margin-bottom: 0;
}

/* ========== КАСТОМНАЯ РАМКА ДЛЯ ИЗОБРАЖЕНИЙ ========== */
.custom-frame {
  position: relative;
  border: 8px solid white;
  box-shadow: 
    0 0 0 1px rgba(0, 0, 0, 0.1),
    0 8px 20px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.custom-frame:hover {
  transform: translateY(-5px) rotate(1deg);
  box-shadow: 
    0 0 0 1px rgba(0, 0, 0, 0.1),
    0 12px 30px rgba(0, 0, 0, 0.2);
}

.custom-frame::after {
  content: "";
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border: 1px dashed rgba(0, 0, 0, 0.1);
  pointer-events: none;
}

/* ========== МЕДИА ЗАПРОСЫ ========== */
@media screen and (max-width: 1100px) {
  :root {
    --container-padding: 1.25rem;
    --section-spacing: 4rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

@media screen and (max-width: 900px) {
  :root {
    --h1-size: 2.25rem;
    --h2-size: 1.75rem;
    --h3-size: 1.35rem;
  }
  
  .hero .container {
    grid-template-columns: 1fr;
  }
  
  .hero-content {
    order: 2;
  }
  
  .hero-image {
    order: 1;
    margin-bottom: 2rem;
  }
  
  .about-content,
  .mistakes-content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .cookie-content {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media screen and (max-width: 768px) {
  :root {
    --container-padding: 1rem;
    --section-spacing: 3.5rem;
    --element-spacing: 1.25rem;
  }
  
  .nav-links {
    display: none;
  }
  
  .mobile-nav-toggle {
    display: flex;
  }
  
  .nav-links.show {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background-color: white;
    box-shadow: var(--box-shadow);
    padding: 1rem 0;
  }
  
  .nav-links.show li {
    margin: 0;
  }
  
  .nav-links.show a {
    display: block;
    padding: 1rem 2rem;
  }
  
  .posts-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }
  
  .form-container {
    padding: 2rem 1.5rem;
  }
}

@media screen and (max-width: 480px) {
  :root {
    --base-font-size: 15px;
    --h1-size: 2rem;
    --h2-size: 1.5rem;
    --h3-size: 1.25rem;
  }
  
  .hero {
    padding: 3rem 0;
  }
  
  .subscribe-form,
  .newsletter-form {
    flex-direction: column;
  }
  
  .subscribe-form input,
  .newsletter-form input,
  .subscribe-form button,
  .newsletter-form button {
    width: 100%;
    border-radius: var(--border-radius);
  }
  
  .subscribe-form button,
  .newsletter-form button {
    margin-top: 1rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
  
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .post-navigation {
    flex-direction: column;
    gap: 1.25rem;
  }
}
