/* Общие */
.button svg {
  height: 24px;
}
.width_limited {
  max-width: 30ch;
}
.wrap_balance {
  text-wrap: balance;
}
.wrap_default {
  text-wrap: wrap;
}
.inline_sm {
  display: none;
}
.show_lg {
	display: none;
}
.txt_center_sm {
  text-align: left;
}
.align_center {
	margin-left: auto;
	margin-right: auto;
}
.align_start {
	align-items: start;
}
.divider {
	position: relative;
	width: 100%;
	height: 16px;
}
.divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
	border-top: 1px solid var(--black200);
  width: 100%;
}

/* Страница */
.intro {
  margin-top: 48px;
}
.intro__title {
  text-wrap: wrap;
}

.cards {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 8px;
}
.card {
	grid-column: span 2;
  padding: 24px;
	display: flex;
	flex-direction: column;
	gap: 16px;
	justify-content: flex-start;
	align-items: flex-start;
	border-radius: 12px;
	background-color: var(--black50);
  transition: background 0.5s;
}
.cards_menu1 .card {
  padding: 0;
  background: none;
  gap: 8px;
}
.card__header {
  display: flex;
  flex-direction: row;
  gap: 16px;
}
.card__iconwrap {
  position: relative;
  width: 32px;
  height: 32px;
  display: flex;
  flex-shrink: 0;
  overflow: hidden;
}
.card__icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}
.card__icon_hover {
  z-index: 1;
  transform: translateX(-32px);
  opacity: 0;
}

.cards_menu1 > .card > .card__header {
  width: 100%;
  padding: 16px;
  border-radius: 24px;
  justify-content: flex-start;
  align-items: flex-start;
}
.cards_menu1 > .card > .card__header:hover {
  background-color: var(--black100);
}
.cards_menu1 > .card > .card__links {
  display: none;
}
.cards_menu1 > .card > .card__links > li > .card__link {
  display: block;
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 150%;
  color: var(--black700);
}
.cards_menu1 > .card > .card__links > li > .card__link:hover {
  background-color: var(--black100);
}

.cards_menu2 > .card {
  justify-content: space-between;
  position: relative;
  padding: 24px 24px 24px 20px;
  border-left: 4px solid transparent;
  transition: border 0.3s;
}
.cards_menu2 > .card > .card__header:after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.cards_menu2 > .card:hover {
  background-color: var(--blue50);
}
.cards_menu2 > .card > .card__header {
  width: 100%;
  justify-content: space-between;
  align-items: flex-start;
}
.cards_menu2 > .card > .card__header > .card__title.width_limited {
  max-width: 12ch;
}
.cards_menu2 > .card > .card__links {
  display: none;
}
.cards_menu2 > .card > .card__links > li > .card__link {
  display: block;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  line-height: 150%;
  background-color: var(--white0);
  color: var(--black700);
}
.cards_menu1 > .card > .card__links > .card__link > a,
.cards_menu2 > .card > .card__links > .card__link > a {
  color: var(--black700);
}
.cards_menu1 > .card > .card__links > .card__link:hover,
.cards_menu1 > .card > .card__links > .card__link:hover > a {
}
.cards_menu2 > .card > .card__links > li > .card__link:hover {
  background-color: var(--black900);
  color: var(--white0);
}
.cards_menu2 > .card_1:hover,
.cards_menu2 > .card_1.card_highlight {
  background-color: #E9EEFF;
  border-left: 4px solid #4772FF;
}
.cards_menu2 > .card_2:hover,
.cards_menu2 > .card_2.card_highlight {
  background-color: #FFF9E4;
  border-left: 4px solid #FF9933;
}
.cards_menu2 > .card_3:hover,
.cards_menu2 > .card_3.card_highlight {
  background-color: #E1F7FF;
  border-left: 4px solid #00A3DE;
}
.cards_menu2 > .card_4:hover,
.cards_menu2 > .card_4.card_highlight {
  background-color: #FFE5EB;
  border-left: 4px solid #FF4772;
}
.cards_menu2 > .card_5:hover,
.cards_menu2 > .card_5.card_highlight {
  background-color: #E9FFEC;
  border-left: 4px solid #009912;
}
.cards_menu2 > .card_6:hover,
.cards_menu2 > .card_6.card_highlight {
  background-color: #EDE6FF;
  border-left: 4px solid #7847FF;
}
.cards_menu2 > .card_7:hover,
.cards_menu2 > .card_7.card_highlight {
  background-color: #F6EDE3;
  border-left: 4px solid #9C672A;
}
.cards_menu2 > .card .card__icon {
  position: absolute;
  top: 0;
  left: 0;
  transition:
    transform 0.3s cubic-bezier(.4,0,.2,1),
    opacity 0.3s cubic-bezier(.4,0,.2,1);
}
.cards_menu2 > .card .card__icon.card__icon_main {
  z-index: 2;
  transform: translateX(0);
  opacity: 1;
}
.cards_menu2 > .card:hover .card__icon.card__icon_main {
  transform: translateX(32px);
  opacity: 0;
}
.cards_menu2 > .card:hover .card__icon.card__icon_hover {
  transform: translateX(0);
  opacity: 1;
}

.cards_point {
  gap: 16px;
}
.card_point .card__content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.card_point .card__icon {
  width: 48px;
  height: 48px;
}
.card_point .card__text {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.support {
  display: grid;
  grid-template-columns: 2fr;
  gap: 8px;
}
.support__pic {
  width: 100%;
  height: 288px;
  margin-top: 40px;
  border-radius: 16px;
  grid-column: span 2;
  background-size: cover;
  background-position-x: -92px;
  background-repeat: no-repeat;
}
.card_support {
  padding: 24px;
  border-radius: 16px;
  display: flex;
  flex-direction: row;
  gap: 24px;
  justify-content: flex-start;
  align-items: center;
}
.card_support .card__icon_check {
  width: 32px;
  height: 32px;
  background-image: url("data:image/svg+xml,%3Csvg width='32' height='32' viewBox='0 0 32 32' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M16 2C8.28 2 2 8.28 2 16C2 23.72 8.28 30 16 30C23.72 30 30 23.72 30 16C30 8.28 23.72 2 16 2ZM16 28.6667C9.016 28.6667 3.33333 22.984 3.33333 16C3.33333 9.016 9.016 3.33333 16 3.33333C22.984 3.33333 28.6667 9.016 28.6667 16C28.6667 22.984 22.984 28.6667 16 28.6667ZM21.1387 12.4173C21.3987 12.6773 21.3987 13.1 21.1387 13.36L14.916 19.5827C14.7853 19.7134 14.6147 19.7773 14.444 19.7773C14.2733 19.7773 14.1027 19.712 13.972 19.5827L10.8613 16.472C10.6013 16.212 10.6013 15.7893 10.8613 15.5293C11.1213 15.2693 11.544 15.2693 11.804 15.5293L14.444 18.1694L20.1947 12.4187C20.456 12.1574 20.8773 12.1573 21.1387 12.4173Z' fill='%23FF9933'/%3E%3C/svg%3E%0A");
  background-size: contain;
  background-repeat: no-repeat;
}

.marquee {
  background-color: var(--blue50);
}
.marquee__box {
  padding: 13px var(--indent_xs);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}
.marquee__box p {
  width: max-content;
  display: flex;
  align-items: center;
  text-align: center;
  text-wrap: pretty;
  /* transform: translateX(0);
  animation: marquee-scroll 15s linear infinite; */
}
@keyframes marquee-scroll {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-100%, 0, 0); }
}

@media (min-width: 576px) and (max-width: 991px) { 
  .cards_menu1 > .card > .card__header {
    padding: 32px 24px;
  }
  /* 1 в ряду для 2 */
  .cards_menu2 > .card:last-child:nth-child(2n - 1) {
    grid-column: 2 / span 2;
  }
}

@media (min-width: 576px) { 
  .inline_sm {
    display: inline;
  }
  .txt_center_sm {
    text-align: center;
  }
  .intro {
    margin-top: 64px;
  }
  .cards_menu2 {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }
  .cards_menu2 > .card {
    min-height: 180px;
    padding: 32px 24px 32px 20px;
  }
  .cards_point {
    grid-template-columns: repeat(4, 1fr);
  }
  .card_point {
    padding: 32px;
  }

  .marquee__box {
    padding: 13px var(--indent_sm);
  }
  .marquee__box p {
    font-size: 48px;
  }

  .support {
    grid-template-columns: repeat(4, 1fr);
  }
  .support__pic {
    height: 396px;
    margin-top: 56px;
    grid-column: span 4;
    background-position-x: 0;
  }
  .card_support {
    min-height: 108px;
    padding: 12px 32px;
    border-radius: 24px;
  }
}

@media (min-width: 992px) {
  .show_lg {
		display: block;
	}

  .intro__title {
    font-size: 60px;
  }

  .cards_menu1 {
    grid-template-columns: repeat(8, 1fr);
    gap: 48px 16px;
  }
  .cards_menu1 .cards {
    gap: 16px;
  }
	/* 3 в ряду для 4 */
	.cards_menu1 > .card:nth-last-child(3):nth-child(4n + 1) {
		grid-column-end: 4;
	}
	.cards_menu1 > .card:nth-last-child(2):nth-child(4n - 2) {
		grid-column-end: -4;
	}
	.cards_menu1 > .card:last-child:nth-child(4n - 1) {
		grid-column-end: -2;
	}
	/* --- */
  .cards_menu1 > .card > .card__header {
    border-radius: 16px;
  }
  .cards_menu1 > .card > .card__header > .card__title {
    font-size: 20px;
    font-weight: 500;
  }
  .cards_menu1 > .card > .card__links {
    padding-left: 52px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    list-style: none;
  }

  .cards_menu2 {
    grid-template-columns: repeat(12, 1fr);
  }
  .cards_menu2 > .card:nth-child(-n + 3) {
    grid-column: span 4;
    grid-row: 1;
  }
  .cards_menu2 > .card:nth-child(n + 4) {
    grid-column: span 3;
    grid-row: 2;
  }
  .cards_menu2 > .card > .card__links {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.5s;
  }
  .cards_menu2 > .card > .card__links > li > .card__link {
    position: relative;
    z-index: 2;
  }
  .cards_menu2 > .card:hover > .card__links,
  .cards_menu2 > .card.card_highlight > .card__links {
    opacity: 1;
  }

  .cards_point {
    grid-template-columns: repeat(6, 1fr);
  }
  .card_point {
    min-height: 197px;
  }
  .card_point .card__content {
    flex-direction: row;
  }
  
  .marquee__box {
    padding: 12px var(--indent_lg);
  }

  .support {
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(3, 1fr);
  }
  .support__pic {
    height: 388px;
    margin-top: 0;
    grid-column: 3 / span 2;
    grid-row: 1 / span 3;
    background-position-x: -118px;
  }
  .card_support {
    min-height: 124px;
  }
  .card_support:nth-child(1) { grid-column: 1 / span 2; grid-row: 1; }
  .card_support:nth-child(2) { grid-column: 1 / span 2; grid-row: 2; }
  .card_support:nth-child(3) { grid-column: 1 / span 2; grid-row: 3; }
  .card_support:nth-child(4) { grid-column: 5 / span 2; grid-row: 1; }
  .card_support:nth-child(5) { grid-column: 5 / span 2; grid-row: 2; }
  .card_support:nth-child(6) { grid-column: 5 / span 2; grid-row: 3; }
}