.section h1,
.section h2,
.section h3,
.section h4,
.section h5,
.section h6,
.section p {
  margin: 0;
  padding: 0;
}

.section {

}

.section:not(:last-child) {
  margin-bottom: 48px;
}

.section--whitebox .section__content {
  padding: 48px;
  border-radius: 16px;
  background-color: #ffffff;
}

.section__content {

}

.section__title {
  font-weight: 700;
  font-size: 32px;
  line-height: 1.25;
}

.section__title:not(:last-child) {
  margin-bottom: 24px;
}

.section__description:not(:last-child) {
  margin-bottom: 16px;
}

.section__subtitle {
  font-weight: 700;
  font-size: 24px;
  line-height: 1.25;
}

.section__subtitle:not(:last-child) {
  margin-bottom: 24px;
}

.section__subtitle--article-title {
  position: relative;
  margin-bottom: 28px !important;
  padding-bottom: 18px !important;
}

.section__subtitle--article-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 64px;
  height: 4px;
  border-radius: 999px;
  background: #da7d40;
}

.section__text {
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
}

.section__text:not(:last-child) {
  margin-bottom: 16px;
}

.searchbar {
  display: flex;
  align-items: center;
}

.searchbar:has(.form-control:focus) {
  border-radius: 8px;
  box-shadow: 0 0 0 .2rem rgba(0,123,255,.25);
}

.searchbar__field {
  position: relative;
  z-index: 0;
  flex-grow: 1;
}

.searchbar__input {
  border-radius: 8px 0 0 8px;
  box-shadow: none !important;
}

.searchbar__dropdown {
  position: relative;
  z-index: 0;
  width: fit-content;
}

.searchbar__dropdown--visible .searchbar__dropdown-list {
  visibility: visible;
  opacity: 1;
}

.searchbar__dropdown-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  column-gap: 8px;
  border-radius: 0 8px 8px 0;
}

.searchbar__dropdwon-title {
  max-width: calc(100% - 24px);
  white-space: nowrap;
  font-weight: 400;
}

.searchbar__dropdown-icon {
  position: relative;
  z-index: 0;
  transform: translateY(-2px);
  display: block;
  width: 16px;
  min-width: 16px;
  height: 16px;
}

.searchbar__dropdown-icon::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-45deg);
  z-index: 0;
  width: 8px;
  height: 8px;
  border-left: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
}

.searchbar__dropdown-list {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 1;
  width: 100%;
  min-width: fit-content;
  background-color: #ffffff;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0.2s ease-in-out,
              opacity 0.2s ease-in-out;
}

.searchbar__option {
  display: block;
  width: 100%;
  margin-bottom: 0;
  padding: 8px 16px;
  cursor: pointer;
  transition: color 0.2s ease-in-out;
}

.searchbar__option:has(.searchbar__radio:checked) .searchbar__option-title {
  font-weight: 700;
}

.searchbar:has(.searchbar__radio[value="search-catalog"]:checked) .searchbar__submit {
  display: flex;
}

.searchbar__option:hover {
  background-color: #5a9aae;
}

.searchbar__option:hover .searchbar__option-title {
  color: #ffffff;
}

.searchbar__radio {
  display: none;
}

.searchbar__option-title {
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  color: #454c52;
}

.searchbar__submit {
  position: absolute;
  inset: 0 0 0 auto;
  z-index: 1;
  display: none;
  width: 38px;
  height: 38px;
  padding: 0;
}

.searchbar__submit-icon {
  display: block;
  width: 24px;
  height: 24px;
  margin: auto;
}

.section-title-wr .section-title h2 {
  margin-bottom: 0;
  padding-bottom: 0;
}

.section__whitebox {
  display: block;
  position: relative;
  overflow: hidden;
  padding: 48px;
  border-radius: 16px;
  background-color: #ffffff;
}

.section__whitebox--hidden {
  display: none;
}

body:has(.search-section-whitebox--searched) .section__whitebox {
  display: none;
}

body:has(.search-section-whitebox--searched) .section__whitebox:has(.section__subtitle--highlight) {
  display: grid !important;
}

body:has(.search-section-whitebox--searched) .btn-more-section-whitebox {
  display: none;
}

.section__whitebox:not(:last-child) {
  margin-bottom: 24px;
}

.section__whitebox-info {
  position: relative;
  z-index: 2;
  padding-right: 0;
}

.section__whitebox-info > .section__subtitle,
.section__whitebox-info > .section__description {
  max-width: calc(58% - 24px);
}

.section__whitebox-media {
  position: absolute;
  inset: 0 0 0 auto;
  z-index: 1;
  width: 48%;
  max-width: none;
  min-height: 0;
  margin: 0;
  aspect-ratio: auto;
  overflow: hidden;
}

.section__whitebox-media::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 1;
  width: 34%;
  background: linear-gradient(
    90deg,
    #ffffff 0%,
    rgba(255, 255, 255, 0.96) 24%,
    rgba(255, 255, 255, 0.72) 52%,
    rgba(255, 255, 255, 0) 100%
  );
  pointer-events: none;
}

.section__whitebox-media-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: right center;
}

.section__cards {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 288px));
  grid-gap: 18px;
  align-items: stretch;
  justify-content: flex-start;
  width: min(900px, 100%);
}

.section__card {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  grid-template-rows: repeat(2, auto);
  align-items: center;
  align-content: center;
  column-gap: 14px;
  min-height: 84px;
  height: 100%;
  padding: 12px 16px;
  border: 1px solid #d5e2ec;
  border-radius: var(--block-border-radius, 15px);
  background-color: #ffffff;
  text-decoration: none;
}

.section__card--demo {
  grid-template-rows: auto;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.section__card-media {
  grid-row: 1 / span 2;
  align-self: center;
  width: 40px;
  height: 40px;
}

.section__card--demo .section__card-media {
  grid-row: 1;
}

.section__card--demo:hover,
.section__card--demo:focus {
  border-color: #5A9AAE;
  background-color: #f2f6fb;
  text-decoration: none;
}

.section__card--demo:active {
  transform: translateY(1px);
}

.section__card-media-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.section__card-name {
  grid-column: 2;
  align-self: center;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.35;
  color: #454c52;
}

.section__card-value {
  grid-column: 2;
  align-self: center;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.35;
  color: #454c52;
}

.section__card--demo .section__card-value {
  align-self: center;
  justify-self: start;
}

.section__controls {
  display: flex;
  justify-content: center;
  align-items: center;
}

@media (max-width: 1080px) {
  .section:not(:last-child) {
    margin-bottom: 24px;
  }

  .section--whitebox .section__content {
    padding: 24px;
  }

  .section__whitebox {
    padding: 24px 24px 0;
  }

  .section__whitebox-info {
    padding-right: 0;
  }

  .section__whitebox-info > .section__subtitle,
  .section__whitebox-info > .section__description {
    max-width: 100%;
  }

  .section__title {
    font-size: 24px;
  }

  .section__title:not(:last-child) {
    margin-bottom: 16px;
  }

  .section__subtitle {
    font-size: 20px;
  }

  .section__subtitle:not(:last-child) {
    margin-bottom: 16px;
  }

  .section__cards {
    grid-template-columns: 1fr;
    grid-gap: 16px;
    max-width: 100%;
  }

  .section__card {
    grid-template-columns: 32px minmax(0, 1fr);
    column-gap: 12px;
    min-height: 84px;
    padding: 12px 16px;
    border-radius: var(--block-border-radius, 15px);
  }

  .section__card-media {
    width: 32px;
    height: 32px;
  }

  .section__whitebox-media {
    position: relative;
    inset: auto;
    width: calc(100% + 48px);
    max-width: none;
    min-height: 0;
    margin: 24px -24px 0;
    aspect-ratio: 16 / 9;
  }

  .section__whitebox-media::after {
    width: 26%;
  }
}

@media (max-width: 767px) {
  .searchbar {
    flex-direction: column;
    row-gap: 8px;
  }

  .searchbar__field {
    width: 100%;
  }

  .searchbar__dropdown-trigger {
    width: 100%;
    border-radius: 8px;
  }

  .searchbar__dropdown {
    width: 100%;
  }

  .searchbar__input {
    border-radius: 8px;
  }
}

@media (max-width: 600px) {
  .section__whitebox-media {
    width: calc(100% + 48px);
    max-width: none;
    margin: 20px -24px 0;
    aspect-ratio: 16 / 9;
  }

  .section__whitebox-media::after {
    width: 22%;
  }

  .section__cards {
    max-width: 100%;
  }

  .section__card {
    grid-template-columns: 40px minmax(0, 1fr);
    align-items: center;
    column-gap: 12px;
    min-height: 84px;
    padding: 12px;
  }

  .section__card-media {
    width: 40px;
    height: 40px;
  }

  .section__card-name,
  .section__card-value {
    grid-column: 2;
  }

}

/* ===== Синхронно с tags/style.css (2026-06-12): поисковая строка и
   картинка карточки программы на мобильных ===== */
.searchbar .searchbar__submit {
  display: flex !important;
}

.searchbar .searchbar__input {
  padding-left: 44px !important;
}

.searchbar .searchbar__dropdown-trigger {
  display: flex !important;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  column-gap: 10px;
  white-space: nowrap;
}

.searchbar .searchbar__dropdwon-title {
  max-width: none;
}
