/* Основные стили для блога о корпоративных облигациях и кредитных спредах */

:root {
  --primary: #2c3e50;
  --secondary: #3498db;
  --accent: #e74c3c;
  --light: #ecf0f1;
  --dark: #2c3e50;
  --text: #333;
  --text-light: #7f8c8d;
  --success: #2ecc71;
  --warning: #f39c12;
  --transparent-bg: rgba(255, 255, 255, 0.85);
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

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

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

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.75rem;
}

/* Ссылки */
a {
  color: var(--secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

/* Контейнеры */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

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

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

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

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

.logo h1 {
  font-size: 1.5rem;
  margin: 0;
  color: white;
}

/* Навигация */
nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 1.5rem;
}

nav ul li a {
  color: white;
  font-weight: 500;
  padding: 0.5rem;
  border-radius: 4px;
  transition: background 0.3s ease;
}

nav ul li a:hover {
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
}

nav ul li a.active {
  background-color: var(--secondary);
  color: white;
}

/* Мобильное меню */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Баннер */
.banner {
  background: linear-gradient(rgba(44, 62, 80, 0.7), rgba(44, 62, 80, 0.7)), url('images/1.jpg');
  background-size: cover;
  background-position: center;
  color: white;
  text-align: center;
  padding: 5rem 0;
  margin-bottom: 3rem;
}

.banner h2 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: white;
}

.banner p {
  font-size: 1.25rem;
  max-width: 800px;
  margin: 0 auto 2rem;
  opacity: 0.9;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: var(--secondary);
  color: white;
  border-radius: 4px;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn:hover {
  background-color: #2980b9;
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  color: white;
}

/* Секция для новичков */
.beginners-section {
  background-color: var(--transparent-bg);
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 3rem;
  box-shadow: var(--shadow);
  border-left: 5px solid var(--secondary);
}

.beginners-section h3 {
  color: var(--primary);
  margin-bottom: 1.5rem;
  font-size: 1.75rem;
}

.beginners-section p {
  margin-bottom: 1.5rem;
}

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

.beginners-section .btn:hover {
  background-color: #27ae60;
}

/* Блоки постов */
.posts-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

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

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

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

.post-content {
  padding: 1.5rem;
}

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

.post-meta {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  color: var(--text-light);
  font-size: 0.875rem;
}

.post-meta svg {
  width: 16px;
  height: 16px;
  margin-right: 0.5rem;
}

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

.post-card .btn {
  margin-top: 1rem;
  background-color: var(--primary);
  font-size: 0.875rem;
}

.post-card .btn:hover {
  background-color: #1a2530;
}

/* Секция "О нас" */
.about-section {
  margin-bottom: 3rem;
}

.about-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
}

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

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

.team-member:hover {
  transform: translateY(-5px);
}

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

.team-info {
  padding: 1.5rem;
}

.team-info h3 {
  margin-bottom: 0.5rem;
}

.team-info p {
  color: var(--text-light);
  margin-bottom: 1rem;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

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

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

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

/* Форма контактов */
.contact-form-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.contact-info {
  background-color: var(--primary);
  color: white;
  padding: 2rem;
  border-radius: 8px;
}

.contact-info h3 {
  color: white;
  margin-bottom: 1.5rem;
}

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

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

.contact-details li svg {
  width: 24px;
  height: 24px;
  margin-right: 1rem;
  flex-shrink: 0;
  margin-top: 0.25rem;
}

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

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

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

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
}

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

/* Подвал сайта */
footer {
  background-color: var(--primary);
  color: white;
  padding: 3rem 0 2rem;
}

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

.footer-about,
.footer-links,
.footer-newsletter {
  margin-bottom: 1.5rem;
}

.footer-about h3,
.footer-links h3,
.footer-newsletter h3 {
  color: white;
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
}

.footer-about p {
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.8);
}

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

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

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

.footer-links ul li a:hover {
  color: white;
  padding-left: 5px;
}

.footer-newsletter p {
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.8);
}

.newsletter-form {
  display: flex;
}

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

.newsletter-form button {
  padding: 0.75rem 1.5rem;
  background-color: var(--secondary);
  color: white;
  border: none;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

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

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

.footer-bottom p {
  margin-bottom: 1rem;
}

/* Cookie-плашка */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--dark);
  color: white;
  padding: 1rem;
  z-index: 1001;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

.cookie-content {
  max-width: 70%;
}

.cookie-content h4 {
  margin-bottom: 0.5rem;
  color: white;
}

.cookie-content p {
  font-size: 0.875rem;
  margin-bottom: 0;
}

.cookie-content a {
  color: var(--secondary);
  text-decoration: underline;
}

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

.cookie-btn {
  padding: 0.5rem 1rem;
  border-radius: 4px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

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

.accept-all:hover {
  background-color: #27ae60;
}

.customize {
  background-color: transparent;
  border: 1px solid white;
  color: white;
}

.customize:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

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

.decline:hover {
  background-color: #c0392b;
}

/* Модальное окно благодарности */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1002;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: white;
  border-radius: 8px;
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  text-align: center;
  position: relative;
}

.modal h3 {
  margin-bottom: 1.5rem;
}

.modal p {
  margin-bottom: 1.5rem;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-light);
  transition: color 0.3s ease;
}

.modal-close:hover {
  color: var(--accent);
}

/* Полупрозрачные блоки */
.transparent-block {
  background-color: var(--transparent-bg);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
}

/* Адаптивность */
@media (max-width: 992px) {
  .banner h2 {
    font-size: 2.5rem;
  }
  
  .contact-form-container {
    grid-template-columns: 1fr;
  }
  
  .banner {
    padding: 4rem 0;
  }
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }

  nav ul {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 80%;
    height: calc(100vh - 70px);
    background-color: var(--primary);
    flex-direction: column;
    padding: 2rem;
    transition: left 0.3s ease;
    z-index: 1000;
  }

  nav ul.active {
    left: 0;
  }

  nav ul li {
    margin: 0 0 1rem 0;
  }
  
  .banner h2 {
    font-size: 2rem;
  }
  
  .banner p {
    font-size: 1rem;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  h3 {
    font-size: 1.5rem;
  }
  
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .cookie-content {
    max-width: 100%;
    margin-bottom: 1rem;
  }
}

@media (max-width: 576px) {
  .banner h2 {
    font-size: 1.75rem;
  }
  
  .posts-container {
    grid-template-columns: 1fr;
  }
  
  .team-container {
    grid-template-columns: 1fr;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
  }
  
  .cookie-buttons {
    flex-wrap: wrap;
    gap: 0.5rem;
    width: 100%;
  }
  
  .cookie-btn {
    flex-basis: 48%;
  }
}
