/*base.css*/

/* Sticky footer styles
-------------------------------------------------- */
html {
  position: relative;
  min-height: 100%;
  font-size: 14px;
  /* [DC Source] Базовый цвет фона страницы — светло-бежевый */
  background-color: #fff;
}
@media (min-width: 768px) {
  html {
    font-size: 16px;
    /* [DC Source] Сохраняем адаптивный размер шрифта */
  }
}

/* [DC Source] Flex layout для body */
body {
  margin: 0;
  color: #222;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: 'TTNorms', Arial, Helvetica, sans-serif;
}

/* [DC Source] ОБНОВЛЕНО: двухколоночный layout для страницы */
.main-two-columns {
  display: flex;
  flex-direction: row;
  gap: 32px;
  width: 100%;
  max-width: 100vw;
  margin-top: 115px;
  margin-bottom: 70px;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 25px 25px 25px 25px;
  min-height: 60vh;
}
@media (max-width: 1200px) {
  .main-two-columns {
    gap: 16px;
    max-width: 100vw;
    padding: 0;
  }
}
@media (max-width: 991.98px) {
  .main-two-columns {
    flex-direction: column;
    gap: 0;
    max-width: 100vw;
    padding: 0;
  }
}

/* [DC Source] ОБНОВЛЕНО: основной контейнер теперь .container-main, ширина 70vw */
.container-main {
  width: 100%;
  max-width: 70vw;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  background-color: #fff;
  box-shadow: 0 5px 15px 0 rgba(0, 0, 0, 0.4);
  border-radius: 0;
  padding: 0 0 0 0;
  min-height: 0;
}
@media (max-width: 1200px) {
  .container-main {
    width: 100%;
    max-width: 100vw;
    padding: 18px 8px;
  }
}
@media (max-width: 991.98px) {
  .container-main {
    width: 100%;
    max-width: 100vw;
    padding: 10px 10px;
    margin-bottom: 0;
  }
}
@media (max-width: 575.98px) {
  .container-main {
    max-width: 100vw;
    padding: 10px 10px;
    margin-bottom: 0;
  }
}

/* [DC Source] Контент внутри .container-main по центру */
.container-main > * {
  width: 100%;
}

/* [DC Source] ДОРАБОТАНО: колонка боковых контейнеров справа */
.sidebars-column {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 25vw;
  min-width: 210px;
  align-items: stretch;
  position: sticky;
  top: 90px;
  height: fit-content;
}
@media (max-width: 1200px) {
  .sidebars-column {
    width: 100%;
    max-width: 100vw;
    min-width: 120px;
    gap: 18px;
  }
}
@media (max-width: 991.98px) {
  .sidebars-column {
    width: 100%;
    max-width: 100vw;
    min-width: 0;
    gap: 12px;
    margin-top: 24px;
    margin-bottom: 0;
    position: static;
    top: auto;
  }
}

/* [DC Source] Отдельные боковые контейнеры */
.container-side,
.container-side-anchor {
  width: 100%;
  background-color: #fff;
  box-shadow: 0 5px 15px 0 rgba(0, 0, 0, 0.3);
  border-radius: 0;
  padding: 0;
  margin-bottom: 0;
  height: fit-content;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
@media (max-width: 1200px) {
  .container-side,
  .container-side-anchor {
    max-width: 98vw;
    padding: 18px 8px;
  }
}
@media (max-width: 991.98px) {
  .container-side,
  .container-side-anchor {
    max-width: 100vw;
    padding: 10px 10px;
    margin-bottom: 0;
  }
}
@media (max-width: 575.98px) {
  .container-side,
  .container-side-anchor {
    max-width: 100vw;
    padding: 10px 10px;
    margin-bottom: 0;
  }
}

/* [DC Source] Секции внутри боковых контейнеров */
.container-side section,
.container-side-anchor section {
  width: 100%;
  margin: 0;
  padding: 0;
  background: none;
  box-shadow: none;
  border-radius: 0;
}

/* [DC Source] Меню внутри секций */
#side-menu,
#side-menu-anchor {
  width: 100%;
  padding: 0;
  margin: 0;
}

/* [DC Source] pricing-header */
.pricing-header {
  border-bottom: 5px solid rgba(140, 32, 40, 0.7);
  padding-top: 25px;
  padding-bottom: 10px;
  margin-bottom: 30px;
  border-radius: 0;
}

.menu-header {
  background: linear-gradient(to right, #8c2020 0%, #af2828 100%);
  color: #FFFFFF;
  text-align: center;
  padding: 10px 0 10px 0;
  margin-bottom: 0;
  border-radius: 0;
  font-weight: 200 !important;
  box-shadow: rgba(140, 32, 40, 0.4) 0 5px 10px 0;
}

.main-section-header {
  background: linear-gradient(to right, #8c2020 0%, #af2828 100%);
  color: #FFFFFF;
  text-align: center;
  padding: 25px 0 25px 0;
  margin-bottom: 0;
  border-radius: 0;
  font-weight: 200 !important;
  font-size: 2rem;
  box-shadow: rgba(140, 32, 40, 0.4) 0 5px 10px 0;
}

.main-section-content {
  padding: 20px 4% 20px 4%;
}

/* [DC Source] Sticky footer */
.footer {
  width: 100%;
  background: linear-gradient(to right, #8c2020 60%, #af2828 100%);
  padding-top: 5px;
  color: #FFF;
  border-radius: 0;
  font-size: 1rem;
  flex-shrink: 0;
  position: fixed;
  left: 0;
  bottom: 0;
  height: 30px;
  line-height: 20px;
  z-index: 1040;
  box-shadow: 0 -5px 15px 0 rgba(0, 0, 0, 0.4);
  transition: height 0.3s, line-height 0.3s;
  overflow: hidden;
}
.footer-expanded {
  height: 200px;
  padding-top: 25px;
  line-height: 18px;
  transition: height 0.3s, line-height 0.3s;
  background: linear-gradient(to right, #8C2028 80%, #9f242d 100%);
}

/* [DC Source] Контейнер внутри футера */
.container-fluid {
  padding-left: 2%;
  padding-right: 2%;
  margin: 0 auto;
  width: 100%;
  max-width: 100vw;
}

.footer .container-main {
  padding: 0;
  margin: 0 auto;
  box-shadow: none;
  background: none;
}

/* [DC Source] Блок ссылок — скрыт до расширения */
.footer-links-block {
  display: none;
  opacity: 0;
  transition: opacity 0.3s;
}
.footer-expanded .footer-links-block {
  display: block;
  opacity: 1;
  margin-bottom: 4px;
  margin-top: 4px;
}

/* [DC Source] Строка c DCSource */
.footer-copyright {
  display: block;
  width: 100%;
  text-align: center;
  font-size: inherit;
}

/* [DC Source] Карточки */
.card,
.card-header,
.card-body {
  width: 100%;
  border: none;
  border-radius: 0 !important;
}

/* [DC Source] Таблица */
.table {
  border-radius: 0 !important;
  background-color: #eaeaea;
  font-size: 1rem;
}
@media (max-width: 575.98px) {
  .table {
    font-size: 0.89rem;
  }
}

/* [DC Source] Контейнер логотипа */
.company-detail-avatar-img-container-main {
  border-radius: 0 !important;
  background: none !important;
  padding: 0;
}

/* [DC Source] Логотипы */
.company-detail-avatar-img {
  max-height: 10vh;
  max-width: 100%;
  object-fit: contain;
}
@media (max-width: 991.98px) {
  .company-detail-avatar-img {
    max-height: 7vh;
  }
}
@media (max-width: 575.98px) {
  .company-detail-avatar-img {
    max-height: 5vh;
  }
}

/* [DC Source] Кнопки */
.button,
.btn {
  color: #FFF;
  background-color: #8C2028;
  border-radius: 0;
  border: none;
  padding: 8px 18px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  font-size: 1rem;
}
@media (max-width: 575.98px) {
  .button,
  .btn {
    padding: 6px 10px;
    font-size: 0.95rem;
  }
}

/* [DC Source] Ссылки */
a {
  color: #8C2028;
  background: none !important;
  border-radius: 0 !important;
  text-decoration: none;
  font-weight: 600;
  padding: 0;
  transition: color 0.2s;
  font-size: 1rem;
}
a:hover {
  color: #A13A42;
  text-decoration: underline;
}
@media (max-width: 575.98px) {
  a {
    font-size: 0.95rem;
  }
}

/* [DC Source] Акцентные круги */
.dc-accent-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #8C2028 70%, #C2825D 100%);
  opacity: 0.15;
  position: absolute;
  z-index: 0;
}
@media (max-width: 575.98px) {
  .dc-accent-circle {
    width: 72px;
    height: 72px;
  }
}

.dc-accent-text { color: #8C2028; font-weight: bold; }
.dc-light-bg { background-color: #F2EFE8; }
.dc-muted { color: #7C7C7C; }

.status-danger { color: #c00; background: #ffe5e5; font-weight: bold; }
.status-info { color: #005aa3; background: #e5f2ff; font-weight: normal; }

/* [DC Source][FIXED] Чекбоксы */
.contact-company-block-flex {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  width: 100%;
}
.contact-personal-data-flex {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
}
.contact-checkbox-label {
  margin-bottom: 0;
  font-weight: 300;
  font-size: 0.8rem;
}

/* Логотип + иконки: адаптивное уменьшение */
#navbar-logo-footer {
  height: 38px;
  transition: height 0.2s;
}
@media (max-width: 991.98px) {
  #navbar-logo-footer { height: 34px !important; }
}
@media (max-width: 575.98px) {
  #navbar-logo-footer { height: 32px !important; }
}

/* Иконки соцсетей: уменьшаем на узких */
.footer .dc-footer-social {
  transition: width .2s, height .2s;
}
@media (max-width: 991.98px) {
  .footer .dc-footer-social { width: 38px !important; height: 30px !important; }
  .footer .dc-footer-social svg { width: 26px; height: 26px; }
}
@media (max-width: 575.98px) {
  .footer .dc-footer-social { width: 34px !important; height: 28px !important; }
  .footer .dc-footer-social svg { width: 24px; height: 24px; }
}

/* <1200px скрываем колонку решений */
@media (max-width: 1199.98px) {
  .footer-col-solutions { display: none !important; }
}
/* <992px скрываем навигацию */
@media (max-width: 991.98px) {
  .footer-col-nav { display: none !important; }
}
/* <576px колонки в одну */
@media (max-width: 575.98px) {
  .footer-col-brand,
  .footer-col-contacts {
    width: 100% !important;
    max-width: 100% !important;
  }
  .footer-col-contacts {
    align-items: flex-start !important;
    text-align: left !important;
    margin-top: 12px;
  }
}