/* Шрифты */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/Inter-Regular.ttf') format('truetype');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/Inter-SemiBold.ttf') format('truetype');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/Inter-Light.ttf') format('truetype');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/Inter-Medium.ttf') format('truetype');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/Inter-Bold.ttf') format('truetype');
}

/* Базовые стили */
body {
  font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--bs-gray-950);
  background-color: #ffffff;
}

/* Типографика */
.title-60 { font-size: 60px; font-weight: 600; line-height: 68px; letter-spacing: 0; }
.title-40 { font-size: 40px; font-weight: 600; line-height: 48px; letter-spacing: 0; }
.title-32 { font-size: 32px; font-weight: 600; line-height: 40px; letter-spacing: 0; }
.title-32-regular { font-size: 32px; font-weight: 400; line-height: 40px; letter-spacing: 0; }
.title-24 { font-size: 24px; font-weight: 600; line-height: 32px; letter-spacing: 0; }
.title-20 { font-size: 20px; font-weight: 600; line-height: 26px; letter-spacing: 0; }
.title-24-regular { font-size: 24px; font-weight: 400; line-height: 32px; letter-spacing: 0; }
.title-22-regular { font-size: 22px; font-weight: 400; line-height: 30px; letter-spacing: 0; }
.body-l-24 { font-size: 24px; font-weight: 300; line-height: 32px; letter-spacing: 0; }
.body-m-16 { font-size: 16px; font-weight: 400; line-height: 22px; letter-spacing: 0; }
.body-s-14 { font-size: 14px; font-weight: 400; line-height: 20px; letter-spacing: 0; }
.body-s-14-semibold { font-size: 14px; font-weight: 600; line-height: 20px; letter-spacing: 0; }
.headline-18 { font-size: 18px; font-weight: 300; line-height: 24px; letter-spacing: 0; }

/* Кнопки и утилиты */
.btn-rounded {
  border-radius: 56px;
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.btn-primary-custom {
  background-color: var(--bs-primary);
  color: #ffffff;
  border: none;
}

.btn-primary-custom:hover {
  background-color: var(--bs-gray-800);
  color: #ffffff;
}

.btn-light-custom {
  background-color: var(--bs-light);
  color: var(--bs-primary);
  border: none;
}

.btn-light-custom:hover {
  background-color: #e8e8e6;
  color: var(--bs-primary);
}

.backdrop-blur {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.divider {
  height: 1px;
  background-color: var(--bs-gray-100);
  border: none;
  margin: 0;
}


/* Цветовые утилиты */
.text-gray-500 { color: var(--bs-gray-500); }
.text-gray-600 { color: var(--bs-gray-600); }
.text-gray-700 { color: #434956; }
.text-gray-800 { color: var(--bs-gray-800); }
.text-gray-950 { color: var(--bs-gray-950); }

.bg-light-custom { background-color: var(--bs-light); }
.bg-gray-100 { background-color: var(--bs-gray-100); }
.invis { display: none; }

/* Ссылки: убираем подчеркивание, ставим тонкий бордер */
a {
  color: var(--bs-link-color);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  transition: color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

a:hover {
  color: var(--bs-link-hover-color);
  border-bottom-color: currentColor;
}

a:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(11, 12, 14, 0.12);
  border-radius: 4px;
}

/* Ссылки без нижнего бордера (кнопки/навигация) */
a.btn,
.btn,
.nav-link,
.dropdown-item,
.top-menu-item,
.footer-section-link,
.footer-phone-link,
.logo,
.nav-top__logo,
.nav-top__phone,
.project-card__title {
  border-bottom: none;
  text-decoration: none;
}

/* Инпуты: размеры и радиус в духе кнопок */
.form-control,
.form-select {
  padding: 14px 20px;
  border-radius: 56px;
  font-size: 14px;
  line-height: 20px;
  min-height: 48px;
}

.border_red {
  border-color: red;
}

/* Состояния фокуса под тему */
.form-control:focus,
.form-select:focus {
  border-color: var(--bs-gray-950);
  box-shadow: 0 0 0 3px rgba(11, 12, 14, 0.12);
  outline: none;
}

.form-check-input:focus {
  border-color: var(--bs-gray-950);
  box-shadow: 0 0 0 3px rgba(11, 12, 14, 0.12);
  outline: none;
}

.form-check-input:checked {
  background-color: var(--bs-gray-950);
  border-color: var(--bs-gray-950);
}

.btn:focus,
.btn:focus-visible,
.btn-check:focus + .btn,
.btn-check:focus-visible + .btn {
  box-shadow: 0 0 0 3px rgba(11, 12, 14, 0.12);
  outline: none;
}

/* Шапка */
.header {
  height: 56px;
  border-radius: 8px;
  background: rgba(232, 232, 232, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0 16px;
}

.header-fixed {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 1320px;
  width: calc(100% - 32px);
  z-index: 1050;
}

.header .logo {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.header .top-menu-item {
  padding: 8px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--bs-gray-950);
  font-size: 16px;
  font-weight: 400;
  line-height: 22px;
  text-decoration: none;
  transition: background-color 0.2s;
}

.header .top-menu-item:hover {
  background-color: rgba(255, 255, 255, 0.5);
  color: var(--bs-gray-950);
  text-decoration: none;
}

/* Мобильное меню */
/* Подвал */
.footer { padding-top: 40px; }
.footer .footer-section { display: flex; flex-direction: column; gap: 8px; }
.footer .footer-legal { display: flex; flex-direction: column; gap: 8px; }
.footer .footer-section-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  color: var(--bs-gray-950);
  margin-bottom: 0;
}
.footer .footer-section-link {
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: var(--bs-gray-800);
  text-decoration: none;
  transition: color 0.2s;
}
.footer .footer-section-link:hover {
  color: var(--bs-gray-950);
  text-decoration: none;
}
.footer .footer-phone-link { color: var(--bs-gray-950); }
.footer .footer-phone-link:hover { color: var(--bs-gray-950); }
.footer-divider { height: 1px; background: var(--bs-gray-100); }
.footer-inner { max-width: 1320px; margin: 0 auto; }

/* Футер: поведение ссылок/CTA внутри футера */
.footer .footer-phone-link {
  padding: 0;
  border-radius: 0;
  background: transparent;
}
.footer .footer-phone-link:hover {
  background: transparent;
}

/* Соцсети в футере: по умолчанию (desktop) — столбиком */
.footer .footer-social-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer .footer-social-links .footer-section-link {
  display: block;
}

/* Хиро-блок */
.hero-section {
  position: relative;
  height: 590px; /*750px;*/
  overflow: hidden;
}

@media (min-width: 1441px) {
  .hero-section {
    height: 750px;
  }
}

/* ZHK — используем общий стандарт hero-section (как на остальных страницах) */

.hero-section .hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-section .hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.hero-section .hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(0, 0, 0, 0.32) 0%,
    rgba(0, 0, 0, 0.20) 35%,
    rgba(0, 0, 0, 0.40) 100%);
}

.hero-section .hero-content {
  position: relative;
  z-index: 1;
  /* Единый стандарт: контент (текст + кнопки) внизу, с отступом снизу */
  justify-content: flex-end !important;
  padding-bottom: 64px;
}

.hero-section .hero-actions {
  /* Bootstrap `gap-*` использует `!important`, поэтому здесь тоже */
  gap: 12px !important;
}

.hero-section .hero-actions > a.btn:not(.rounded-circle) {
  white-space: nowrap;
}

/* Единый размер primary CTA в hero (как на главной) */
.hero-section .hero-actions .hero-primary-btn {
  padding: 16px 24px;
}

.hero-section .hero-title,
.hero-section .hero-text {
  color: #ffffff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.20);
}

/* Карточки ЖК */
.zhk-card__image {
  height: 245px;
  border-radius: 8px;
  overflow: hidden;
  background: #f7f7f5;
}

.zhk-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.zhk-card__title {
  margin-top: 8px;
}

.zhk-card:hover .zhk-card__image img {
  transform: scale(1.02);
  transition: transform 180ms ease;
}

/* SEO блок на ZHK: без сворачивания по решению */

/* ZHK — "Еще" на мобиле во всю ширину */
@media (max-width: 576px) {
  .zhk-show-more-btn {
    width: 100%;
  }
}

@media (min-width: 1200px) {
  .hero-section .hero-content {
    max-width: 70%;
  }
}

/* =======================================================================
   Portfolio / Project cards (для страниц, где используются .images + HvrSlider)
   ======================================================================= */

.project-card .images {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bs-light);
}

.project-card__title,
.project-card__title:hover,
.project-card__title:focus-visible {
  border-bottom: none;
  text-decoration: none;
}

.project-card .portfolio_work {
  display: block;
  width: 100%;
  height: 245px;
  object-fit: cover;
}

@media (max-width: 576px) {
  .project-card .portfolio_work {
    height: 245px;
  }
}

/* Overlay tags (price / video) */
.price_feature,
.video_feature {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 1000px;
  color: #ffffff;
  font-size: 13px;
  line-height: 18px;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.video_feature {
  left: auto;
  right: 12px;
}

.video_feature_icon {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  flex: 0 0 auto;
}

/* =======================================================================
   Portfolio case (single project) — new design
   ======================================================================= */

.portfolio-case-content {
  padding-top: 64px;
  padding-bottom: 64px;
}

.portfolio-case-section {
  margin-top: 120px;
}

.portfolio-case-room {
  margin-top: 64px;
}

@media (max-width: 768px) {
  .portfolio-case-content {
    padding-top: 48px;
    padding-bottom: 48px;
  }
  .portfolio-case-section {
    margin-top: 48px;
  }
  .portfolio-case-room {
    margin-top: 48px;
  }
}

/* Hero overlay tags */
.overlay-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 9px 16px;
  border-radius: 1000px;
  color: #fff;
  font-size: 16px;
  line-height: 18px;
  background: rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  width: fit-content;
}

.overlay-tag__label {
  font-weight: 400;
}

.overlay-tag__value {
  font-weight: 400;
}


/* Mobile room tabs */
.portfolio-room-tabs {
  margin-top: 24px;
}

.portfolio-room-tabs__track {
  display: flex;
  gap: 6px;
  padding: 4px;
  background: var(--bs-light);
  border-radius: 35px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
}
.portfolio-room-tabs__track::-webkit-scrollbar { display: none; }

.portfolio-room-tabs__tab {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 80px;
  color: var(--bs-gray-950);
  font-size: 14px;
  line-height: 20px;
  border-bottom: none;
  text-decoration: none;
  background: transparent;
  white-space: nowrap;
  transition: background-color 420ms ease, color 420ms ease, box-shadow 420ms ease;
}

.portfolio-room-tabs__tab.is-active {
  background: #fff;
  font-weight: 500;
}

.portfolio-room-tabs__tab:focus-visible {
  background: #fff;
}

/* Sticky / floating behavior (Portfolio case tabs) */
.portfolio-room-tabs--mobile {
  position: sticky;
  top: var(--portfolio-tabs-top, 88px);
  z-index: 1020;
}

/* Desktop: floating bottom tabs like in Figma */
.portfolio-room-tabs--desktop {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 16px;
  z-index: 1040;
  margin-top: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.portfolio-room-tabs--desktop.is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* Hide tabs when leaving the rooms/drawings/materials zone */
.portfolio-room-tabs--mobile.is-hidden { display: none; }
.portfolio-room-tabs--desktop.is-hidden {
  opacity: 0;
  pointer-events: none;
}

@media (min-width: 768px) {
  .portfolio-room-tabs--desktop .portfolio-room-tabs__tab {
    font-size: 16px;
    line-height: 22px;
    padding: 12px 20px;
  }
}

/* Anchor offset so headings are not hidden under the fixed header / sticky tabs */
.portfolio-case-room,
#drawings_block,
#materials_block {
  scroll-margin-top: calc(var(--portfolio-tabs-top, 88px) + 12px);
}

/* Variant pills */
.portfolio-variants {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 16px;
  margin-bottom: 16px;
}

/* Spacing between variant pills and the Gridzy gallery on case page */
.portfolio-case-room .portfolio-variants {
  margin-bottom: 16px;
}
.portfolio-case-room .gridzy {
  margin-top: 16px;
}

.portfolio-variant-pill {
  border: 1px solid var(--bs-gray-100);
  background: transparent;
  padding: 12px 20px;
  border-radius: 80px;
  font-size: 16px;
  line-height: 22px;
  color: var(--bs-gray-950);
}

.portfolio-variant-pill.is-active {
  background: var(--bs-light);
  border-color: var(--bs-light);
  font-weight: 500;
}

@media (max-width: 576px) {
  .portfolio-variant-pill {
    font-size: 14px;
    line-height: 20px;
    padding: 10px 20px;
  }
}

/* Variant visibility */
.portfolio-room-variant {
  display: none;
  margin-top: 16px;
}
.portfolio-room-variant.is-active {
  display: block;
}

/* Mosaic images */
.portfolio-mosaic__img {
  display: block;
  width: 100%;
  height: 221px;
  object-fit: cover;
  border-radius: 8px;
}

/* Room galleries (Gridzy) — keep standard rounded corners, avoid link underline/border */
.portfolio-case-room .gridzy a {
  border-bottom: 0 !important;
  text-decoration: none !important;
}
.portfolio-case-room .gridzy .gridzyImage {
  display: block;
  border-radius: 8px;
}

.portfolio-mosaic__img--tall {
  height: 458px;
}

@media (max-width: 576px) {
  .portfolio-mosaic__img {
    height: 216px;
  }
  .portfolio-mosaic__img--tall {
    height: 458px;
  }
}

/* Docs strip (drawings/materials) */
.portfolio-docs-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 54px;
  flex-wrap: nowrap;
  overflow: hidden;
}

.portfolio-docs-strip__item {
  border-bottom: none;
  text-decoration: none;
}

.portfolio-docs-strip__img {
  display: block;
  border-radius: 8px;
  background: #ffffff;
  object-fit: contain;
}

/* Desktop (5 items like in Figma) */
.portfolio-docs-strip__item:nth-child(1) .portfolio-docs-strip__img,
.portfolio-docs-strip__item:nth-child(5) .portfolio-docs-strip__img {
  width: 166px;
  height: 120px;
  opacity: 0.5;
}

.portfolio-docs-strip__item:nth-child(2) .portfolio-docs-strip__img,
.portfolio-docs-strip__item:nth-child(4) .portfolio-docs-strip__img {
  width: 277px;
  height: 200px;
  opacity: 0.7;
}

.portfolio-docs-strip__item:nth-child(3) .portfolio-docs-strip__img {
  width: 554px;
  height: 400px;
  opacity: 1;
}

@media (max-width: 576px) {
  .portfolio-docs-strip {
    gap: 24px;
  }
  .portfolio-docs-strip__item:nth-child(n+4) {
    display: none;
  }
  .portfolio-docs-strip__item:nth-child(1) .portfolio-docs-strip__img,
  .portfolio-docs-strip__item:nth-child(3) .portfolio-docs-strip__img {
    width: 166px;
    height: 120px;
    opacity: 1;
  }
  .portfolio-docs-strip__item:nth-child(2) .portfolio-docs-strip__img {
    width: 277px;
    height: 200px;
    opacity: 1;
  }
}

/* Need project block */
.portfolio-need-project {
  margin-top: 120px;
  text-align: center;
}

.portfolio-need-project__form {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.portfolio-need-project__form .form-control {
  width: 343px;
  max-width: 100%;
}

.portfolio-need-project__policy {
  margin-top: 16px;
  font-size: 12px;
  line-height: 16px;
  color: #8c94a6;
}

.portfolio-need-project__policy a {
  color: var(--bs-gray-950);
  text-decoration: underline;
  border-bottom: none;
}

@media (max-width: 576px) {
  .portfolio-need-project {
    margin-top: 48px;
  }
  .portfolio-need-project__form {
    gap: 12px;
  }
  .portfolio-need-project__form .btn {
    width: 343px;
    max-width: 100%;
  }
}

/* Other projects: tags + "more" card */
.project-card__tags {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.project-card__tags .price_feature,
.project-card__tags .project-tag {
  position: static;
}

.project-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 1000px;
  color: #ffffff;
  font-size: 13px;
  line-height: 18px;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.project-card--more {
  display: block;
  border-bottom: none;
  text-decoration: none;
}

.project-card--more__inner {
  height: 245px;
  border-radius: 8px;
  background: var(--bs-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}

.project-card--more__title {
  font-size: 18px;
  line-height: 24px;
  font-weight: 600;
  color: var(--bs-gray-950);
}

.project-card--more__subtitle {
  margin-top: 4px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  color: #434956;
}

/* HvrSlider (листалка превьюшек на карточках) */
.hvr {
  margin-bottom: 8px;
}

.hvr__images {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}

.hvr__sectors {
  position: absolute;
  inset: 0;
  display: flex;
  z-index: 2;
}

.hvr__sector {
  flex: 1 1 auto;
}

.hvr__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 8px;
}

.hvr__dot {
  flex: 1 1 0;
  height: 3px;
  background: var(--bs-gray-100);
  transition: background-color 180ms ease;
}

.hvr__dot--active {
  background: var(--bs-gray-950);
}

/* Фикс для карточек, которые подгружаются showmore (может прилетать старая разметка без .project-card) */
.zhk-page .images {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bs-light);
}

.zhk-page .portfolio_work {
  display: block;
  width: 100%;
  height: 245px;
  object-fit: cover;
}

/* Универсальный сворачиваемый текст (использовать в любых местах) */
.collapse-text {
  position: relative;
}

.collapse-text__content {
  overflow: hidden;
}

.collapse-text__toggle {
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.collapse-text__overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 140px; /* как в фигме */
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 5px;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, #ffffff 92%);
}

.collapse-text__overlay .collapse-text__toggle {
  pointer-events: auto;
}

.collapse-text.is-expanded .collapse-text__overlay {
  position: static;
  height: auto;
  padding: 12px 0 0;
  background: transparent;
  pointer-events: auto;
  justify-content: center; /* важно: кнопка всегда по центру */
}


/* О компании (company) */

.company-section-title { margin-bottom: 0; }

.company-service-card {
  background-color: var(--bs-light);
  border-radius: 8px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  min-height: 100px;
}

.company-service-number {
  position: absolute;
  right: 3px;
  bottom: -32px;
  transform: rotate(4deg);
  font-size: 99px;
  line-height: 132px;
  font-weight: 500;
  color: #ffffff;
  pointer-events: none;
  user-select: none;
}

.company-services-callout {
  background-color: var(--bs-gray-950);
  border-radius: 8px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  /* min-height: 120px; */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.company-services-callout-text {
  font-size: 18px;
  line-height: 24px;
  font-weight: 400;
  color: #c6cad2;
}

.company-services-underline {
  position: relative;
  display: inline-block;
  /* padding-bottom: 12px; */
}

.company-services-underline::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 8px;
  background: url('../images/pages/company/underline.svg') no-repeat center / 100% 100%;
  pointer-events: none;
}

.company-lead {
  font-size: 24px;
  font-weight: 300;
  line-height: 32px;
}

.company-team-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.company-team-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  height: 354px;
}

.company-team-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.company-team-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 43.367%, #000000 124.91%);
  pointer-events: none;
}

.company-team-overlay {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 1;
  display: flex;
  flex-direction: column;
}

.company-team-name {
  color: var(--bs-gray-100);
  line-height: 20px;
  font-weight: 300;
}

.company-team-role {
  color: #ffffff;
  line-height: 22px;
  font-weight: 400;
}

/* .company-worker { max-width: 551px; } */

.company-app-phone {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.company-app-divider {
  height: 1px;
  width: 100%;
  /* margin-top: 24px; */
  background: linear-gradient(90deg, rgba(255,255,255,1) 0%, rgba(198,202,210,1) 25%, rgba(198,202,210,1) 75%, rgba(255,255,255,1) 100%);
}

@media (max-width: 1200px) {
  .company-team-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 992px) {
  .company-team-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Блок с цитатой */
.quote-block {
  background-color: var(--bs-light);
  border-radius: 8px;
  padding: 120px 32px 32px;
  position: relative;
  margin-top: 80px;
}

.quote-block::before {
  content: '';
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background-color: var(--bs-light);
  background-image: url('../images/pages/home/anastasia-reviewer.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 8px solid #ffffff;
}

.quote-block .quote-author { text-align: center; margin-bottom: 48px; }
.quote-block .quote-author-name {
  font-size: 32px;
  font-weight: 600;
  line-height: 40px;
  color: var(--bs-gray-950);
  margin-bottom: 0;
}
.quote-block .quote-author-role {
  font-size: 18px;
  font-weight: 400;
  line-height: 24px;
  color: var(--bs-gray-500);
  margin-top: 0;
}
.quote-block .quote-text {
  font-size: 24px;
  font-weight: 300;
  line-height: 32px;
  color: var(--bs-gray-950);
  text-align: center;
}

/* Сетка задач */
.task-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  background-color: var(--bs-light);
  padding: 4px;
  border-radius: 8px;
}

.task-card {
  background-color: #ffffff;
  padding: 32px 8px;
  border-radius: 4px;
  text-align: center;
  font-size: 20px;
  line-height: 26px;
  color: var(--bs-gray-950);
}

.task-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

/* Плавающие кнопки CTA */
.floating-cta {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 1050;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.floating-cta__download {
  padding: 14px 20px;
  font-size: 14px;
  line-height: 1.43;
  white-space: nowrap;
}

.floating-cta__call {
  padding: 14px;
  width: 56px;
  height: 56px;
}

/* Скрытые антиспам чекбоксы */
.field-hidden-abs {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* Галерея (Swiper) — размеры и управление */
.image-gallery { position: relative; }
.gallery-main-swiper { width: 100%; height: 620px; border-radius: 8px; overflow: hidden; }
.gallery-main-swiper .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}
.gallery-thumbs-swiper { width: 100%; height: 109px; padding: 0 8px; }
.gallery-thumbs-swiper .swiper-slide { width: auto; height: 100%; }
.gallery-thumbs-swiper .swiper-slide-thumb-active .image-gallery-thumb { border: 1px solid var(--bs-gray-950); }

.image-gallery-thumb {
  flex: 1;
  height: 109px;
  border-radius: 4px;
  cursor: pointer;
  transition: opacity 0.2s;
  overflow: hidden;
}
.image-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}
.image-gallery-thumb:hover { opacity: 0.8; }

.gallery-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--bs-gray-950);
  color: #ffffff;
  border: none;
  width: 56px;
  height: 56px;
  border-radius: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s;
  z-index: 10;
}
.gallery-nav-btn:hover { background-color: var(--bs-gray-800); }
.gallery-nav-btn.prev { left: 20px; }
.gallery-nav-btn.next { right: 20px; }


/* 404 */
.notfound {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 0 120px;
  overflow: hidden;
}

.notfound-watermark {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(160px, 28vw, 420px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  color: var(--bs-light);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

.notfound-content {
  position: relative;
  z-index: 1;
  max-width: 343px;
}

@media (min-width: 992px) {
  .notfound-content { max-width: 520px; }
}

/* Контакты */
.contacts-map {
  height: 458px;
  border-radius: 8px;
  overflow: hidden;
}

/* Пытаемся подружить любой HTML карты (iframe/ymaps/div) */
.contacts-map iframe {
  width: 100% !important;
  height: 100% !important;
  border: 0;
  display: block;
}

.contacts-map > * {
  width: 100%;
  height: 100%;
}

.contacts-pill-icon { display: block; }

.contacts-question-phone {
  border-bottom: none;
  text-decoration: none;
}

.contacts-question-phone:hover {
  border-bottom: none;
  text-decoration: none;
}

.contacts-form-field {
  width: 343px;
  max-width: 100%;
}

.contacts-form-field .form-control {
  padding-left: 48px;
}

.contacts-input-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  pointer-events: none;
}

.contacts-submit {
  min-height: 48px;
  white-space: nowrap;
}

.contacts-disclaimer {
  font-size: 12px;
  line-height: 16px;
  color: var(--bs-gray-400);
}

.contacts-disclaimer-link {
  color: var(--bs-gray-950);
}

.contacts-disclaimer-link:hover {
  color: var(--bs-gray-950);
}


/* Адаптивность */

main.main.no-hero {
  padding-top: 140px !important;
}

/* Убрали page-specific сдвиг hero-content под 1440px — пусть работает container */

@media (max-width: 768px) {

  /* О компании (company) */
  .company-lead { font-size: 16px; line-height: 22px; }

  .company-team-grid {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .company-team-card {
    flex: 0 0 auto;
    width: 190px;
    height: 278px;
    scroll-snap-align: start;
  }

  /* Футер (mobile) — CTA 2 колонки, соцсети 2 колонки, политика внизу */
  .footer .footer-cta > a {
    flex: 1 0 0%;
  }

  .footer .footer-cta .btn.btn-primary-custom.btn-rounded {
    padding: 10px 16px; /* ближе к макету (Small) */
  }

  .footer .footer-social-links {
    display: block; /* column-count не работает с flex */
    column-count: 2;
    column-gap: 8px;
  }

  .footer .footer-social-links .footer-section-link {
    display: inline-block;
    width: 100%;
    break-inside: avoid;
    margin-bottom: 8px;
  }

  .footer .footer-social-links .footer-section-link:last-child {
    margin-bottom: 0;
  }

  main.main.no-hero {
    padding-top: 100px !important;
  }

  /* Контакты */
  .contacts-buttons a { width: 100%; }
  .contacts-address { justify-content: center; }
  .contacts-form-field {
    width: 100%;
    max-width: 100%;
  }
  /* Конец контактов */

  /* 404 */
  .notfound-watermark { font-size: 175px; top: 45%;} 
  /* Конец 404 */

  .task-grid { grid-template-columns: repeat(2, 1fr); }
  .task-card { padding: 24px 8px; font-size: 18px; line-height: 24px; }
  .header { padding: 0 8px; }
  .header .top-menu-item { font-size: 14px; padding: 6px; }
  .header-fixed { top: 12px; width: calc(100% - 24px); }
  .quote-block { padding: 96px 20px 28px; margin-top: 64px; }
  .quote-block::before { width: 140px; height: 140px; top: -70px; }
  .quote-block .quote-author-name { font-size: 24px; line-height: 30px; }
  .quote-block .quote-author-role { font-size: 14px; line-height: 20px; }
  .quote-block .quote-text { font-size: 18px; line-height: 26px; text-align: left; }
  .gallery-main-swiper { height: 420px; }
  .gallery-thumbs-swiper { height: 84px; }
  .image-gallery-thumb { height: 84px; }
  .gallery-nav-btn { width: 48px; height: 48px; }
  .gallery-nav-btn.prev { left: 12px; }
  .gallery-nav-btn.next { right: 12px; }
  .floating-cta__download { display: none !important; }
}

@media (max-width: 576px) {
  .title-60 { font-size: 32px; line-height: 38px; }
  .title-40 { font-size: 28px; line-height: 34px; }
  .title-32 { font-size: 24px; line-height: 32px; }
  .title-24 { font-size: 24px; line-height: 28px; }
  .title-20 { font-size: 20px; line-height: 26px; }
  .title-24-regular { font-size: 18px; line-height: 26px; }
  .body-l-24 { font-size: 18px; line-height: 26px; }

  /* Hero (mobile) — как в Figma */
  .hero-section {
    height: 650px;
    height: min(650px, 100vh);
    height: min(650px, 100svh);
  }

  .hero-section .container-lg {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-section .hero-image img {
    object-position: center;
  }

  .hero-section .hero-content {
    /* Контент снизу с отступом 16px, ширина 343px */
    justify-content: flex-end !important;
    padding: 0 0 16px 0;
    max-width: 343px;
  }

  .hero-section .hero-title {
    font-size: 26px;
    line-height: 38px;
    font-weight: 500;
    margin-bottom: 12px !important;
  }

  .hero-section .hero-text {
    font-size: 16px;
    line-height: 22px;
    font-weight: 400;
    margin-bottom: 4px !important;
  }

  .hero-section .hero-text:last-of-type {
    margin-bottom: 0 !important;
  }

  .hero-section .hero-actions {
    margin-top: 16px;
    align-items: center;
  }

  .hero-section .hero-actions > a.btn:not(.rounded-circle) {
    flex: 1 1 auto;
    padding: 14px 20px !important;
    border-radius: 56px !important;
    background-color: #f7f7f5 !important;
    border-color: transparent !important;
    color: #0b0c0e !important;
    font-size: 14px;
    line-height: 20px;
  }

  .hero-section .hero-actions > a.btn.rounded-circle {
    flex: 0 0 auto;
    padding: 14px !important;
    border-radius: 56px !important;
    background-color: #f7f7f5 !important;
    border-color: transparent !important;
  }

      /* .hero-section .hero-actions > a.btn.rounded-circle img {
        width: 16.667px !important;
        height: 16.667px !important;
      } */

  /* company: в Figma тоже нижний отступ 16px */
  /* единый стандарт задаёт .hero-section .hero-content (padding-bottom:16px) */

  .task-grid { grid-template-columns: 1fr; }
  .quote-block { padding: 88px 16px 24px; margin-top: 56px; }
  .quote-block::before { width: 120px; height: 120px; top: -60px; }
  .gallery-main-swiper { height: 280px; }
  .gallery-thumbs-swiper { height: 72px; padding: 0 4px; }
  .image-gallery-thumb { height: 72px; }
  .gallery-nav-btn { display: none; }
  .floating-cta__download { display: none !important; }
}

/* Таймлайн "Работы по месяцам" (перенесено со старого дизайна) */
.pb_wrapper {
  position: relative;
  top: 0;
  left: 0;
  overflow: visible;
  z-index: 20;
}

.pb_wrapper .table-responsive {
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #bdbdbd #e6e6e6;
}
.pb_wrapper .table-responsive::-webkit-scrollbar {
  height: 10px;
}
.pb_wrapper .table-responsive::-webkit-scrollbar-thumb {
  background-color: #bdbdbd;
  border-radius: 999px;
  border: 3px solid #e6e6e6;
}
.pb_wrapper .table-responsive::-webkit-scrollbar-track {
  background: #e6e6e6;
  border-radius: 999px;
}

.pb {
  width: 1296px;
  background-color: #FAFAFA;
  padding: 40px;
  margin-top: 45px;
  overflow: visible;
  position: static;
  border-radius: 12px;
}

.pb_line {
  display: block;
  height: 4px;
  width: 100%;
  background: #cecece;
  margin-top: 20px;
  position: relative;
}

.month {
  position: absolute;
  top: -18px;
  left: 0;
  display: flex;
  width: 40px;
  height: 40px;
  border-radius: 20px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: #121212;
  color: #fff;
  font-size: 18px;
}

.pb_text {
  background: none;
  height: 420px;
}

.pb .row.gx-0 > .col-2 {
  position: relative;
}
.pb .row.gx-0 > .col-2::after {
  content: '';
  position: absolute;
  left: 0;
  top: 40px;
  bottom: 0;
  width: 2px;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.22) 0px,
    rgba(0, 0, 0, 0.22) 10px,
    transparent 10px,
    transparent 20px
  );
  pointer-events: none;
  z-index: 0;
}

.pb_line,
.pb_text,
.month,
.pb_btn,
.pb_btn_0 {
  position: relative;
  z-index: 1;
}

.pb_zamer_icon {
  width: 110px;
  height: 55px;
  display: block;
}

.pb_text p {
  margin-top: 1rem;
  font-size: 20px;
  line-height: 54px;
}

.pb_btn {
  display: flex;
  height: 50px;
  border-radius: 25px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: #282828;
  /* background: linear-gradient(90deg, #FF636E -2.35%, #FF766E 37.31%, #FC8E70 70.46%, #FCAB73 101.97%); */
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  position: relative;
  z-index: 5;
  user-select: none;
}

.pb_btn_1 {
  margin-top: 80px;
  width: 200%;
  transform: translateX(-30%);
}
.pb_btn_2 {
  margin-top: 150px;
  width: 200%;
  transform: translateX(-10%);
}
.pb_btn_3 {
  margin-top: 220px;
  width: 400%;
  transform: translateX(-65%);
}
.pb_btn_4 {
  margin-top: 290px;
  width: 200%;
  transform: translateX(-10%);
}

.pb_ {
  position: absolute;
  width: 405px;
  background-color: #fff;
  border-radius: 8px;
  padding: 17px 20px;
  font-size: 16px;
  z-index: 999;
  box-shadow: 0 6px 28px 0 #0000001F;
  -webkit-overflow-scrolling: auto !important;
}

/* Фолбэк-позиции (JS дополнительно выравнивает по кнопке) */
.pb_0 { top: 258px; left: 48px; }
.pb_1 { top: 320px; left: 130px; }
.pb_2 { top: 390px; left: 416px; }
.pb_3 { top: 460px; left: 130px; }
.pb_4 { top: 530px; left: 820px; }

.pb_ .modal-header {
  position: relative;
}

.pb_ .modal-header .btn-close {
  position: absolute;
  top: -5px;
  right: -10px;
  transform: scale(0.9);
  transform-origin: right top;
}
/* .pb_ .modal-header .btn-close {
  transform: scale(0.75);
  transform-origin: right top;
}
.pb_ .modal-header::before {
  content: '';
  width: 28px;
  height: 20px;
  background: url('/view/images/svg/subtract.svg');
  position: absolute;
  top: -39px;
  right: 20px;
} */

@media (max-width: 767px) {
  .pb_wrapper { width: 100%; }
}

