/* blog-style.css - Стили только для страницы блога */

/* ====================== */
/* БАЗОВЫЕ СТИЛИ И РЕСЕТ */
/* ====================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Arial", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: #141414;
  color: #333;
  line-height: 1.6;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
  padding-right: 15px;
}

.container {
  max-width: 1545px;
  margin: 0 auto;
  padding: 0 15px;
}

/* ШАПКА САЙТА - Перенесено в header.css */

/* БУРГЕР-МЕНЮ - Перенесено в header.css */

/* БОКОВОЕ МЕНЮ - Перенесено в header.css */

/* ====================== */
/* КОРЗИНА - Перенесено в header.css */
/* ====================== */

/* ====================== */
/* СТРАНИЦА БЛОГА */
/* ====================== */



.blog-page {
  padding-top: 80px;
  background: #141414;
  min-height: 100vh;
}

.blog-hero {
  background: linear-gradient(135deg,
      rgba(218, 182, 114, 0.1),
      rgba(32, 32, 32, 0.9));
  padding: 80px 20px;
  text-align: center;
  color: white;
}

.blog-hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  color: #dab672;
}

.blog-hero p {
  font-size: 1.3rem;
  color: #ccc;
  max-width: 600px;
  margin: 0 auto;
}

.blog-content {
  padding: 60px 20px;
}

.blog-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  gap: 20px;
  flex-wrap: wrap;
}

.blog-controls .search-container {
  position: relative;
  flex: 1;
  min-width: 300px;
}

#blog-search {
  width: 100%;
  padding: 12px 20px 12px 45px;
  border-radius: 30px;
  border: 1px solid #333;
  background: #222;
  color: white;
  font-size: 1rem;
  transition: all 0.3s;
}

#blog-search:focus {
  outline: none;
  border-color: #dab672;
  box-shadow: 0 0 0 2px rgba(218, 182, 114, 0.3);
}

.search-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  fill: #aaa;
}

.blog-filters {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.blog-filters select {
  padding: 12px 40px 12px 20px;
  border-radius: 8px;
  border: 1px solid #333;
  background: #222;
  color: white;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1em;
  max-width: 100%;
  box-sizing: border-box;
}

.blog-filters select:focus {
  outline: none;
  border-color: #dab672;
}

.blog-filters select option {
  background: #222;
  color: white;
  max-width: 100%;
  box-sizing: border-box;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.blog-article-card {
  background: #222;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid #333;
  cursor: pointer;
}

.blog-article-card:hover {
  transform: translateY(-5px);
  border-color: #dab672;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.article-image {
  width: 100%;
  height: auto;
  overflow: hidden;
}

.article-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.blog-article-card:hover .article-image img {
  transform: scale(1.05);
}

.article-content {
  padding: 25px;
}

.article-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  font-size: 0.9rem;
  color: #aaa;
}

.article-category {
  background: #dab672;
  color: #000;
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.8rem;
}

.article-content h3 {
  color: white;
  font-size: 1.4rem;
  margin-bottom: 15px;
  line-height: 1.4;
}

.article-excerpt {
  color: #ccc;
  line-height: 1.6;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.read-article {
  color: #dab672;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s;
}

.read-article:hover {
  color: #fff;
  transform: translateX(5px);
}

.read-article::after {
  content: "→";
  margin-left: 8px;
  transition: transform 0.3s;
}

.read-article:hover::after {
  transform: translateX(5px);
}

/* Пагинация */
.blog-pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 50px;
}

.page-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  /* Rounded square */
  background: #2a2a2a;
  color: #fff;
  border: 1px solid #333;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: 600;
}

.pagination-btn {
  height: 40px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  /* Rounded rectangle */
  background: #2a2a2a;
  color: #fff;
  border: 1px solid #333;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: 600;
  font-size: 0.95rem;
}

.page-btn:hover:not(.active):not(.disabled),
.pagination-btn:hover:not(:disabled) {
  background: #333;
  color: #dab672;
  border-color: #dab672;
}

.page-btn.active {
  background: #dab672;
  color: #000;
  border-color: #dab672;
}

.page-btn.disabled,
.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #222;
  color: #555;
  border-color: #333;
}

.pagination-numbers {
  display: flex;
  gap: 10px;
}

/* ====================== */
/* ВИДЖЕТ МЕССЕНДЖЕРОВ */
/* ====================== */
.messenger-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  transition: opacity 0s ease;
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.widget-button {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: #424242;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  border: none;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 2;
  overflow: hidden;
  position: relative;
}

.widget-button:hover {
  transform: scale(1.1);
  background: #dab672;
  box-shadow: 0 6px 25px rgba(109, 91, 57, 0.5);
}

.icon-message,
.icon-close {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  width: 35px;
  height: 35px;
}

.icon-message {
  opacity: 1;
  transform: translate(-50%, -50%) rotate(0deg);
}

.icon-close {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(360deg);
}

.messenger-widget.active .icon-message {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(-360deg);
}

.messenger-widget.active .icon-close {
  opacity: 1;
  transform: translate(-50%, -50%) rotate(0deg);
}

.icons-container {
  position: absolute;
  bottom: 70px;
  right: 2.5px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.messenger-widget.active .icons-container {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.messenger-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform: scale(0.8);
  opacity: 0;
}

.messenger-widget.active .messenger-icon {
  opacity: 1;
}

.messenger-icon:nth-child(1) {
  transition-delay: 0.3s;
}

.messenger-icon:nth-child(2) {
  transition-delay: 0.2s;
}

.messenger-icon:nth-child(3) {
  transition-delay: 0.1s;
}

.messenger-icon img {
  width: 55px;
  height: 55px;
  transition: transform 0.3s ease;
}

.messenger-icon:hover img {
  transform: scale(1.2);
}

/* ====================== */
/* ПОДВАЛ (FOOTER) */
/* ====================== */
footer {
  background: #0f0f0f;
  color: #aaa;
  padding: 60px 20px 0;
  border-top: 1px solid #222;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-column {
  flex: 1;
  min-width: 250px;
}

.footer-column h3 {
  color: #dab672;
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.footer-column h4 {
  color: #fff;
  font-size: 1.3rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-column h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background: #dab672;
}

.footer-column p {
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column ul li {
  margin-bottom: 12px;
  position: relative;
  padding-left: 20px;
}

.footer-column ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #dab672;
}

.footer-column a {
  color: #aaa;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-column a:hover {
  color: #dab672;
}

.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-icons a {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #222;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.social-icons a:hover {
  background: #dab672;
  transform: translateY(-3px);
}

.social-icons img {
  width: 20px;
  height: 20px;
  filter: invert(0.8);
}

.footer-bottom {
  border-top: 1px solid #222;
  padding: 20px 0;
  text-align: center;
  font-size: 0.9rem;
}

/* ====================== */
/* АДАПТИВНОСТЬ */
/* ====================== */
@media (max-width: 1200px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .blog-hero h1 {
    font-size: 2.2rem;
  }

  .blog-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .blog-filters {
    flex-direction: column;
  }

  .blog-filters select {
    width: 100%;
  }

  .blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }


}

@media (max-width: 480px) {
  .blog-hero {
    padding: 60px 20px 40px;
  }

  .blog-hero h1 {
    font-size: 1.8rem;
  }
}