* {
  font-family: Montserrat !important;
}

:root {
  --gray: #11273c;
  --green: #47c185;
  --gray-active: #193754;
  --green-active: #40b078;
  --semi-grey: #a2aaad;
}

/* Отступ после навбара */
.navbar-offset {
  height: 80px;
}

/* Хлебные крошки */
.breadcrumb-nav {
  padding: 1rem 0;
  background-color: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
}

.breadcrumb {
  background: transparent;
  padding: 0;
  margin: 0;
}

.breadcrumb-item {
  font-size: 0.9rem;
  color: var(--semi-grey);
}

.breadcrumb-item.active {
  color: var(--gray);
  font-weight: 500;
}

.breadcrumb-link {
  color: var(--semi-grey);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb-link:hover {
  color: var(--green);
  text-decoration: none;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: ">";
  color: var(--semi-grey);
  margin: 0 0.5rem;
}

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}
body {
  line-height: 1;
}
blockquote,
q {
  quotes: none;
}
blockquote:before,
blockquote:after,
q:before,
q:after {
  content: "";
  content: none;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}

@font-face {
  font-family: Montserrat;
  src: url("../fonts/Montserrat-VariableFont_wght.b87689f37dfb.ttf");
}

header#mainHeader {
  border-radius: 0 0 16px 16px;
  background-color: var(--gray);
  filter: opacity(0.9);
  transition: top 0.3s;
  /* sticky/hidden logic — по желанию можно добавить через JS */
}

.navbar-nav .nav-link {
  font-family: Montserrat;
  font-weight: 500;
  line-height: 100%;
  letter-spacing: 0%;
  text-align: center;
  color: #f2f2f2 !important;
  font-size: 1.05rem;
  transition: color 0.2s;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: #c2cedd !important;
}

.phone-button {
  font-family: Montserrat !important;
  font-weight: 600 !important;
  font-style: SemiBold !important;
  font-size: 1.2rem !important;
  line-height: 121% !important;
  letter-spacing: 0% !important;
  text-align: center !important;
  vertical-align: middle !important;
}

@media (max-width: 767.98px) {
  header#mainHeader {
    border-radius: 0;
    margin: 0;
  }
  .navbar-brand img {
    height: 32px !important;
    min-width: 32px;
  }
  .btn-outline-light {
    font-size: 1rem;
    padding: 0.3rem 1.2rem;
  }
}

.hero-section,
.hero-section .carousel-item,
.hero-section .carousel-inner {
  min-height: 100vh;
  overflow: hidden;
}
.hero-bg {
  filter: brightness(0.7);
  transform-origin: center;
}
.carousel-indicators {
  bottom: 40px;
}

.carousel-custom-controls {
  background: rgba(20, 36, 52, 0.452);
  border: 1.5px solid #fff;
  border-radius: 8px;
  z-index: 5;
  /* Адаптив */
  transition: background 0.2s;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
}

/* Стили для кастомных кнопок в карточках проектов */
.project-card .carousel-custom-controls {
  opacity: 0;
  transition: opacity 0.2s;
}
.project-card:hover .carousel-custom-controls {
  opacity: 1;
}
.carousel-arrow-btn {
  background: transparent;
  border: none;
  outline: none;
  padding: 2px 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s;
}
.carousel-arrow-btn:hover,
.carousel-arrow-btn:focus {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 6px;
}
.carousel-arrow-btn svg {
  display: block;
  stroke: #fff;
}

.hero-spinner {
  position: absolute;
  top: 50%;
  right: -20vw;
  transform: translateY(-50%);
  z-index: 3;
  pointer-events: none;
}

.spinner-img {
  height: clamp(320px, 100vh, 1080px);
  height: clamp(320px, 100dvh, 1080px);
  width: auto;
  aspect-ratio: 1 / 1;
  animation: spin 25s linear infinite;
  opacity: 0.7;
  display: block;
  will-change: transform;
  user-select: none;
}

/* mobile overrides are consolidated below */

@media (min-width: 992px) {
  .hero-section .hero-bg {
    transform: scale(1.06);
    will-change: transform;
  }
}
@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}

@media (max-width: 991.98px) {
  .hero-content {
    justify-content: flex-end !important;
    padding-bottom: 6rem !important;
  }
  .hero-spinner {
    right: -35vw;
    top: 40%;
  }
  .spinner-img {
    height: clamp(260px, 80dvh, 720px);
    width: auto;
  }
}

@media (max-width: 575.98px) {
  .hero-spinner {
    right: -30vw;
    top: 20%;
  }
  .spinner-img {
    height: clamp(200px, 42dvh, 300px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .spinner-img {
    animation: none !important;
  }
}

.about-section .about-card {
  min-height: 130px;
  background: var(--gray);
  color: var(--semi-grey);
  border: none;
}
.about-section .about-icon {
  display: inline-flex;
  width: 32px;
  height: 32px;
  background: none;
  /* Здесь будет SVG — заменяй на свои или подключи Bootstrap Icons */
}
@media (max-width: 767.98px) {
  .about-section .about-card {
    min-height: unset;
    padding: 20px 16px;
  }
}
/* Mobile styles for collapsible behavior */
@media (max-width: 991.98px) {
  .purchase-possibility-card {
    cursor: pointer;
    transition: all 0.3s ease;
  }

  .purchase-possibility-card:hover {
    background-color: #f8f9fa;
  }

  /* Expanded state styles */
  .purchase-possibility-card[aria-expanded="true"] {
    background-color: #f8f9fa !important;
    border: 2px solid #000 !important;
  }

  .purchase-possibility-card[aria-expanded="true"] .purchase-header h4,
  .purchase-possibility-card[aria-expanded="true"] .purchase-header .small {
    color: #212529 !important;
  }

  /* Collapsed state - show only title, hide subtitle, keep original background */
  .purchase-possibility-card[aria-expanded="false"] {
    background-color: var(--gray) !important;
    border: none;
    min-height: 0 !important;
  }

  .purchase-possibility-card[aria-expanded="false"] .purchase-header .small {
    display: none !important;
  }
}

/* Desktop styles - no collapsible behavior */
@media (min-width: 992px) {
  .purchase-possibility-card {
    cursor: default;
  }

  .purchase-possibility-card[data-bs-toggle] {
    pointer-events: none;
  }

  .purchase-possibility-card .collapse {
    display: block !important;
  }
}

.btn {
  font-weight: 600 !important;
}
.fw-medium {
  font-weight: 600 !important;
}
.display-6 {
  font-size: calc(1rem + 1.5vw) !important;
}

.text-dark {
  color: var(--gray) !important;
}
.text-green {
  color: var(--green) !important;
}

.btn-dark {
  background-color: var(--gray) !important;
  border-color: var(--gray) !important;
}
.btn-success {
  background-color: var(--green) !important;
  border-color: var(--green) !important;
}
.btn-dark:hover {
  background-color: var(--gray-active) !important;
  border-color: var(--gray-active) !important;
}
.btn-success:hover {
  background-color: var(--green-active) !important;
  border-color: var(--green-active) !important;
}

.content-type-switcher {
  margin-bottom: 2rem;
}

.content-type-switcher .btn-group {
  display: flex;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e0e0e0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.content-type-switcher .btn {
  border: none;
  border-radius: 0;
  padding: 12px 24px;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.3s ease;
  background-color: #ffffff;
  color: #11273c;
  flex: 1;
  text-align: center;
  position: relative;
}

.content-type-switcher .btn:first-child {
  border-top-left-radius: 7px;
  border-bottom-left-radius: 7px;
}

.content-type-switcher .btn:last-child {
  border-top-right-radius: 7px;
  border-bottom-right-radius: 7px;
}

.content-type-switcher .btn.active {
  background-color: #11273c;
  color: #ffffff;
  border-color: #11273c;
}

.content-type-switcher .btn:hover:not(.active) {
  background-color: #f8f9fa;
  color: #11273c;
}

.content-type-switcher .btn:focus {
  box-shadow: none;
  outline: none;
}

/* Вертикальное расположение на маленьких экранах */
@media (max-width: 767.98px) {
  .content-type-switcher .btn-group {
    flex-direction: column;
    border-radius: 8px;
  }

  .content-type-switcher .btn {
    border-radius: 0;
    border-bottom: 1px solid #e0e0e0;
  }

  .content-type-switcher .btn:first-child {
    border-top-left-radius: 7px;
    border-top-right-radius: 7px;
    border-bottom-left-radius: 0;
  }

  .content-type-switcher .btn:last-child {
    border-bottom-left-radius: 7px;
    border-bottom-right-radius: 7px;
    border-top-right-radius: 0;
    border-bottom: none;
  }

  .content-type-switcher .btn:nth-child(2) {
    border-top-right-radius: 0;
    border-bottom-left-radius: 0;
  }
}

#load-more-btn {
  padding: 0.75rem 2rem;
  font-weight: 500;
  border-radius: 0.375rem;
  transition: all 0.3s ease;
}

#load-more-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

#load-more-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Кнопка переключения вида */
.view-toggle-container {
  display: flex;
  justify-content: center;
}

.view-toggle-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #e0e0e0;
  background: white;
  color: #666;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 400;
  font-size: 14px;
  transition: all 0.2s ease;
  min-width: 140px;
  justify-content: center;
  box-shadow: none;
}

.view-toggle-btn:hover {
  background: white;
  color: #333;
  border-color: #ccc;
  transform: none;
  box-shadow: none;
}

.view-toggle-btn:active {
  transform: none;
}

.view-toggle-btn:focus {
  box-shadow: none;
  outline: none;
}

.view-toggle-icon {
  transition: transform 0.3s ease;
}

.view-toggle-btn:hover .view-toggle-icon {
  transform: scale(1.1);
}

@media (max-width: 767.98px) {
  .view-toggle-btn {
    padding: 8px 16px;
    font-size: 13px;
    min-width: 120px;
  }

  .view-toggle-btn svg {
    width: 16px;
    height: 16px;
  }
}

/* Стили для кнопки фильтров */
.filter-container {
  display: flex;
  justify-content: center;
}

.filter-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #e0e0e0;
  background: white;
  color: #666;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 400;
  font-size: 14px;
  transition: all 0.2s ease;
  min-width: 140px;
  justify-content: center;
  box-shadow: none;
}

.filter-btn:hover {
  background: white;
  color: #333;
  border-color: #ccc;
  transform: none;
  box-shadow: none;
}

.filter-btn:active {
  transform: none;
}

.filter-btn:focus {
  box-shadow: none;
  outline: none;
}

@media (max-width: 767.98px) {
  .filter-btn {
    padding: 8px 16px;
    font-size: 13px;
    min-width: 120px;
  }
}

.custom-gray {
  color: var(--semi-grey);
}
.custom-blue {
  color: var(--gray);
} /* Твой фирменный серо-синий */
.custom-green {
  color: var(--green);
}
.footer-link {
  transition: color 0.18s;
  text-decoration: none;
}
.footer-link:hover {
  color: var(--green-active);
}
.footer-social-link {
  font-size: 1.2rem;
}
.footer-social-link:hover {
  opacity: 1;
  color: var(--green-active);
}

.footer-social-icon {
  width: 32px;
  height: 32px;
  transition: color 0.18s;
  transition: filter 0.2s, opacity 0.2s;
  opacity: 1;
}
.footer-social-link:hover .footer-social-icon {
  filter: brightness(0.9) saturate(2) hue-rotate(40deg);
  opacity: 0.8;
}

.additional-service-card {
  min-height: 404px;
}

@media (max-width: 768px) {
  .additional-service-card {
    min-height: 250px;
  }
}

.project-card {
  transition: all 0.5s ease;
  border-radius: 16px !important;
  overflow: hidden;
}
.project-card:hover {
  box-shadow: 0 0 24px 0 rgba(24, 34, 44, 0.18),
    0 6px 40px 0 rgba(24, 34, 44, 0.16);
  transform: translateY(-4px);
}

/* Эффект выплывания фото при наведении */
.project-card .carousel-inner,
.project-card > div[style*="background"] {
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.project-card:hover .carousel-inner,
.project-card:hover > .project-image {
  transform: scale(1.05);
}

/* Градиент при наведении на карточку */
.project-card .project-image {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}
.project-card:hover .project-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle,
    rgba(0, 0, 0, 0.4) 0%,
    rgba(0, 0, 0, 0) 50%
  );
  z-index: 1;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 1;
}
.project-card .project-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle,
    rgba(0, 0, 0, 0.4) 0%,
    rgba(0, 0, 0, 0) 50%
  );
  z-index: 1;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
}
.project-overlay {
  opacity: 1;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  background: linear-gradient(
    to top,
    rgba(24, 34, 44, 0.9) 0%,
    rgba(24, 34, 44, 0.7) 50%,
    transparent 100%
  );
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem;
  backdrop-filter: none;
}

/* При наведении: плавное исчезновение фона и перемещение в центр */
.project-card:hover .project-overlay {
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  bottom: 0;
  top: 0;
  left: 0;
  right: 0;
  padding: 2rem;
}

/* Контейнер с информацией о проекте */
.project-overlay .d-flex {
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
  opacity: 1;
  transform: translateY(0);
}

/* При наведении: плавное перемещение текста в центр */
.project-card:hover .project-overlay .d-flex {
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  gap: 0.75rem;
  margin-top: 10%;
  transform: translateY(-10px);
}

.project-card:hover .project-overlay .text-end {
  text-align: center !important;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Плавные переходы для всех элементов карточки */
.project-card * {
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Адаптивный макет для оверлея проектов (только для мобильных) */
@media (max-width: 767.98px) {
  .project-overlay .d-flex {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.5rem;
  }

  .project-overlay .text-end {
    text-align: left !important;
    margin-top: 0.5rem;
  }

  /* На мобильных при наведении тоже центрируем */
  .project-card:hover .project-overlay .d-flex {
    align-items: center !important;
    text-align: center !important;
  }

  .project-card:hover .project-overlay .text-end {
    text-align: center !important;
  }
}
.project-card:hover .project-carousel-btn {
  opacity: 1;
  transition: opacity 0.5s;
}

/* Стили для тегов проектов */
.project-tag {
  font-size: 0.85rem;
  font-weight: 500;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  transition: all 0.3s ease;
  z-index: 3;
}

/* Зеленый тег */
.project-tag--green {
  background-color: var(--green) !important;
  color: white !important;
}

/* Темный тег */
.project-tag--dark {
  background-color: var(--gray) !important;
  color: white !important;
}

/* Светлый тег */
.project-tag--light {
  background-color: rgba(255, 255, 255, 0.9) !important;
  color: var(--gray) !important;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Стили для кнопки "Забронировать место" */
/* Кнопка "Забронировать место" должна быть поверх ссылки */
.project-reserve-btn {
  font-size: 0.9rem;
  font-weight: 600;
  background-color: var(--green) !important;
  color: white !important;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  transition: all 0.3s ease;
  opacity: 0;
  z-index: 4;
}

.project-reserve-btn:hover {
  background-color: var(--green-active) !important;
  box-shadow: 0 4px 12px rgba(71, 193, 133, 0.3);
}

/* Показываем кнопку при наведении на карточку */
.project-card:hover .project-reserve-btn {
  opacity: 1;
}

/* Контейнер кнопки бронирования - позиционирует кнопку в центре карточки */
.project-reserve-btn-container {
  position: absolute;
  bottom: 4rem;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 4;
  pointer-events: auto;
}
.project-reserve-btn-container-featured {
  left: 3rem;
  transform: translateX(0) translateY(-4rem);
}
/* Ссылка на проект */
.project-link {
  pointer-events: none;
  z-index: 2;
}
/* При наведении включаем pointer-events для ссылки */
.project-card:hover .project-link {
  pointer-events: auto;
}

.news-card {
  background: #fff;
  border-radius: 16px;
  border: 1.2px solid #eee;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.18s, transform 0.18s;
  box-shadow: none;
}

.news-card:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.09);
  transform: translateY(-2px) scale(1.01);
}

.news-card-img-wrapper {
  width: 100%;
  aspect-ratio: 1.8 / 1;
  background: #f7f7f7;
  overflow: hidden;
}

.news-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-card-body {
  padding: 20px 18px 22px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1 1 auto;
}

.news-card-date {
  font-size: 0.99rem;
  color: #6c757d;
  margin-bottom: 8px;
  text-align: left;
}

.news-card-title {
  font-size: 1.16rem;
  font-weight: 700;
  color: #232323;
  margin-bottom: 10px;
  text-align: left;
  line-height: 1.25;
}

.news-card-btn {
  width: 100%;
  font-size: 1.07rem;
  border-radius: 12px;
  padding: 8px 0;
  border-width: 2px;
  font-weight: 500;
  text-align: left;
}

.news-card-btn:hover {
  background: #ececec;
}

/* Адаптивность */
@media (max-width: 767.98px) {
  .news-card {
    border-radius: 13px;
  }
  .news-card-body {
    padding: 12px 8px 15px 8px;
  }
  .news-card-title {
    font-size: 1rem;
  }
  .news-card-date {
    font-size: 0.93rem;
  }
  .news-card-btn {
    font-size: 0.97rem;
    border-radius: 9px;
    padding: 7px 0;
  }
  .news-card-img-wrapper {
    aspect-ratio: 1.35 / 1; /* фото становится ниже! */
  }
}

/* Стили для выделенной карточки проекта */
.featured-project-card .project-card {
  height: 600px !important;
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.featured-project-card .project-card:hover .project-overlay {
  padding: 0;
  justify-content: flex-start;
}

.featured-project-card .project-card:hover {
  transform: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
}

/* Стили для overlay в выделенной карточке (как в hero) */
.featured-project-card .project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.6) 0%,
    rgba(0, 0, 0, 0.3) 50%,
    rgba(0, 0, 0, 0) 100%
  );
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0;
  transition: none;
}

.featured-project-card .project-overlay:hover {
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.6) 0%,
    rgba(0, 0, 0, 0.3) 50%,
    rgba(0, 0, 0, 0) 100%
  );
}

.featured-project-card .project-overlay .d-flex {
  width: 100%;
  max-width: 600px;
  margin-left: 3rem;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 1rem;
}

/* Убираем эффекты наведения для выделенной карточки */
.featured-project-card .project-card:hover .project-overlay {
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.6) 0%,
    rgba(0, 0, 0, 0.3) 50%,
    rgba(0, 0, 0, 0) 100%
  );
}

.featured-project-card .project-card:hover .project-overlay .d-flex {
  transform: none;
  margin-top: 0;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  text-align: left !important;
}

.featured-project-card .project-card:hover .project-overlay .text-end {
  transform: none;
}

/* Показываем карусельные контролы для выделенной карточки */
.featured-project-card .carousel-custom-controls {
  opacity: 1 !important;
}

@media (max-width: 768px) {
  .featured-project-card .project-card {
    height: 400px !important;
  }

  .featured-project-card .project-overlay .d-flex {
    margin-left: 1.5rem;
    max-width: 100%;
  }
  .project-reserve-btn-container-featured {
    left: 1.5rem;
    transform: translateX(0) translateY(0.5rem);
  }

  .featured-project-card .project-overlay h3 {
    font-size: 2rem;
  }

  .featured-project-card .project-overlay .h4 {
    font-size: 1.25rem;
  }

  .featured-project-card .project-overlay .fs-4 {
    font-size: 1.25rem !important;
  }
}

/* Убираем отступы у первого прямого дочернего параграфа в блоках rich-текста */
.rich-text > p:first-of-type {
  margin-bottom: 0;
  margin-top: 0;
}

.rich-text {
  margin-bottom: 0;
  margin-top: 0;
}
.rich-text + p,
.rich-text ~ p:last-of-type {
  margin-bottom: 0;
  margin-top: 0;
}
.award-card {
  background: #1b2533;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.16);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
}

.award-card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4; /* Всегда вертикальное соотношение */
  background: #232c3e;
  display: flex;
  align-items: stretch;
  justify-content: center;
  min-height: 320px; /* Защита от слишком маленьких картинок */
  max-height: 480px;
  height: 100%;
  overflow: hidden;
}

.award-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* <-- показываем всю картинку, не обрезаем */
  object-position: center;
  display: block;
  transition: filter 0.3s;
  filter: brightness(0.65);
  background: #232c3e;
}

.award-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(27, 37, 51, 0.86);
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  transition: opacity 0.3s;
  opacity: 1;
  pointer-events: auto;
}

.award-card:hover .award-card-overlay,
.award-card:focus-within .award-card-overlay {
  opacity: 0;
  pointer-events: none;
}

.award-card-text {
  padding: 24px 20px 20px 20px;
  color: #fff;
  width: 100%;
}

.award-card-title {
  font-size: 1.15rem;
  font-weight: 500;
  margin: 0;
  color: #fff;
}

#jobApplicationForm label {
  font-weight: 500;
  color: #2d2d2d;
}

@media (max-width: 767.98px) {
  .rounded-4 {
    border-radius: 18px !important;
  }
  #jobApplicationForm .row > div {
    margin-bottom: 12px;
  }
}

/* Стили для детальной страницы новости */
.news-detail {
  padding: 3rem 0;
}

.news-date {
  font-size: 1.1rem;
  color: var(--semi-grey);
  margin-bottom: 1rem;
}

.news-content {
  position: relative;
}

.news-image-container {
  margin-bottom: 2rem;
}

.news-image-container img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.news-text {
  line-height: 1.8;
  font-size: 1.1rem;
  color: var(--gray);
}

.news-text p {
  margin-bottom: 1.5rem;
}

.news-text h2,
.news-text h3,
.news-text h4 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--gray);
  font-weight: 600;
}

.news-text h2 {
  font-size: 1.8rem;
}

.news-text h3 {
  font-size: 1.5rem;
}

.news-text h4 {
  font-size: 1.3rem;
}

.news-text ul,
.news-text ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.news-text li {
  margin-bottom: 0.5rem;
}

.news-text blockquote {
  border-left: 4px solid var(--green);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--semi-grey);
}

.news-text a {
  color: var(--green);
  text-decoration: none;
}

.news-text a:hover {
  color: var(--green-active);
  text-decoration: underline;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 991.98px) {
  .news-detail {
    padding: 2rem 0;
  }

  .news-image-container {
    float: none !important;
    margin-left: 0 !important;
    margin-bottom: 2rem;
    max-width: 100% !important;
  }

  .news-text {
    font-size: 1rem;
  }

  .news-text h2 {
    font-size: 1.5rem;
  }

  .news-text h3 {
    font-size: 1.3rem;
  }

  .news-text h4 {
    font-size: 1.1rem;
  }
}

@media (max-width: 767.98px) {
  .news-detail {
    padding: 1.5rem 0;
  }

  .news-date {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .news-text {
    font-size: 0.95rem;
  }

  .news-text h2 {
    font-size: 1.3rem;
  }

  .news-text h3 {
    font-size: 1.1rem;
  }

  .news-text h4 {
    font-size: 1rem;
  }
}

.news-detail-source {
  text-decoration: underline;
  color: var(--semi-grey);
  font-size: 1.1rem;
  font-weight: 500;
}

.news-detail-source:hover {
  color: var(--green-active);
}

/* Spinner for callback section */
.callback-section {
  position: relative;
  overflow: hidden;
}
.callback-section > .container {
  position: relative;
  z-index: 1;
}
.callback-spinner {
  position: absolute;
  top: -200px; /* place in the top-left corner slightly outside */
  left: -200px;
  z-index: 0;
  pointer-events: none;
}
.callback-section .spinner-img {
  height: 320px;
  width: auto;
  opacity: 0.7;
}

@media (max-width: 991.98px) {
  .callback-spinner {
    top: -130px;
    right: -130px;
    left: auto;
  }
  .callback-section .spinner-img {
    height: 260px;
  }
}
@media (max-width: 575.98px) {
  .callback-spinner {
    top: -100px;
    right: -100px;
    left: auto;
  }
  .callback-section .spinner-img {
    height: 200px;
  }
}

/* Контейнер аккордеона */
.faq-accordion .faq-item {
  border: 1px solid #e5e7eb; /* светло-серая обводка */
  border-radius: 12px;
  margin-bottom: 10px;
  transition: border-color 0.2s ease;
}
.faq-accordion .faq-item.expanded {
  border-color: #000000; /* заметная чёрная обводка при открытии */
}

/* Кнопка вопроса */
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: transparent;
  border: none;
  padding: 16px 18px;
  text-align: left;
}
.faq-question-text {
  font-weight: 400;
}
.faq-item.expanded .faq-question-text {
  font-weight: 700;
}

/* Ответ */
.faq-answer {
  padding: 0 18px 16px 18px;
}

/* Шеврон */
.faq-question .chevron::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  border-bottom: 2px solid #1a2530;
  border-right: 2px solid #1a2530;
  transform: rotate(45deg);
  vertical-align: middle;
  margin-top: 2px;
  margin-left: 2px;
  /* background: none; */
  display: inline-block;
  transition: transform 0.4s ease;
  font-size: 18px;
}
.faq-item.expanded .chevron::before {
  transform: rotate(225deg);
}

/* ==========================
   Scroll Reveal (fade-up)
   ========================== */
:root {
  --reveal-distance: 24px;
  --reveal-duration: 500ms;
  --reveal-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (max-width: 767.98px) {
  :root {
    --reveal-distance: 14px;
    --reveal-duration: 400ms;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(var(--reveal-distance));
  transition: transform var(--reveal-duration) var(--reveal-ease),
    opacity var(--reveal-duration) var(--reveal-ease);
  will-change: transform, opacity;
}

.reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

.card-img-top {
  height: 400px;
  object-fit: cover;
}

@media (max-width: 960px) {
  .card-img-top {
    height: 250px;
  }
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: drop-shadow(0 0 2px black);
}
