﻿/* Баннеры */

.lavrus-hero {
  position: relative;
  height: 960px;
  min-height: 960px;
  font-family: var(--font-family);
  color: var(--lavrus-tretyakov-ru-white);
  background: var(--lavrus-tretyakov-ru-black);
  overflow: hidden;
}

.lavrus-hero__wrapper,
.lavrus-hero__slide,
.lavrus-hero__slide-link {
  height: 100%;
}

.lavrus-hero__slide {
  position: relative;
  overflow: hidden;
}

.lavrus-hero__slide-link {
  position: relative;
  display: flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.lavrus-hero__slide-link.lavrus-container {
  padding-right: 129px;
  padding-left: 129px;
}

.lavrus-hero__slide-link:focus-visible {
  outline: 2px solid var(--lavrus-tretyakov-ru-white);
  outline-offset: -6px;
}

.lavrus-hero__background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(40px);
  transform: scale(1.12);
}

.lavrus-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
}

.lavrus-hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 170px 0 57px;
  box-sizing: border-box;
}

.lavrus-hero__panel {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 80px;
  padding-bottom: 52px;
  overflow: hidden;
  border-bottom: 1px solid var(--lavrus-tretyakov-ru-white-150);
}

.lavrus-hero__copy {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.lavrus-hero__type {
  font-size: 14px;
  line-height: 16px;
  color: var(--lavrus-tretyakov-ru-silver-chalice);
  text-transform: uppercase;
}

.lavrus-hero__title {
  margin-top: 20px;
  margin-bottom: 20px;
  max-width: 100%;
  font-size: 63px;
  line-height: 1.05;
  font-weight: 400;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.lavrus-hero__title--compact {
  font-size: 53px;
}

.lavrus-hero__title-accent {
  display: inline;
  margin-right: 12px;
  font-family: var(--font3);
  font-style: italic;
  font-weight: 400;
}

.lavrus-hero__title-main {
  display: inline;
  font-family: var(--second-family);
  font-weight: 800;
  letter-spacing: 0;
}

.lavrus-hero__description {
  max-width: 1056px;
  margin-bottom: 0;
  font-family: var(--second-family);
  font-size: 22px;
  line-height: 1.36;
}

.lavrus-hero__picture {
  display: none;
  flex: 0 0 382px;
  width: 382px;
  height: 431px;
  border-radius: 378px 0 378px 0;
  object-fit: cover;
  margin-top: 21px;
}

.lavrus-hero__stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  margin-top: 24px;
}

.lavrus-hero__stat {
  display: flex;
  align-items: center;
  margin-right: 40px;
  margin-bottom: 14px;
  gap: 12px;
  font-size: 13px;
  line-height: 17px;
}

.lavrus-hero__stat-icon {
  display: block;
  flex: none;
  color: var(--lavrus-tretyakov-ru-white);
}

.lavrus-hero__stat-icon--video {
  width: 15px;
  height: 9px;
}

.lavrus-hero__stat-text {
  padding-top: 5px;
  font-size: 13px;
  line-height: 17px;
}

.lavrus-hero__bottom {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  width: 100%;
  margin-top: 58px;
  padding: 46px 0 70px;
}

.lavrus-hero__slide--no-offer .lavrus-hero__panel {
  border-bottom: 0;
  padding-bottom: 0;
}

.lavrus-hero__offer {
  display: flex;
  align-items: center;
  gap: 30px;
}

.lavrus-hero__price {
  display: flex;
  min-width: 152px;
  flex-direction: column;
  gap: 8px;
}

.lavrus-hero__price-label {
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 1px;
  color: var(--lavrus-tretyakov-ru-silver);
  text-transform: uppercase;
}

.lavrus-hero__price-value {
  font-size: 24px;
  line-height: 26px;
}

.lavrus-hero__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 172px;
  padding: 14px 18px;
  border: 1px solid var(--lavrus-tretyakov-ru-white);
  border-radius: 20px;
  font-family: var(--second-family);
  font-size: 14px;
  line-height: 15px;
  text-align: center;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.lavrus-hero__button:hover,
.lavrus-hero__button:focus-visible {
  color: var(--lavrus-tretyakov-ru-black);
  background: var(--lavrus-tretyakov-ru-white);
}

.lavrus-hero__pagination.swiper-pagination {
  bottom: 30px;
  z-index: 3;
}

.lavrus-hero__pagination .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  margin: 0 9px;
  border: 1px solid var(--lavrus-tretyakov-ru-white-200);
  background: transparent;
  opacity: 1;
}

.lavrus-hero__pagination .swiper-pagination-bullet-active {
  border-color: var(--lavrus-tretyakov-ru-white);
  background: var(--lavrus-tretyakov-ru-white);
}

@media (min-width: 1024px) {
  .lavrus-hero__picture {
    display: block;
  }

  .lavrus-hero__copy {
    padding-right: 6%;
  }
}

@media (min-width: 768px) and (max-width: 1359px) {
  .lavrus-hero {
    height: 770px;
    min-height: 770px;
  }

  .lavrus-hero__slide-link.lavrus-container {
    padding-right: 6vw;
    padding-left: 6vw;
  }

  .lavrus-hero__content {
    padding: 70px 0 50px;
  }

  .lavrus-hero__panel {
    gap: 50px;
    padding-bottom: 30px;
  }

  .lavrus-hero__bottom {
    margin-top: 30px;
    padding: 46px 0 50px;
  }
}

@media (min-width: 1024px) and (max-width: 1199px) {
  .lavrus-hero__title {
    font-size: 55px;
    line-height: 53px;
  }

  .lavrus-hero__title--compact {
    font-size: 42px;
    line-height: 44px;
  }

  .lavrus-hero__description {
    font-size: 19px;
    line-height: 30px;
  }

  .lavrus-hero__picture {
    flex-basis: 320px;
    width: 320px;
    height: 360px;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .lavrus-hero {
    height: 680px;
    min-height: 680px;
  }

  .lavrus-hero__panel {
    gap: 0;
  }

  .lavrus-hero__copy {
    padding-right: 0;
  }

  .lavrus-hero__title {
    margin-top: 30px;
    font-size: 55px;
    line-height: 44px;
  }

  .lavrus-hero__title--compact {
    font-size: 42px;
    line-height: 44px;
  }

  .lavrus-hero__description {
    font-size: 16.5px;
    line-height: 26px;
  }

  .lavrus-hero__bottom {
    padding-top: 50px;
  }
}

@media (max-width: 767px) {
  .lavrus-hero {
    height: 541px;
    min-height: 541px;
  }

  .lavrus-hero__slide-link {
    align-items: stretch;
  }

  .lavrus-hero__slide-link.lavrus-container {
    padding-right: 23px;
    padding-left: 23px;
  }

  .lavrus-hero__background {
    min-width: 100%;
    min-height: 541px;
    filter: blur(40px);
    transform: none;
  }

  .lavrus-hero__content {
    justify-content: flex-start;
    padding: 30px 0 0;
  }

  .lavrus-hero__panel {
    flex: 0 0 380px;
    height: 380px;
    min-height: 380px;
    max-height: 380px;
    gap: 0;
    padding-bottom: 30px;
    overflow: hidden;
  }

  .lavrus-hero__picture {
    display: none;
  }

  .lavrus-hero__type {
    padding-top: 30px;
    margin-top: 0;
    font-size: 13px;
    line-height: 16px;
  }

  .lavrus-hero__title,
  .lavrus-hero__title--compact {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-top: 15px;
    margin-bottom: 20px;
    font-size: 30px;
    line-height: 30px;
    letter-spacing: 0;
  }

  .lavrus-hero__title-accent {
    display: block;
    margin-right: 0;
    font-size: 30px;
    line-height: 30px;
  }

  .lavrus-hero__title-main {
    display: block;
    font-size: 24px;
    line-height: 30px;
  }

  .lavrus-hero__description {
    margin-bottom: 15px;
    font-size: 15px;
    line-height: 20px;
  }

  .lavrus-hero__stats {
    margin-top: 0;
    padding: 0 40px 14px 0;
    flex-wrap: wrap;
    align-content: center;
  }

  .lavrus-hero__stat {
    margin-right: 40px;
    margin-bottom: 0;
    gap: 12px;
  }

  .lavrus-hero__stat-text {
    padding-top: 10px;
    font-size: 13px;
    line-height: 17px;
  }

  .lavrus-hero__bottom {
    flex-shrink: 0;
    margin-top: 0;
    padding: 21px 0 22px;
  }

  .lavrus-hero__slide--no-offer .lavrus-hero__panel {
    flex: 0 1 auto;
    height: auto;
    min-height: 0;
    max-height: none;
    border-bottom: 0;
    padding-bottom: 0;
  }

  .lavrus-hero__offer {
    width: 100%;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0;
  }

  .lavrus-hero__price {
    min-width: 0;
    padding-right: 30px;
    gap: 0;
  }

  .lavrus-hero__price-label {
    font-size: 12px;
    line-height: 17.64px;
    letter-spacing: 0.9px;
  }

  .lavrus-hero__price-value {
    font-size: 21px;
    line-height: 23px;
  }

  .lavrus-hero__button {
    min-width: 126px;
    padding: 12px 16px;
    font-size: 12px;
    line-height: 13, 5px;
  }

  .lavrus-hero__pagination.swiper-pagination {
    bottom: 20px;
  }

  .lavrus-hero__pagination .swiper-pagination-bullet {
    margin: 0 7px;
  }
}

/* Новое на Лаврусе */

.lavrus-new {
  position: relative;
  padding: 122px 0 0;
  isolation: isolate;
}

.lavrus-new__background {
  position: absolute;
  top: -26vw;
  left: 0;
  z-index: -1;
  display: block;
  width: 80vw;
  height: auto;
  pointer-events: none;
}

.lavrus-new__title {
  margin-bottom: 50px;
  font-weight: 800;
}

.lavrus-new__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 49px;
  margin-bottom: 30px;
}

@media (min-width: 768px) and (max-width: 1023px) {
  .lavrus-new {
    padding: 40px 0 0;
  }

  .lavrus-new__title {
    margin-bottom: 35px;
  }

  .lavrus-new__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px 2%;
  }
}

@media (min-width: 580px) and (max-width: 767px) {
  .lavrus-new {
    padding: 30px 0 0;
  }

  .lavrus-new__title {
    margin-bottom: 25px;
  }

  .lavrus-new__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 4%;
  }
}

@media (max-width: 579px) {
  .lavrus-new {
    padding: 30px 0;
  }

  .lavrus-new__title {
    margin-bottom: 25px;
  }

  .lavrus-new__grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* Курсы и циклы лекций */

.lavrus-courses {
  padding: 70px 0;
  background-color: var(--lavrus-tretyakov-ru-white);
}

.lavrus-courses__slider {
  width: 100%;
  overflow: hidden;
}

.lavrus-course {
  display: grid;
  width: 100%;
  min-height: 780px;
  flex-shrink: 0;
  grid-template-columns: 51.5% 48.5%;
  background-color: var(--lavrus-tretyakov-ru-white);
}

.lavrus-course__image-wrapper {
  position: relative;
  min-width: 0;
  height: 765px;
  margin-right: 50px;
  border-radius: 10px;
  overflow: hidden;
  background-color: var(--color-grey-95);
}

.lavrus-course__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lavrus-course__content {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding-top: 2px;
}

.lavrus-course__title {
  font-family: var(--second-family);
  font-size: 42px;
  font-weight: 400;
  line-height: 48px;
  color: var(--lavrus-tretyakov-ru-black);
}

.lavrus-course__title span {
  display: block;
}

.lavrus-course__title-italic {
  margin-bottom: 11px;
  font-family: var(--font3);
  font-size: 49px;
  font-style: italic;
  line-height: 48px;
  color: var(--lavrus-tretyakov-ru-mine-shaft);
}

.lavrus-course__type {
  margin-top: 32px;
  font-family: var(--second-family);
  font-size: 13px;
  font-weight: 800;
  line-height: 13px;
  text-transform: uppercase;
  color: var(--lavrus-tretyakov-ru-black);
}

.lavrus-course__description {
  display: -webkit-box;
  max-width: 850px;
  margin-top: 27px;
  overflow: hidden;
  font-family: var(--font-family);
  font-size: 21px;
  line-height: 30px;
  color: var(--lavrus-tretyakov-ru-mine-shaft);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.lavrus-course__purchase {
  display: flex;
  align-items: center;
  gap: 34px;
  margin-top: 27px;
}

.lavrus-course__price-label,
.lavrus-course__details-title {
  font-family: var(--font-family);
  font-size: 14px;
  line-height: 16px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--lavrus-tretyakov-ru-dusty-gray);
}

.lavrus-course__price {
  margin-top: 3px;
  font-family: var(--font-family);
  font-size: 24px;
  line-height: 32px;
  color: var(--lavrus-tretyakov-ru-black);
}

.lavrus-course__details {
  display: grid;
  grid-template-columns: 165px 1fr;
  gap: 30px;
  margin-top: 38px;
  padding-top: 31px;
  border-top: 1px solid var(--lavrus-tretyakov-ru-mercury);
}

.lavrus-course__details--compact {
  margin-top: 38px;
}

.lavrus-course__stat {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 15px;
  font-family: var(--font-family);
  font-size: 13px;
  line-height: 15px;
  color: var(--lavrus-tretyakov-ru-mine-shaft);
}

.lavrus-course__stat svg {
  flex: 0 0 auto;
  fill: currentColor;
}

.lavrus-course__stat-span {
  padding-top: 5px;
}

.lavrus-course__authors {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  list-style: none;
  font-family: var(--font-family);
  font-size: 15px;
  line-height: 16px;
  color: var(--lavrus-tretyakov-ru-mine-shaft);
}

.lavrus-course__authors-link {
  color: inherit;
  text-decoration: none;
}

.lavrus-course__authors-link:hover,
.lavrus-course__authors-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.lavrus-courses__navigation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 17px;
  min-height: 25px;
  margin-top: 18px;
}

.lavrus-courses__arrow {
  display: grid;
  width: 28px;
  height: 24px;
  padding: 0;
  border: 0;
  place-items: center;
  color: var(--lavrus-tretyakov-ru-tundora);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

.lavrus-courses__arrow svg {
  display: block;
  fill: currentColor;
}

.lavrus-courses__arrow:hover,
.lavrus-courses__arrow:focus-visible {
  color: var(--lavrus-tretyakov-ru-black);
  outline: none;
}

.lavrus-courses__arrow.swiper-button-disabled {
  opacity: 0.35;
  cursor: default;
}

.lavrus-courses__counter {
  min-width: 45px;
  font-family: var(--second-family);
  font-size: 17px;
  line-height: 24px;
  text-align: center;
  color: var(--lavrus-tretyakov-ru-black);
}

.lavrus-courses__counter-total {
  color: var(--lavrus-tretyakov-ru-dusty-gray);
}

@media (min-width: 768px) and (max-width: 1023px) {
  .lavrus-courses {
    padding: 70px 0 65px;
  }

  .lavrus-course {
    min-height: 650px;
    grid-template-columns: 46% 54%;
  }

  .lavrus-course__image-wrapper {
    height: 620px;
    margin-right: 30px;
  }

  .lavrus-course__title {
    font-size: 32px;
    line-height: 37px;
  }

  .lavrus-course__title-italic {
    margin-bottom: 6px;
    font-size: 38px;
    line-height: 38px;
  }

  .lavrus-course__type {
    margin-top: 24px;
  }

  .lavrus-course__description {
    margin-top: 20px;
    font-size: 18px;
    line-height: 25px;
  }

  .lavrus-course__purchase {
    margin-top: 22px;
  }

  .lavrus-course__details {
    grid-template-columns: 120px 1fr;
    gap: 18px;
    margin-top: 28px;
    padding-top: 24px;
  }

  .lavrus-course__authors {
    font-size: 14px;
  }
}

@media (max-width: 767px) {
  .lavrus-courses {
    padding: 0 0 30px;
  }

  .lavrus-course {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .lavrus-course__image-wrapper {
    width: 100%;
    height: 380px;
    margin: 0 0 28px;
  }

  .lavrus-course__content {
    padding: 0 8px;
  }

  .lavrus-course__title {
    font-size: 29px;
    line-height: 34px;
  }

  .lavrus-course__title-italic {
    margin-bottom: 5px;
    font-size: 35px;
    line-height: 36px;
  }

  .lavrus-course__type {
    margin-top: 22px;
  }

  .lavrus-course__description {
    margin-top: 18px;
    font-size: 17px;
    line-height: 24px;
  }

  .lavrus-course__purchase {
    align-items: flex-end;
    justify-content: space-between;
    gap: 15px;
    margin-top: 22px;
  }

  .lavrus-course__purchase .lavrus-button {
    padding-right: 18px;
    padding-left: 18px;
    font-size: 12px;
  }

  .lavrus-course__details {
    grid-template-columns: 115px 1fr;
    gap: 16px;
    margin-top: 30px;
    padding-top: 24px;
  }

  .lavrus-course__authors {
    font-size: 14px;
    line-height: 16px;
  }

  .lavrus-courses__navigation {
    margin-top: 25px;
  }
}

@media (max-width: 479px) {
  .lavrus-course__image-wrapper {
    height: 300px;
  }

  .lavrus-course__purchase {
    align-items: flex-start;
    flex-direction: column;
  }

  .lavrus-course__details {
    grid-template-columns: 1fr;
  }

  .lavrus-course__details-column + .lavrus-course__details-column {
    margin-top: 4px;
  }
}

/* Тесты */

.lavrus-tests {
  position: relative;
  padding: 15px 0 70px;
  overflow: hidden;
  isolation: isolate;
  background-color: var(--lavrus-tretyakov-ru-white);
}

.lavrus-tests__title {
  margin-bottom: 16px;
  font-weight: 700;
}

.lavrus-tests__subtitle {
  margin-bottom: 28px;
  font-family: var(--font-family);
  font-size: 22px;
  line-height: 29px;
  text-align: center;
  color: var(--lavrus-tretyakov-ru-tundora);
}

.lavrus-tests__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px;
}

.lavrus-test-card {
  display: flex;
  min-width: 0;
  padding-bottom: 30px;
  flex-direction: column;
  color: var(--lavrus-tretyakov-ru-black);
  text-align: center;
  text-decoration: none;
}

.lavrus-test-card__image-wrapper {
  position: relative;
  width: 100%;
  height: 25vw;
  margin-bottom: 30px;
  border-radius: 10px;
  overflow: hidden;
  background-color: var(--color-grey-95);
}

.lavrus-test-card__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s ease;
}

.lavrus-test-card__title {
  font-family: var(--font-family);
  font-size: 22px;
  font-weight: 700;
  line-height: 29px;
  text-align: center;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.lavrus-test-card:hover .lavrus-test-card__title,
.lavrus-test-card:focus-visible .lavrus-test-card__title {
  text-decoration: none;
}

.lavrus-test-card:focus-visible {
  outline: 2px solid var(--lavrus-tretyakov-ru-black);
  outline-offset: 4px;
}

.lavrus-tests__more {
  display: flex;
  justify-content: center;
}

.lavrus-tests__background {
  position: absolute;
  z-index: -1;
  bottom: 1vw;
  left: 49vw;
  width: 36.43vw;
  height: auto;
  pointer-events: none;
}

@media (min-width: 768px) and (max-width: 1023px) {
  .lavrus-tests {
    padding-top: 40px;
    padding-bottom: 40px;
  }
}

@media (max-width: 767px) {
  .lavrus-tests {
    padding: 15px 0 30px;
  }
}

@media (max-width: 579px) {
  .lavrus-tests__grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .lavrus-test-card {
    margin-bottom: 10px;
  }

  .lavrus-test-card__image-wrapper {
    height: 55vw;
    margin-bottom: 20px;
  }

  .lavrus-tests__background {
    bottom: 80px;
    left: 30vw;
    width: 90vw;
  }
}

/* Популярные материалы */

.lavrus-popular {
  position: relative;
  padding: 70px 0;
  overflow: hidden;
  isolation: isolate;
  background-color: var(--lavrus-tretyakov-ru-white);
}

.lavrus-popular__title {
  margin-bottom: 100px;
  padding-top: 30px;
  font-weight: 800;
}

.lavrus-popular__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 49px;
  margin-bottom: 30px;
}

.lavrus-popular__more {
  display: flex;
  justify-content: center;
}

.lavrus-popular__background {
  position: absolute;
  z-index: -1;
  top: -3.5vw;
  left: 23vw;
  width: 54.22vw;
  height: auto;
  pointer-events: none;
}

@media (min-width: 768px) and (max-width: 1023px) {
  .lavrus-popular {
    padding: 40px 0;
  }

  .lavrus-popular__title {
    margin-bottom: 35px;
  }

  .lavrus-popular__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px 2%;
  }
}

@media (max-width: 767px) {
  .lavrus-popular {
    padding: 30px 0;
  }

  .lavrus-popular__title {
    margin-bottom: 25px;
    padding-top: 15px;
  }
}

@media (min-width: 580px) and (max-width: 767px) {
  .lavrus-popular__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 4%;
  }
}

@media (max-width: 579px) {
  .lavrus-popular__grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

@media (max-width: 479px) {
  .lavrus-popular__background {
    top: 100px;
    left: 0;
    width: 120vw;
  }
}
