/* ===== Home Page: Hero ===== */
.hero {
  width: 100%;
  height: 810px;
  box-sizing: border-box;
  overflow: hidden;
  background-image: url('../img/home/hero-bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}



.hero__content {
  margin-top: 117px;

}
.hero__subtitle {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Services Bar */
.services-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: none;
  margin: 0;
  background-color: rgba(247, 250, 255, 0.9);
}

.services-bar__list {
  display: flex;
  align-items: center;
  justify-content: space-around;
  width: var(--content-width);
  max-width: 100%;
  height: 125px;
  margin: 0 auto;
}

.service-item {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: center;
}

.service-item__icon {
  width: 69px;
  height: 69px;
  flex-shrink: 0;
}

.service-item__text {
  margin-left: 20px;
}

.service-item__title {
  margin: 0;
  font-family: var(--font-semibold);
  font-size: 16px;
  font-weight: 600;
  line-height: 22px;
  color: var(--color-text);
}

.service-item__desc {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 17px;
  color: var(--color-text-secondary);
}

.service-item__divider {
  width: 1px;
  height: 66px;
  margin: 0 18px 0 9px;
  background-color: #c7deff;
  flex-shrink: 0;
}

/* ===== Auth Section ===== */
.auth-section {
  position: relative;
  width: 100%;
  max-width: var(--page-width);
  margin: 8px auto 0;
  padding: 39px 0 132px;
  /* background-color: #ffffff; */
  overflow: visible;
}

.auth-section__inner {
  width: var(--content-width);
  max-width: 100%;
  margin: 0 auto;
  background: url('../img/home/auth-section-bg.png') no-repeat center center;
  background-size: cover;
}




/* ===== Business Section ===== */
.business-section {
  width: 100%;
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 45px 0 71px;
  background-color: var(--color-bg-section);
  overflow: visible;
}

.business-section__title {
  margin-bottom: 29px;
}

.business-section__cards {
  display: flex;
  gap: 24px;
  align-items: stretch;
}

.business-card {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.business-card__image {
  width: 100%;
  height: 203px;
  flex-shrink: 0;
  overflow: hidden;
  background-color: #d8d8d8;
  border-radius: 2px;
}

.business-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.business-card__overlay {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-top: -31px;
  padding: 19px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.73) 0%,
    #ffffff 13.68%,
    #ffffff 100%
  );
  border-radius: 0 0 2px 2px;
  box-shadow: 0 3px 9px rgba(0, 63, 116, 0.08);
}

.business-card__title {
  margin: 0;
  font-family: var(--font-semibold);
  font-size: 19px;
  font-weight: 600;
  line-height: 26px;
  color: var(--color-text);
}

.business-card__underline {
  width: 43px;
  height: 3px;
  margin-top: 4px;
  background-color: var(--color-accent);
  border-radius: 2px;
}

.business-card__desc {
  margin: 20px 0 0;
  flex: 1;
  font-size: 15px;
  line-height: 20px;
  color: var(--color-text);
}

.business-card__link {
  margin-top: 27px;
  margin-left: auto;
  width: fit-content;
  display: flex;
  flex-shrink: 0;
  font-size: 13px;
  line-height: 20px;
}
.business-card__link img {
  height: 3px;
}

/* ===== News Section ===== */
.news-section {
  width: 100%;
  max-width: var(--page-width);
  margin: -3px auto 0;
  padding: 45px 0 106px;
  background-color: #ffffff;
  overflow: hidden;
}

.news-section__title {
  margin-bottom: 28px;
}

.news-tabs {
  display: flex;
  gap: 31px;
}

.news-tabs__item {
  font-size: 16px;
  line-height: 22px;
  color: #747474;
  cursor: pointer;
  white-space: nowrap;
  padding: 0;
  min-width: auto;
}

.news-tabs__item--active {
  font-size: 18px;
  line-height: 26px;
  color: #333333;
  background: none;
  border-bottom: 3px solid var(--color-accent);
}

.news-tabs__item:nth-child(2),
.news-tabs__item:nth-child(3) {
  margin-left: -2px;
}

.news-tabs__line {
  width: 100%;
  height: 1px;
  margin-top: 2px;
  background-color: var(--color-divider);
}

.news-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, calc((100% - 60px) / 4)));
  gap: 20px;
  margin-top: 34px;
}

.news-cards--count-1 {
  grid-template-columns: minmax(0, calc((100% - 60px) / 4));
}

.news-cards--count-2 {
  grid-template-columns: repeat(2, minmax(0, calc((100% - 60px) / 4)));
}

.news-cards--count-3 {
  grid-template-columns: repeat(3, minmax(0, calc((100% - 60px) / 4)));
}

.news-card {
  min-width: 0;
}

.news-featured__link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.news-card .news-featured__image {
  position: relative;
  width: 100%;
  height: 183px;
  overflow: hidden;
}

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

.news-card .news-summary__card {
  position: relative;
  width: 100%;
  margin-top: 0;
  padding: 11px 13px 17px;
  background-color: var(--color-bg-card);
}

.news-summary__title a,
.news-list-item__title a {
  color: inherit;
  text-decoration: none;
}

.news-summary__title a:hover,
.news-list-item__title a:hover {
  color: var(--color-primary);
}

.news-summary__title {
  margin: 0;
  font-family: var(--font-medium);
  font-size: 18px;
  font-weight: 500;
  line-height: 20px;
  color: #090909;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.news-summary__desc {
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 24px;
  color: var(--color-text-light);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-summary__link {
  margin-top: 34px;
  display: flex;
  justify-content: space-between;
  padding-bottom: 6px;
}

.news-list-item {
  display: flex;
  align-items: center;
  width: 100%;
  height: 124px;
  margin-top: 20px;
  padding: 0 32px;
  background-color: var(--color-bg-card);
}

.news-list-item__date {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.news-list-item__day {
  font-family: var(--font-number);
  font-size: 24px;
  line-height: 27px;
  color: #333333;
  font-weight: bold;
}

.news-list-item__year {
  margin-top: 3px;
  font-family: var(--font-number);
  font-size: 12px;
  line-height: 18px;
  color: #333333;
  
}

.news-list-item__content {
  flex: 1;
  margin-left: 40px;
  min-width: 0;
}

.news-list-item__title {
  margin: 0;
  font-size: 18px;
  line-height: 17px;
  color: #090909;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.news-list-item__desc {
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 20px;
  color: var(--color-text-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.news-list-item__link {
  flex-shrink: 0;
  margin-left: 124px;
  font-size: 11px;
  line-height: 16px;
  color: #afb5bf;
  text-decoration: none;
}

.news-section__more {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.news-section__more-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 85px;
  height: 36px;
  border: 1px solid var(--color-accent);
  border-radius: 24px;
  font-size: 14px;
  line-height: 20px;
  color: var(--color-accent);
  text-decoration: none;
}

[data-tab-panel][hidden] {
  display: none;
}

.home-news-empty {
  display: flex;
  justify-content: center;
  padding: 48px 0 24px;
}

.home-news-empty__text {
  margin: 0;
  font-size: 15px;
  line-height: 24px;
  color: var(--color-text-light);
}

.home-news-empty--error .home-news-empty__text {
  color: #e06a6a;
}

.home-news-panel--loading .home-news-panel__content {
  min-height: 200px;
  opacity: 0.5;
}
