@font-face {
    font-family: 'Open Sans Bold';
    src: url(../fonts/open-sans/OpenSans-Bold.ttf);
    font-display: swap;
}
@font-face {
    font-family: 'Open Sans Light';
    src: url(../fonts/open-sans/OpenSans-Light.ttf);
    font-display: swap;
}
@font-face {
    font-family: 'Open Sans Medium';
    src: url(../fonts/open-sans/OpenSans-Regular.ttf);
    font-display: swap;
}
body {
    font-size: 14px;
    font-family: "Open Sans Medium";
    scroll-behavior: smooth;
}
header {
    position: fixed;
    z-index: 1;
    top: 0;
    left: 0;
    width: 100%;
    height: 5rem;
    background-color: #302E2E;
    display: flex;
    align-items: center;
}
a {
    color: #fff;
    text-decoration: none;
}
.logo {
    width: 100%;
    margin:  0 0 0 10.125rem;
    font-weight: bold;
    font-family: "Open Sans Bold"; 
    font-size: 1.75rem;
}
.logo a:hover {
    transition: all 0.3s ease;
    color: gold;
}
.navbar {
    width: 100%;
    display: flex;
    align-items: center;
    font-family: "Open Sans Medium";
}
input[type="checkbox"] {
    display: none;
}
.nav-links {
    width: 100%;
    display: flex;
    gap: 2rem;
}
.nav-links a {
    padding: 0.625rem 0.938rem 0.625rem 0.938rem;
}
.nav-links a:hover {
    color: gold;
    text-underline-offset: calc(0.313rem);
    text-decoration: underline;
    transition: all 0.3s ease;
}
.menu-icon {
    display: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}
.small-avatar {
  border-radius: 50%;
  border: 2px solid #22222200;
}

.small-avatar:hover {
  border: 2px solid rgb(250, 250, 250);
  transition: 0.3s ease-in-out;
}
.nav-links a,
.personal-account a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
    border-radius: 4px;
    padding: 0;
    margin: 0;
}

.personal-account {
    white-space: nowrap;
}
.dropdown-menu {
  position: absolute;
  background-color: #333;
  min-width: 150px;
  z-index: 1000;
  list-style: none;
  padding: 10px 0;
  margin: 0;
  top: 100%;
  left: 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  visibility: hidden;
  opacity: 0;
  transition: visibility 0.3s ease, opacity 0.3s ease;
}
.dropdown-menu li {
  padding: 8px 16px;
}
.dropdown-menu li a {
  color: white;
  text-decoration: none;
  display: block;
}
/* .dropdown-menu li a:hover {
  background-color: #555;
} */
.dropdown {
  position: relative; 
}
.dropdown > a::after {
  content: '▼';
  margin-left: 0.3rem;
  font-size: 0.8em;
}
.dropdown:hover .dropdown-menu {
  visibility: visible;
  opacity: 1;
}
.personal-account {
  width: 20%;
  text-align: right;
  margin: 0 10.125rem 0 0;
}
.content-center {
  margin-top: 30px;
  width: 100%;
  height: 60vh;
  display: flex;
}
.content-title {
  width: 100%;
  margin:  0 0 0 10.125rem;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}
.content-bg {
  width: 100%;
  margin:  0 10.125rem 0 0;
}
#slider-point {
  position: relative;
  width: 100%;
  height: 500px; /* задайте нужную высоту */
  overflow: hidden;
}
.content-image {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease;
}
.content-slider {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
}
.content-slider img {
  width: 100%;
  height: 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  border-radius: 5px;
}
.slider-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}
.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  opacity: 0.6;
  cursor: pointer;
}
.indicator.active {
  background: #ffffff34;
  opacity: 1;
}
.content-head {
  color: #302E2E;
  font-weight: bold;
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.content-head h3 {
  margin: 0;
  font-size: 38px;
}
.content-head p {
  margin: 0;
  width: 90%;
  font-size: 18px;
}
.horizontal-line {
  margin-top: 40px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.line {
  margin-left: 10.125rem;
  margin-right: 10.125rem;
  width: 100%;
  height: 1px;
  border-bottom: 1px solid #302E2E;
}
.filter {
  margin-top: 20px;
  margin-bottom: 10px;
  width: 100%;
}
.filter-posts {
  padding-left: 10.125rem;
  padding-right: 10.125rem;
  width: 70%;
}
.filter-posts h3 {
  margin: 0;
  padding: 0;
  font-size: 14px;
  font-weight: bold;
}
.categories {
  padding-top: 10px;
  width: 100%;
  font-weight: 800;
  margin-left: 50px;
}
.list-categories {
  width: 100%;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 12px;
}
.list-categories li {
  display: inline-block;
  margin-right: 30px;
}
.list-categories li a {
  color: #302E2E;
  padding: 5px 10px 5px 10px;
  border-bottom: 2px solid transparent; /* прозрачная линия изначально */
  padding-bottom: 2px;
  transition: border-bottom-color 0.3s ease;
}
.list-categories li a:hover {
  border-bottom-color: #302E2E;
}
.section-content {
  padding-top: 80px;
  min-height: calc(100vh - 5rem);
}
.posts {
  display: grid;
  grid-template-columns: repeat(3, minmax(auto, 600px));
  gap: 1.25rem;
  width: calc(100% - 20.125rem);
  height: auto;
  margin: 0 auto;
}
@media (max-width: 768px) {
.posts {
    grid-template-columns: repeat(1, 1fr);
    margin-left: 5rem;
}
}
@media (max-width: 640px) {
.posts {
    grid-template-columns: 1fr; /* 1 колонка на мобильных */
    margin: 0;
  }
}
.post {
    margin: 0.75rem 0 0 0;
    padding: 0;
    height: 32.3125rem;
    border: 1px solid #CAC4C4;
    border-radius: 0.625rem;
    box-shadow: 0 0.25rem 8px rgba(0, 0, 0, 0.1), 0 0.375rem 20px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
    backface-visibility: hidden;
    background-color: #fff;
}
.post:hover {
    /* transform: scale(1.009); */
    transform: translateY(-2px);
    -webkit-font-smoothing: antialiased; /* Для Safari и Chrome */
    -moz-osx-font-smoothing: grayscale; /* Для Firefox */
    text-rendering: optimizeLegibility; /* Улучшает читаемость */
}
.picture-wrapper {
    margin: 2.25rem 0 0 0;
}
.picture-wrapper > img {
    width: 27.3125rem;
    height: 25.25rem;
    border-radius: 5px;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    object-fit: cover;
    object-position: center;
}
.post-text {
    width: 27.3125rem;
    height: 6.25rem;
    text-align: justify;
    overflow: hidden;
}
.post-text > p {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.6;
    color: #302E2E;
}
.global-message-container {
    position: fixed;
    top: 60px;
    right: 20px;
    z-index: 10000; /* Высокий приоритет */
    max-width: 400px;
    max-height: 80vh; /* Ограничение высоты */
    overflow-y: auto; /* Прокрутка при переполнении */
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.global-message {
    padding: 1rem 1.25rem;
    border-radius: 8px;
    box-shadow: 0 0.25rem 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: slideIn 0.3s ease-out;
    opacity: 0;
    transform: translateX(100%);
    animation-fill-mode: forwards;
    min-width: 18.75rem;
}

/* Стили для разных типов сообщений */
.global-message.success {
    background: linear-gradient(135deg, #4ade80, #22c55e);
    color: white;
    border-left: 4px solid #16a34a;
}

.global-message.error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border-left: 4px solid #b91c1c;
}

.global-message.warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    border-left: 4px solid #92400e;
}

.global-message.info {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border-left: 4px solid #1d4ed8;
}

/* Иконки и текст */
.message-icon {
    font-size: 1.125rem;
    min-width: 1.25rem;
}

.message-text {
    flex: 1;
    font-weight: 500;
    line-height: 1.4;
}

.message-close {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    font-size: 16px;
    padding: 0;
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Анимации */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

.global-message.hide {
    animation: slideOut 0.3s ease-in forwards;
}

.site-footer {
  background-color: #302E2E;
  color: #ecf0f1;
  padding: 2.5rem 0 1.25rem;
  /* margin-top: 3.125rem; */
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.875rem;
  max-width: 75rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.footer-section {
  flex: 1;
  min-width: 15.625rem;
}

.footer-section h3 {
  font-size: 1.2em;
  margin-bottom: 0.938rem;
  color: #fff;
}
.footer-contacts,
.footer-links,
.social-links {
    padding: 0;
}

.footer-contacts li,
.footer-links li {
  list-style: none;
  margin-bottom: 0.5rem;
}

.footer-contacts a,
.footer-links a {
  color: #bdc3c7;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-contacts a:hover,
.footer-links a:hover {
  color: #3498db;
}

.social-links a {
  display: inline-block;
  margin-right: 0.938rem;
  color: #bdc3c7;
  font-weight: bold;
  text-decoration: none;
}

.social-links a:hover {
  color: #3498db;
}

.footer-bottom {
  text-align: center;
  padding-top: 1.25rem;
  border-top: 1px solid #34495e;
  margin-top: 1.875rem;
  color: #95a5a6;
  font-size: 0.9em;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    gap: 1.563rem;
  }
  .social-links {
    text-align: center;
  }
}

.pagination {
    width: 100%;
    text-align: center;
    padding: 3.125rem 0;
}
.step-links a {
    color: #007bff;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin: 0 0.313rem;
}
.step-links a:hover {
    background-color: #f8f9fa;
}
.current {
    font-weight: bold;
    margin: 0 0.625rem;
}
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  color: #333;
}
h1 {
  color: #2c3e50;
  border-bottom: 2px solid #3498db;
  padding-bottom: 10px;
  margin-bottom: 15px;
}

.text-muted {
  color: #7f8c8d;
  font-size: 0.9em;
}

small {
  color: #95a5a6;
  font-size: 0.85em;
}

.card {
  background: #ffffff;
  border: none;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.card-body {
  padding: 25px;
}

#comments-container {
  margin-top: 20px;
}

.comment {
  padding: 0px 10px;
  background: #f8f9fa;
  border-left: 4px solid #3498db;
  transition: background-color 0.3s;
}

.comment:hover {
  background: #e9ecef;
}

.comment strong {
  color: #2c3e50;
  display: block;
  margin-bottom: 5px;
}

.no-comments {
  text-align: center;
  padding: 30px;
  background: #f8f9fa;
  border-radius: 8px;
  color: #7f8c8d;
}

.login-prompt {
  text-align: center;
  padding: 20px;
  background: #fff3cd;
  border-radius: 8px;
  border: 1px solid #ffeaa7;
}

.login-link {
  font-weight: bold;
  text-decoration: underline;
}

.login-link:hover {
  color: #2980b9;
}

h5 {
  color: #2c3e50;
  margin-bottom: 15px;
}

#messageText {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  resize: vertical;
  font-size: 1em;
  transition: border-color 0.3s, box-shadow 0.3s;
  box-sizing: border-box;
}

#messageText:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

#sendButton {
  background: #3498db;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

#sendButton:hover {
  background: #2980b9;
  transform: translateY(-1px);
}

#sendButton:active {
  transform: translateY(0);
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
  .container {
    padding: 15px;
  }
  
  .card-body {
    padding: 20px;
  }
  
  #messageText, #sendButton {
    width: 100%;
  }
}

/* cookie banner */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #393b3d;
    color: white;
    padding: 15px 20px;
    z-index: 1000;
}

.cookie-banner__content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.cookie-banner__link {
    color: #3498db;
    text-decoration: underline;
}

.cookie-banner__button {
    background: #3498db;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.cookie-banner__button:hover {
    background: #2980b9;
}