/* ==========================================
   Global Styles & Layout
========================================== */

:root {
    --color-bg-body: #fdfcf9;
    --color-bg-card:rgba(230, 232, 236, 0.6);
    --color-accent: #6b8e23;
    --color-accent-dark: #3e4f2f;
    --color-text: #2f2f2f;
    --color-error: #c0392b;
    --color-success: #27ae60;
    --color-border: #cccccc;
    --color-bg-article:rgb(216, 231, 217);
  
    --bg-menu: rgba(174, 209, 241, 1);
    --bg-title: var(--color-accent);
    --bg-content: var(--color-bg-body);
  }
  
*, *::before, *::after {
  box-sizing: border-box;
}



body {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  color: var(--color-text);
  letter-spacing: 0.04em;
}
html, body {
  margin: 0;
  padding: 0;
  min-height: 100vh;  /* гарантирует минимум 100% высоты окна */
  display: flex;
  flex-direction: column;
}
body.page-body {
  flex: 1 0 auto; /* чтобы занимать доступное пространство */
  display: flex;
  flex-direction: column;
}

.page-bg {
  flex: 1 0 auto; /* растягиваемый контейнер между хедером и футером */
  display: flex;
  flex-direction: column;
}

.wrapper, .content {
  margin-top: 0 !important;
  padding-top: 0 !important;
}



.content {
  width: 100%;
  display: flex;
  justify-content: center; /* Центрирует по горизонтали */
}


.helptext li {
  font-size: 0.85rem !important;
  color: #6c757d !important;
}
.footer {
  flex-shrink: 0; /* не сжимается */
  height: 40px; /* или твоя высота */
  background-color: var(--bg-menu);
  text-align: center;
  line-height: 40px; /* выравнивание по вертикали */
  font-size: 0.8rem;
}



.page-bg {
  background: linear-gradient(rgba(255,255,255,0.5), rgba(255,255,255,0.9)),
  url('../assets/img/9bg-main.jpg') repeat center center / cover;
  height: calc(100vh -40px); /* если высота футера 40px */
  background-size: cover;

}


h1, h2, h3, h4 {
  font-family: 'Lora', serif;
  font-weight: 600;
  color: var(--color-accent);
}

/* Flex layout for sticky footer */



/* Фон + центрирование контента на странице */

.wrapper {
  flex: 1; /* основной контент растягивается */
  display: flex;
  justify-content: center; /* если надо */
  align-items: flex-start; /* или center */
}



.footer {
  flex-shrink: 0;
  height: 40px;
  background-color: var(--bg-menu);
  text-align: center;
  padding: 0px;
  font-size: 0.8rem;
}

/* ==========================================
   Navbar & Header
========================================== */


nav.navbar {
  background: transparent !important;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 1rem; /* задаёт равномерные промежутки между пунктами */
  flex-wrap: wrap; /* если экран маленький */
}
.navbar-nav .nav-link {
  color: var(--color-text);
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: color 0.3s ease;
}
  .navbar-nav .nav-link {
    padding: 0.5rem 1rem;
    white-space: nowrap;
    color: #000;
    font-weight: 500;
  }
  
}
.navbar-nav .nav-link.active {
  color: var(--color-accent);
  font-weight: bold;
}
.navbar-nav .nav-link:hover {
  color: var(--color-accent);
}

.navbar-nav .nav-item {
  flex: 0 1 auto;
}

.navbar-nav .nav-link {
  min-width: 80px;
  text-align: center;
}
@media (max-width: 768px) {
  .navbar-nav {
    gap: 0.5rem;
  }
}


.mainDrop {
  background: rgb(178, 184, 211);
}

.mainDrop .dropdown-item {
  color: rgba(51, 51, 70, 0.9);
}

.mainDrop .dropdown-item:hover {
  color:var(--color-accent);
}

/* Hamburger menu override */
.navbar-toggler {
  font-size: 0.875rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid #64a19d;
}

/* Цвет текста выпадающего меню */
@media (max-width: 768px) {
  .mainDrop .dropdown-item {
    color:rgba(82, 82, 216, 0.8) !important;
  }

  .mainDrop .dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color:var(--color-accent); !important;
  }

  .navbar-collapse {
    background-color: var(--bg-menu); /* такой же как .mainDrop */
  }
}


/* ==========================================
              Images
========================================== */

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

.avatar, .article-img {
  width: 30px;
  height: 30px;
  object-fit: cover;
  border-radius: 50%;
}

/* ==========================================
            Buttons
========================================== */

.button {
  appearance: none;
  border: 0;
  border-radius: 5px;
  background: rgb(173, 226, 182);
}
.btn_help {
  appearance: none;
  border: 0px solid rgb(157, 160, 157);
  background: none;
  color: rgb(4, 49, 12);
  padding: 0.5rem 1rem;
  text-decoration: none;
  font-size: 1rem;
  cursor: pointer;
  display: inline-block;
  transition: background 0.3s, color 0.3s;
  border-radius: 5px;

}
.btn_help:hover {
  background: rgb(135, 150, 189);
  font-size: 1rem;
  color: var(--color-accent);
  transition: background 0.3s, color 0.3s;
  text-decoration: none;
}

.btn-delete {
  padding: 0.2rem 0.2rem;
  background-color:rgb(92, 128, 56);
  color:rgb(177, 194, 138);
  border: none;
  border-radius: 6px;
  text-decoration: none;
  font-weight: light;
  transition: background-color 0.3s ease;
}

.btn-update {
  padding: 0.2rem 0.2rem;
  background-color:rgb(177, 194, 138);
  color:rgb(92, 128, 56);
  border: none;
  border-radius: 6px;
  text-decoration: none;
  font-weight: light;
  transition: background-color 0.3s ease;
}

.btn-delete:hover,
.btn-update:hover {
  background-color:rgb(114, 174, 231);
  color:rgb(165, 114, 80);
  transition: background-color 0.3s ease;
  text-decoration: none;
}
.btn-update,
.btn-delete {
    width: 150px; /* Фиксированная ширина кнопок */
    text-align: center; /* Центрирование текста внутри кнопки */
}

.btn-container {
    display: flex;
    justify-content: center; /* Центрирование кнопок по горизонтали */
    gap: 1rem; /* Расстояние между кнопками */
    margin-top: 1rem;
}
/* ==========================================
  Loggin, Signup, and Forms
========================================== */

/* Форма входа */
.login-card {
  width: 100%;
  max-width: 400px;
  background-color: var(--color-bg-card);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  color: var(--color-text);
}

.login-card h2 {
  text-align: center;
  color: var(--color-accent);
  margin-bottom: 1.5rem;
}

.login-card label {
  font-weight: 600;
  display: block;
  margin-bottom: 0.3rem;
}

.login-card input {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background-color: #fff;
  color: var(--color-text);
}

.login-card input:focus {
  border-color: var(--color-accent);
  outline: none;
}

.login-card button {
  width: 100%;
  background-color: var(--color-accent);
  color: white;
  font-weight: bold;
  padding: 0.75rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
}

.login-card .button:hover {
  background-color: var(--color-accent-dark);
}
form ul li {
  font-size: 0.6rem !important;
}


/* ==========================================
   Flags
========================================== */
.flag {
  width: 30px;
  height: 20px;
  overflow: hidden;
  border-radius: 3px;
  display: inline-block;
}

.flag img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* или object-fit: contain для полного вписывания */
}

/* ==========================================
   Help
========================================== */
.section-heading {
  scroll-margin-top: 80px; /* чтобы заголовок не прятался за меню */
}

h4 {
  margin-top: 2rem;
}

aside {
  min-width: 220px;
  max-width: 250px;
  word-wrap: break-word;
}

aside .card {
  width: 100%;
}

aside .card a {
  display: block;
  padding: 0.4rem;
  text-align: center;
  text-decoration: none;
  color: var(--color-text);
  font-weight: 500;
}

aside .card a:hover {
  background-color: rgba(204, 226, 245, 0.4);
  border-radius: 4px;
  color: var(--color-accent);
  transition: background-color 0.3s, color 0.3s;  
}
  aside .card a {
  white-space: normal; /* строки могут переноситься */
}

/* ==========================================
   Scroller up
========================================== */


html {
  position: relative; /* Не обязателен, но может помочь в редких случаях */
}

.scroll-to-top {
  position: fixed;
  bottom: 40px;         /* отступ снизу */
  left: 5%;           /* отступ слева */
  background-color: white;
  color: #333;         /* цвет стрелки */
  font-size: 20px;     /* размер иконки */
  padding: 14px 16px;  /* отступы внутри */
  border-radius: 50%;  /* круг */
  cursor: pointer;
  z-index: 9999;
  opacity: 0;          /* изначально скрыта */
  visibility: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* тень */
  transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.3s ease;
}

.scroll-to-top:hover {
  transform: scale(1.15); /* лёгкое увеличение при наведении */
}

.scroll-to-top.show {
  opacity: 1;
  visibility: visible;
}

/* Показать кнопку при скролле */
/* Адаптивные изображения профиля и аватара */
img.rounded-circle {
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

/* Для гарантии корректного отображения в navbar */
.navbar-brand {
  padding-right: 1rem !important;
}

/* Чтобы выпадающее меню на мобильных открывалось по клику */
@media (max-width: 991px) {
  .dropdown-menu {
    position: static !important;
    float: none;
  }
}

/* ==========================================
   Blog and Articles
========================================== */

.blog-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  gap: 30px;
}

.blog-sidebar {
  position: sticky;
  top: 20px;
  align-self: flex-start;
  width: 280px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}
.blog-sidebar .card {
  background-color: var(--color-bg-article);
  padding: 10px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}
.blog-content {
  flex: 1;
  min-width: 0;
  padding-bottom: 100px;
}

.blog-entry {
  background-color: var(--color-bg-article);
  border-radius: 50px;
  border-left: 6px solid var(--color-accent);
  border-right: 6px solid var(--color-accent);
  padding: 1rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 5px rgba(255,0,0,0,0.8);
} 


.blog-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  text-align: center;
}

.blog-description {
  word-break: break-word;
}

.blog-meta {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #555;
}

.avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  margin-left: 5px;
  vertical-align: middle;
}

.rating-div {
  display: flex;
  height: 1.8rem;
  gap: 0.5rem;
  justify-content: center;
}

.rating-sum {
  color: var(--color-accent);
}

.read-more {
  text-align: center;
  ma
}  

details summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
}

details[open] summary::after {
  content: "🔼";
  margin-left: 8px;
}

details:not([open]) summary::after {
  content: "🔽";
  margin-left: 8px;
}

.sidebar-block {
  background-color: rgba(40, 22, 143, 0.02);
  border-radius: 23px;
  margin-top: 6px;
  padding: 6px;
}

.sidebar-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: bold;
  cursor: pointer;
  padding: 4px 0px;
}

.emoji-toggle {
  margin-left: 1px; /* уменьши до 4px или 2px, если нужно плотнее */
  font-size: 0.9em;
}

.sidebar-first {
  cursor: pointer;
  font-weight: bold;
  color:rgba(53, 5, 187, 0.5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 94px 0px 0; /* добавлено 44px слева для иконки */
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease;
}
.sidebar-link {
  color: inherit;
  text-decoration: none;
}

.sidebar-link:hover {
  text-decoration: underline;
}
 
  

/* ✅ Адаптация под мобильные устройства */
/* Адаптив: на экранах до 768px сайдбар уходит вниз */
@media (max-width: 768px) {
  .blog-wrapper {
        flex-direction: column;
  }

  .blog-sidebar {
        position: static;
        width: 100%;
        max-height: none;
        margin-top: 20px;
        order: 2; /* ниже основного контента */
  }

  .blog-content {
        order: 1;
    }

  .blog-entry {
      padding: 1rem;
  }
}

/* ==========================================
   Article and other Pages
========================================== */


.article-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

.article-sidebar {
  flex: 0 0 250px;
}

.article-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* Общий стиль карточки */
.card-box {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.sidebar-card {
  background-color: var(--color-bg-article);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* Остальные стили */
.sidebar-card-body {
  padding-left: 0.5rem;
  font-size: 0.95rem;
}

.sidebar-tags {
  margin-top: 1rem;
}

.comments-section {
  margin-top: 2rem;
}

.comment-body {
  padding: 10px;
  background-color: var(--color-bg-article);
  border-radius: 8px;
  margin-bottom: 1rem;
}
.article-title {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
}

.article-body {
  font-size: 1.1rem;
  line-height: 1.6;
  text-align: justify;
}

.article-actions {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
}


.avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  margin-left: 5px;
  vertical-align: middle;
}

/* Ссылки */
a.lnk {
    text-decoration: none;
    color: rgba(19, 99, 72, 0.83);
}

a.lnk:hover {
    text-decoration: none;
    color: rgba(110, 37, 110, 0.83);
}

form .form-label {
  font-size: 1.1rem;
  color: var(--color-text);
}

form .form-control, .ckeditor {
  background-color: white;
  border-radius: 0.5rem;
  border: 1px solid #ccc;
  padding: 0.5rem 0.75rem;
}



/* === Мобильная адаптация === */
@media (max-width: 768px) {
    .article-wrapper {
        flex-direction: column;
        margin: 1rem;
    }

    .article-main,
    .article-sidebar {
        width: 100%;
    }

    .article-actions {
        flex-direction: column;
        align-items: center;
    }
}

/* ==========================================
   ckeditor
========================================== */

.image-style-align-left {
  float: left;
  margin-right: 1.5em;
}

.image-style-align-right {
  float: right;
  margin-left: 1.5em;
}

.image-style-align-center {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.image-style-side {
  float: right;
  margin-left: 1.5em;
  max-width: 50%;
}


.photos-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* центрируем карточки */
  gap: 30px;
  max-width: 1200px;       /* ограничиваем максимальную ширину */
  margin: 0 auto;          /* центрируем блок по горизонтали */
  padding-bottom: 40px;
  /* убери рамку и фон для боевого варианта */
}




/* ==========================================
   Photo
========================================== */
/* Контейнер всей галереи */
.container-gallery {
  max-width: 1100px;    /* Ширина ограничена */
  margin: 0 auto;
  padding: 20px;
}

/* Заголовок */
.gallery-header {
  text-align: center;
  margin-bottom: 40px;
}

/* Сетка карточек */
.collections-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}


/* Карточка */
.collection-card {
  width: 25%; /* примерно 2 карточки на строку */
  max-width: 400px;
  min-width: 280px;

  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transition: transform 0.2s ease;
  display: flex;
  flex-direction: column;
  text-align: center;
}


.collection-card:hover {
  transform: translateY(-3px);
}

.photo-toolbar {
  background-color: #f9f9f9;
  border-bottom: 1px solid #ccc;
  z-index: 100;
}

/* Изображение */
.image-box {
  width: 100%;
  aspect-ratio: 4 / 3;
  background-color: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.image-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

/* Текст */
.collection-info {
  padding: 12px;
}

.collection-info h3 {
  font-size: 1.1rem;
  margin: 0.5rem 0;
}

.collection-info p {
  font-size: 0.9rem;
  color: #555;
}


/* Мобильная адаптация */
@media (max-width: 768px) {
  .collection-card {
    width: 100%;
  }
}

  .collection-info h3 {
    font-size: 1.2rem;
  }

  .collection-info p {
    font-size: 0.95rem;
  }
}/* Просмотр коллекции */

.photos-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  padding-bottom: 40px;
}

.photo-card {
  width: 100%;
  max-width: 320px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 15px;
}

.photo-image-wrapper {
  width: 100%;
  padding-top: 66.66%; /* соотношение 3:2 */
  position: relative;
  margin-bottom: 12px;
  background-color: #f0f0f0;
}

.photo-image-wrapper img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain; /* 👈 не обрезает, вписывает */
  border-radius: 8px;
  cursor: zoom-in;
}

.badge-featured {
  background-color: #28a745;
  color: white;
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
  font-weight: bold;
  text-transform: uppercase;
}

.photo-info {
  text-align: center;
}

.photo-title {
  font-size: 1rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
}

.photo-date {
  font-size: 0.85rem;
  color: #777;
}

/* Полноэкранное изображение */
.fullscreen-image {
  position: fixed;
  inset: 0;
  background-color: rgba(0,0,0,0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  user-select: none;
  overflow: auto; /* чтобы был скролл, если изображение большое */
  flex-direction: column;
}

.fullscreen-image img.fullscreen-img {
  max-width: none;
  max-height: none;
  width: auto;
  height: auto;
  user-select: none;
  cursor: grab;
}

.back-btn {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: none;
  padding: 10px 15px;
  font-size: 18px;
  border-radius: 6px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease;
}

.back-btn:hover {
  background: rgba(0,0,0,0.85);
}

.search-input {
  width: 180px; /* Уменьшенная ширина */
  padding: 6px 10px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  flex-shrink: 0;
}

.search-wrapper {
  display: flex;
  align-items: center;
  gap: 10px; /* Отступ между полем и кнопкой */
  margin: 10px 0; /* Внешние отступы сверху и снизу */
}

/* Анимация */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}


@media (max-width: 768px) {
  .photo-card img {
    height: 180px;
  }

  .photo-title {
    font-size: 1rem;
  }
}

body.slideshow-page header,
body.slideshow-page footer,
body.slideshow-page .wrapper,
body.slideshow-page #scroll-to-top {
  display: none !important;
}

body.slideshow-page {
  overflow: hidden;
  background: black; /* или любой фон */
}

body.slideshow-page .carousel,
body.slideshow-page .carousel-inner,
body.slideshow-page .carousel-item,
body.slideshow-page .carousel-item img {
  height: 100vh;
  width: 100vw;
  object-fit: contain;
  margin: 0;
  padding: 0;
}

/* Стили tools */  

.tools-card {
  /* width: 300px; */ /* удалить, если есть */
  border: 1px solid #ccc;
  border-radius: 8px;
  overflow: hidden;
  background-color: #f8f8f8;
}
.tools-image-box img {
  width: 100%;
  height: auto;
  object-fit: cover;
}
.edit-card {
  border: 1px solid #ccc;
  border-radius: 8px;
  overflow: hidden;
  background-color:var(--color-bg-card);

  padding: 15px;
}
.edit-card-body {
  padding: 15px;
}

/* Стили blog */

.card-intro {
  background-color: rgba(246, 248, 246, );  
  font-size: 0.9rem;
  color: var(--color-text);
  border-radius: 12px;   /* Скругление углов */
  
  width: 300px;          /* Ширина карточки */
  height: auto;          /* Автоматическая высота, можно указать фиксированную */
  padding: 1px;         /* Внутренние отступы */
  margin: 2px auto;     /* Центрирование и внешние отступы */ 

}

.card-gallery {
  font-size: 0.9rem;
  color: var(--color-text);
  border-radius: 22px;   /* Скругление углов */
  
  width: 300px;          /* Ширина карточки */
  height: 300px;          /* Автоматическая высота, можно указать фиксированную */
  padding: 1px;         /* Внутренние отступы */
  margin: 2px auto;     /* Центрирование и внешние отступы */ 

}
.card-gallery p {
  font-size: 0.9rem;
  text-align: center;
  line-height: 1.4;
  /* Убираем отступы и выравнивание */
  margin: 0;
  padding: 0;
  /* Цвет текста */
  color: var(--color-text);
}

.card-gallery span {
  font-weight: bold;
  color: var(--color-accent);
  font-size: 1.1rem;
}


.card-intro img {
  ratio: 4 /3;
  width: 90%;
  height: auto;
  object-fit: cover;
  margin: 0;

}



.card-intro p {
  font-size: 0.9rem;
  text-align: center;
  
  line-height: 1.4;
  /* Убираем отступы и выравнивание */
  margin: 0;
  padding: 0;
  /* Цвет текста */
  color: var(--color-text);
}

.card-intro span {
  font-weight: bold;
  color: var(--color-accent);
  font-size: 1.1rem;
}

/* для контактов */

.contact-page-wrapper {
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 1rem;
  font-family: 'Poppins', sans-serif;
  color: var(--color-text);
}

.contact-page-wrapper h1,
.contact-page-wrapper h2 {
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.contact-container {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
  justify-content: space-between;
}

.contact-info {
  flex: 1 1 300px;
}

.contact-info p {
  margin: 0.5rem 0;
}

.contact-info a {
  color: var(--color-accent);
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

.contact-form-section {
  flex: 1 1 300px;
}

.contact-form label {
  display: block;
  font-weight: 600;
  margin: 1rem 0 0.3rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.6rem;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-size: 1rem;
  font-family: 'Poppins', sans-serif;
  color: var(--color-text);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--color-accent);
  outline: none;
}

.contact-form button.button {
  margin-top: 1.5rem;
  width: 100%;
  background-color: var(--color-accent);
  color: #fff;
  font-weight: 700;
  padding: 0.75rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-form button.button:hover {
  background-color: var(--color-accent-dark);
}

/* Адаптив для мобильных */
@media (max-width: 768px) {
  .contact-container {
    flex-direction: column;
  }
  .contact-info,
  .contact-form-section {
    flex: 1 1 100%;
  }
}
/* e-mail */

.contact-page-wrapper {
  padding: 1rem;
}

.contact-top-section {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2rem;
}

.contact-info {
  flex: 1 1 300px;
}

.contact-map {
  flex: 1 1 400px;
  min-height: 350px;
}

.contact-form-section {
  max-width: 700px;
  margin: 0 auto;
}

.contact-form label {
  display: block;
  margin-top: 1rem;
  font-weight: bold;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #aaa;
  border-radius: 4px;
  margin-top: 0.25rem;
}

.contact-form button {
  margin-top: 1.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  background-color: #3761a8;
  color: white;
  font-weight: bold;
  border-radius: 4px;
  cursor: pointer;
}

.contact-form button:hover {
  background-color: #2c4f87;
}

/*Profile */




.avatar-img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 1rem;
}

.profile-details {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.profile-details li {
  margin: 0.5rem 0;
}

.user-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.user-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.button-group {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

@media (max-width: 768px) {
  .form-group {
      flex-direction: column;
  }
}

/* для мобильных устройств  форма feedback*/
.form-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5em;
  margin-top: 2em;
}

.form-buttons button,
.form-buttons a {
  padding: 0.6em 1.5em;
  font-size: 1em;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
}

@media (max-width: 480px) {
  .form-buttons {
      flex-direction: column;
      align-items: center;
  }

  .form-buttons button,
  .form-buttons a {
      width: 100%;
      text-align: center;
  }
}

/* ==========================================
  Chat
========================================== */

.chat-container {
  display: flex;
  border: 1px solid #ccc;
  border-radius: 8px;
  overflow: hidden;
  height: 70vh;
}

.chat-sidebar {
  width: 200px;
  background: #f8f8f8;
  padding: 10px;
  border-right: 1px solid #ccc;
  overflow-y: auto;
}

.chat-main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.chat-messages {
  flex: 1;
  padding: 10px;
  overflow-y: auto;
  background: #fff;
}

.chat-input {
  display: flex;
  border-top: 1px solid #ccc;
  padding: 5px;
}

.chat-input input {
  flex: 1;
  padding: 5px;
  border: 1px solid #aaa;
  border-radius: 4px;
}

.chat-input button {
  margin-left: 5px;
  padding: 6px 12px;
}
/* ==========================================
  Video
========================================== */

.video-card {
  display: flex;
  flex-direction: column;
  height: 400px;  /* карточка растягивается по высоте колонки */
}

.video-card:hover {
  transform: scale(1.05); /* лёгкое увеличение при наведении */
}

.video-thumb-wrap {
  width: 100%;
  aspect-ratio: 3 / 4;   /* высота фото = 3/4 ширины */
  overflow: hidden;
  flex-shrink: 0;        /* фото не сжимается */
}

.video-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;     /* обрезает лишнее, пропорции сохраняются */
  object-position: center;
  display: block;
}

/* Футер фиксирован */
.video-footer {
  flex-shrink: 0;        /* текст не сжимается */
  padding: 0.75rem;
  text-align: center;
}
/******************
.photo-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 1opx; /* расстояние между карточками */
  justify-content: center;
}

.photo-card {
  width: 600px;      /* фиксированная ширина карточки */
  height: 800px;     /* фиксированная высота карточки */
  overflow: hidden;
  position: relative;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* фото заполняет контейнер, лишнее обрезается */
  transition: transform 0.3s;
}

.photo-card:hover img {
  transform: scale(1.05); /* лёгкое увеличение при наведении */
}

.photo-title {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0,0,0,0.5);
  color: #fff;
  text-align: center;
  font-size: 14px;
  padding: 4px 0;
}
