/* 
* ИнвестПлан США - Стили сайта
* Основные стили для сайта об инвестиционном планировании в США
*/

/* ===== ОБЩИЕ СТИЛИ ===== */
:root {
  --primary-color: #2c6ed5;
  --primary-dark: #1b4c9e;
  --primary-light: #5e91e5;
  --secondary-color: #11b68d;
  --secondary-dark: #0d9574;
  --secondary-light: #4fd0af;
  --accent-color: #f7a833;
  --dark-color: #1c2237;
  --gray-dark: #445;
  --gray-medium: #767f8c;
  --gray-light: #d4dae3;
  --gray-ultra-light: #f5f7fa;
  --white-color: #ffffff;
  --danger-color: #dc3545;
  --success-color: #28a745;
  --warning-color: #ffc107;
  --info-color: #17a2b8;
  
  --body-font: 'Roboto', 'Arial', sans-serif;
  --heading-font: 'Montserrat', 'Roboto', sans-serif;
  
  --border-radius: 8px;
  --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-dark);
  background-color: var(--white-color);
  overflow-x: hidden;
}

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

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

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

ul, ol {
  list-style-position: inside;
  margin-bottom: 1.5rem;
}

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

h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 2rem;
  margin-top: 2.5rem;
  margin-bottom: 1.2rem;
}

h3 {
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

h4 {
  font-size: 1.25rem;
  margin-top: 1.5rem;
}

p {
  margin-bottom: 1.5rem;
}

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

.btn {
  display: inline-block;
  background: var(--primary-color);
  color: var(--white-color);
  padding: 12px 24px;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: 1rem;
}

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

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

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

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

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

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

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

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section-title:after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: var(--primary-color);
  margin: 1rem auto 0;
}

.section-subtitle {
  text-align: center;
  color: var(--gray-medium);
  font-size: 1.1rem;
  margin-top: -1.5rem;
  margin-bottom: 3rem;
}

/* ===== ШАПКА САЙТА ===== */
header {
  background-color: var(--white-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-top {
  background-color: var(--primary-dark);
  color: var(--white-color);
  padding: 8px 0;
  font-size: 0.9rem;
}

.welcome-multilang {
  text-align: center;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 20px;
}

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

.logo img {
  max-height: 60px;
  width: auto;
}

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

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

.main-nav a {
  color: var(--gray-dark);
  font-weight: 600;
  font-size: 1.05rem;
  text-transform: uppercase;
  position: relative;
  padding: 5px 0;
}

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

.main-nav a:after {
  content: "";
  position: absolute;
  width: 0;
  height: 3px;
  bottom: -5px;
  left: 0;
  background-color: var(--primary-color);
  transition: var(--transition);
}

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

/* ===== HERO СЕКЦИЯ ===== */
.hero {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-dark) 100%);
  color: var(--white-color);
  padding: 5rem 0;
  text-align: center;
  position: relative;
}

.hero:before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><polygon fill="rgba(255,255,255,0.05)" points="0,100 100,0 100,100"/></svg>');
  background-size: cover;
}

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

.hero .subtitle {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.welcome-text {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  font-style: italic;
  opacity: 0.85;
}

.hero .btn {
  padding: 15px 30px;
  font-size: 1.1rem;
  background: var(--accent-color);
  border: 2px solid var(--accent-color);
  color: var(--dark-color);
  font-weight: 700;
}

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

/* ===== СЕКЦИЯ ОСОБЕННОСТЕЙ ===== */
.features {
  padding: 5rem 0;
  background-color: var(--gray-ultra-light);
}

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

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

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

.feature-card .icon {
  margin: 0 auto 1.5rem;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(44, 110, 213, 0.1);
  color: var(--primary-color);
}

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

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

/* ===== НЕДАВНИЕ ПОСТЫ ===== */
.recent-posts {
  padding: 5rem 0;
}

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

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

.post-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.post-image {
  height: 220px;
  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.3rem;
  margin-bottom: 0.5rem;
}

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

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

.post-date {
  color: var(--gray-medium);
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
  display: block;
}

.post-excerpt {
  color: var(--gray-dark);
  margin-bottom: 1rem;
}

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

.read-more:after {
  content: "→";
  margin-left: 5px;
  transition: var(--transition);
}

.read-more:hover:after {
  margin-left: 10px;
}

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

/* ===== ФОРМА ПОДПИСКИ ===== */
.newsletter {
  padding: 4rem 0;
  background: var(--primary-color);
  color: var(--white-color);
}

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

.newsletter-content h2 {
  color: var(--white-color);
  margin-bottom: 1rem;
}

.newsletter-content p {
  opacity: 0.9;
  margin-bottom: 2rem;
}

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

.newsletter-form input {
  flex: 1;
  padding: 0.8rem 1.2rem;
  border: none;
  border-radius: var(--border-radius) 0 0 var(--border-radius);
  font-size: 1rem;
}

.newsletter-form .btn {
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  background: var(--accent-color);
  color: var(--dark-color);
}

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

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

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

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

.footer-contact p {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.footer-nav h4, .footer-legal h4, .footer-social h4 {
  color: var(--white-color);
  font-size: 1.2rem;
  margin-bottom: 1.2rem;
  position: relative;
}

.footer-nav h4:after, .footer-legal h4:after, .footer-social h4:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 40px;
  height: 3px;
  background: var(--primary-color);
}

.footer-nav ul, .footer-legal ul {
  list-style: none;
  margin-bottom: 0;
}

.footer-nav li, .footer-legal li {
  margin-bottom: 0.5rem;
}

.footer-nav a, .footer-legal a {
  color: var(--gray-light);
  transition: var(--transition);
}

.footer-nav a:hover, .footer-legal a:hover {
  color: var(--white-color);
  padding-left: 5px;
}

.social-icons {
  display: flex;
  gap: 1rem;
}

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

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

.copyright {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
}

/* ===== COOKIE BANNER ===== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white-color);
  box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  padding: 1.5rem;
  display: none;
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
  margin: 1rem 0;
}

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

.btn-settings {
  background: var(--gray-medium);
}

.btn-decline {
  background: var(--gray-dark);
}

.cookie-more {
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* ===== СТРАНИЦА БЛОГА ===== */
.page-header {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-dark) 100%);
  color: var(--white-color);
  padding: 4rem 0;
  text-align: center;
  position: relative;
}

.page-header:before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><polygon fill="rgba(255,255,255,0.05)" points="0,100 100,0 100,100"/></svg>');
  background-size: cover;
}

.page-header h1 {
  color: var(--white-color);
}

.blog-posts {
  padding: 5rem 0;
}

.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.blog-card {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  background: var(--white-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

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

.blog-image {
  height: 100%;
  min-height: 250px;
}

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

.blog-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

.blog-content h2 {
  margin-top: 0;
  font-size: 1.6rem;
}

.blog-content h2 a {
  color: var(--dark-color);
}

.blog-content h2 a:hover {
  color: var(--primary-color);
}

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

.post-excerpt {
  flex-grow: 1;
}

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

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

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

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

.about-text ul {
  margin-bottom: 2rem;
}

.team {
  padding: 5rem 0;
  background-color: var(--gray-ultra-light);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
}

.team-member {
  background: var(--white-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  text-align: center;
}

.team-member:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.team-member img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.team-member h3 {
  margin: 1.5rem 0 0.3rem;
  font-size: 1.3rem;
}

.team-member p {
  color: var(--gray-medium);
  margin-bottom: 0.8rem;
  padding: 0 1rem;
}

.team-member p:first-of-type {
  color: var(--primary-color);
  font-weight: 600;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin: 1.5rem 0;
}

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

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

.achievements {
  padding: 5rem 0;
}

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

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

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

.achievement-icon {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.achievement-card h3 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

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

.testimonials {
  padding: 5rem 0;
  background-color: var(--gray-ultra-light);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

.testimonial-card {
  background: var(--white-color);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--box-shadow);
  position: relative;
}

.testimonial-card:before {
  content: """;
  position: absolute;
  top: 15px;
  left: 20px;
  font-size: 5rem;
  opacity: 0.1;
  font-family: serif;
  line-height: 1;
}

.testimonial-content {
  padding-top: 1rem;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  border-top: 1px solid var(--gray-light);
  padding-top: 1.5rem;
}

.testimonial-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 1rem;
  border: 3px solid var(--gray-light);
}

.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-info h4 {
  margin: 0 0 0.3rem;
  font-size: 1.1rem;
}

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

.cta {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-dark) 100%);
  color: var(--white-color);
  text-align: center;
}

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

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

.cta-content p {
  margin-bottom: 2rem;
  opacity: 0.9;
}

.cta .btn {
  background: var(--white-color);
  color: var(--primary-dark);
  font-weight: 700;
}

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

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

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
}

.contact-info {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

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

.contact-icon {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.contact-card h3 {
  margin-bottom: 0.8rem;
  font-size: 1.2rem;
}

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

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

.contact-card a:hover {
  color: var(--primary-color);
}

.contact-social {
  margin-top: 1rem;
}

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

.contact-form-container h2 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.contact-form-container p {
  color: var(--gray-medium);
  margin-bottom: 2rem;
}

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

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

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--gray-light);
  border-radius: var(--border-radius);
  font-family: var(--body-font);
  font-size: 1rem;
  transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(44, 110, 213, 0.2);
}

.form-checkbox {
  display: flex;
  align-items: center;
}

.form-checkbox input {
  width: auto;
  margin-right: 10px;
}

.form-checkbox label {
  margin-bottom: 0;
  font-weight: normal;
}

.map-section {
  padding: 3rem 0 5rem;
}

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

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

.faq-section {
  padding: 5rem 0;
  background-color: var(--gray-ultra-light);
}

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

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

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

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

.faq-toggle {
  transition: var(--transition);
}

.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;
}

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

.modal-content {
  background-color: var(--white-color);
  margin: 10% auto;
  padding: 2rem;
  border-radius: var(--border-radius);
  max-width: 500px;
  position: relative;
  animation: modalopen 0.5s;
}

@keyframes modalopen {
  from {opacity: 0; transform: translateY(-50px);}
  to {opacity: 1; transform: translateY(0);}
}

.close-modal {
  position: absolute;
  right: 20px;
  top: 15px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

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

.success-icon {
  color: var(--success-color);
  margin: 0 auto 1.5rem;
}

.close-btn {
  margin-top: 1rem;
}

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

.blog-post {
  max-width: 900px;
  margin: 0 auto;
}

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

.post-header h1 {
  font-size: 2.8rem;
  margin: 1rem 0 1.5rem;
}

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

.post-author, .post-date, .post-category {
  display: flex;
  align-items: center;
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 10px;
}

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

.featured-image {
  margin-bottom: 2.5rem;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

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

.post-body {
  font-size: 1.1rem;
  line-height: 1.7;
}

.post-body .lead {
  font-size: 1.3rem;
  color: var(--gray-dark);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.post-body h2 {
  font-size: 1.8rem;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  color: var(--dark-color);
}

.post-body h3 {
  font-size: 1.4rem;
  margin-top: 2.5rem;
  color: var(--dark-color);
}

.post-body h4 {
  font-size: 1.2rem;
  margin-top: 2rem;
  color: var(--dark-color);
}

.post-body ul, .post-body ol {
  margin-left: 1.5rem;
  margin-bottom: 2rem;
}

.post-body li {
  margin-bottom: 0.8rem;
}

.post-body blockquote {
  margin: 2.5rem 0;
  padding: 1.5rem 2rem;
  border-left: 5px solid var(--primary-color);
  background-color: var(--gray-ultra-light);
  font-style: italic;
}

.post-body blockquote p {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
}

.post-body blockquote cite {
  font-size: 0.95rem;
  color: var(--gray-medium);
}

.info-box, .warning-box, .example-box {
  margin: 2.5rem 0;
  padding: 1.5rem;
  border-radius: var(--border-radius);
}

.info-box {
  background-color: rgba(23, 162, 184, 0.1);
  border-left: 5px solid var(--info-color);
}

.warning-box {
  background-color: rgba(255, 193, 7, 0.1);
  border-left: 5px solid var(--warning-color);
}

.example-box {
  background-color: rgba(44, 110, 213, 0.1);
  border-left: 5px solid var(--primary-color);
}

.info-box h4, .warning-box h4, .example-box h4 {
  margin-top: 0;
  margin-bottom: 1rem;
}

.post-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
}

.post-body th, .post-body td {
  padding: 0.8rem;
  text-align: left;
  border-bottom: 1px solid var(--gray-light);
}

.post-body th {
  background-color: var(--gray-ultra-light);
  font-weight: 700;
}

.post-body tr:nth-child(even) {
  background-color: var(--gray-ultra-light);
}

.disclaimer {
  margin-top: 3rem;
  padding: 1.5rem;
  background-color: var(--gray-ultra-light);
  border-radius: var(--border-radius);
  font-size: 0.95rem;
}

.post-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--gray-light);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.post-tags span {
  font-weight: 600;
}

.post-tags a {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background-color: var(--gray-ultra-light);
  border-radius: 20px;
  font-size: 0.9rem;
  color: var(--gray-dark);
}

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

.post-share {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.post-share span {
  font-weight: 600;
}

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

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

.related-posts {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--gray-light);
}

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

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

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

.related-post:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

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

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

.related-post h4 a {
  color: var(--dark-color);
}

.related-post h4 a:hover {
  color: var(--primary-color);
}

.related-post .post-date {
  margin: 0 1rem 1rem;
}

.post-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--gray-light);
}

.nav-previous, .nav-next {
  padding: 1.5rem;
  background: var(--white-color);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.nav-previous:hover, .nav-next:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.nav-next {
  text-align: right;
}

.nav-subtitle {
  display: block;
  font-size: 0.9rem;
  color: var(--gray-medium);
  margin-bottom: 0.5rem;
}

.nav-title {
  font-weight: 600;
  color: var(--dark-color);
}

.nav-title:hover {
  color: var(--primary-color);
}

.portfolio-example {
  background: var(--gray-ultra-light);
  padding: 2rem;
  border-radius: var(--border-radius);
  margin: 2.5rem 0;
}

.portfolio-example h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--primary-dark);
}

.portfolio-example ul {
  margin-bottom: 1.5rem;
}

.portfolio-example p {
  margin-bottom: 0;
}

/* ===== МЕДИА ЗАПРОСЫ ===== */
@media (max-width: 1100px) {
  h1 {
    font-size: 2.2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .post-header h1 {
    font-size: 2.3rem;
  }
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-info {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
  
  .about-content {
    grid-template-columns: 1fr;
  }
  
  .blog-card {
    grid-template-columns: 1fr;
  }
  
  .blog-image {
    min-height: 300px;
  }
  
  .post-navigation {
    grid-template-columns: 1fr;
  }
  
  .nav-next {
    text-align: left;
  }
  
  .post-footer {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  header .container {
    flex-direction: column;
    padding: 1rem;
  }
  
  .logo {
    margin-bottom: 1rem;
  }
  
  .main-nav {
    width: 100%;
    justify-content: center;
    margin-bottom: 0;
  }
  
  .main-nav li {
    margin: 0 1rem;
  }
  
  .hero {
    padding: 3rem 0;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .newsletter-form input {
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
  }
  
  .newsletter-form .btn {
    border-radius: var(--border-radius);
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .post-meta {
    flex-direction: column;
    gap: 0.8rem;
  }
}

@media (max-width: 576px) {
  .container {
    padding: 0 15px;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.6rem;
  }
  
  .hero h1 {
    font-size: 2.2rem;
  }
  
  .main-nav {
    flex-wrap: wrap;
  }
  
  .main-nav li {
    margin: 0.5rem;
  }
  
  .post-header h1 {
    font-size: 2rem;
  }
  
  .cookie-buttons {
    flex-direction: column;
  }
  
  .cookie-buttons button {
    margin-bottom: 0.5rem;
  }
}
