@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 300;
  src: local("Roboto"), url("../static/fonts/Roboto-Light.ttf");
}

@font-face {
  font-family: "Roboto";
  font-style: italic;
  font-weight: 300;
  src: local("Roboto"), url("../static/fonts/Roboto-LightItalic.ttf");
}

@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 400;
  src: local("Roboto"), url("../static/fonts/Roboto-Regular.ttf");
}

@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 500;
  src: local("Roboto"), url("../static/fonts/Roboto-Medium.ttf");
}

@font-face {
  font-family: "Roboto";
  font-style: italic;
  font-weight: 500;
  src: local("Roboto"), url("../static/fonts/Roboto-MediumItalic.ttf");
}

@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 700;
  src: local("Roboto"), url("../static/fonts/Roboto-Bold.ttf");
}

@font-face {
  font-family: "Zen Maru Gothic";
  font-style: normal;
  font-weight: 400;
  src: local("ZenMaruGothic"), url("../static/fonts/ZenMaruGothic-Regular.ttf");
}

* {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

#modal-img {
  touch-action: none;          /* Отключает системное масштабирование и скролл на картинке */
  user-select: none;           /* Запрещает выделение */
  -webkit-user-drag: none;     /* Запрещает стандартное перетаскивание в Safari/Chrome */
}

html {
  height: -webkit-fill-available;
  margin: 0;
  padding: 0;
}

 body {
  overscroll-behavior-y: none;
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

body {
  font-family: "Roboto", sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.55;
  color: #333333;
  background-color: #fff;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  border: 0;
  padding: 0;

  white-space: nowrap;
  clip-path: inset(100%);
  clip: rect(0 0 0 0);
  overflow: hidden;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
}

/*  Navigation  */

.main-nav {
  width: 100%;
  padding: 20px 0;
  display: flex;
  justify-content: start;
  align-items: center;
  background-color: inherit;
  z-index: 2;
}

.main-nav__wrapper {
  display: flex;
  align-items: center;
}

.main-nav__list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  list-style: none;
  max-width: 800px;
}

.navigation-logo {
  display: flex;
  max-height: 40px;
  margin-right: 20px;
}

.site-list__item {
  text-align: center;
}

.site-list__link {
  position: relative;
  display: block;
  font-weight: 400;
  text-decoration: none;
  color: #f6f4f7;
}

.site-list__link::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 1px;
  bottom: -5px;
  left: 0;
  z-index: 5;
  background: #f6f4f7;
  opacity: 0;
  transition: opacity 0.3s linear;
}

.site-list__link:hover::after {
  opacity: 1;
}

.menu__mobile {
  display: none;
  position: relative;
  text-decoration: none;
  cursor: pointer;
  z-index: 99;
}

.menu__mobile.active .menu__mobile-icon {
  background-color: transparent;
}

.menu__mobile.active .menu__mobile-icon:before {
  top: 0;
  transform: rotate(-45deg);
}

.menu__mobile.active .menu__mobile-icon:after {
  top: 0;
  transform: rotate(45deg);
}

.menu__mobile-icon {
  position: relative;
  width: 30px;
  height: 2px;
  background-color: #000000;
}

.menu__mobile-icon:before,
.menu__mobile-icon:after {
  content: "";
  position: absolute;
  display: block;
  width: 100%;
  height: 2px;
  left: 0;
  z-index: 5;
  transition: all 0.3s ease-in-out;
  background-color: #000000;
}

.menu__mobile-icon:before {
  top: 9px;
}

.menu__mobile-icon:after {
  top: -9px;
}


/* Header */

.page-header {
  margin: 0 auto;
  width: 100%;
  background-image: linear-gradient(to right, black 0, transparent 80%),
                    url("../static/images/Liza-main.jpg");
  background-size: cover;
  background-position-y: 45%;
}

.page-header__wrapper {
  width: 450px;
  min-height: 700px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: start;
  box-sizing: border-box;
}

.header__title {
  margin: 0 0 20px;
  display: block;
  font-size: 60px;
  line-height: 60px;
  font-weight: 700;
  font-family: "Roboto", sans-serif;
  text-transform: uppercase;
  color: #bfc8da;
  z-index: 2;
}

.header__slogan {
  margin: 0;
  max-width: 350px;
  font-weight: 500;
  font-size: 20px;
  color: #bfc8da;
  z-index: 2;
}

/*  About  */

.about {
  margin: 25px auto;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.about__title {
  display: block;
  margin: 0 auto 10px;
  font-size: 52px;
  line-height: 56px;
  text-transform: uppercase;
  font-family: "Roboto", sans-serif;
}

.about__wrapper {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
}

.about__work {
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.about__subtitle {
  margin: 0 auto 10px;
  width: 400px;
  min-height: 65px;
  text-align: center;
  font-size: 32px;
  font-weight: 400;
}

.work__list {
  margin: 0 auto;
  padding: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  list-style: none;
}

.work__item, .rules__item {
  transition: background-color 0.3s ease;
}

.work__item-title, .rules__subtitle {
  transition: color 0.3s ease;
}

.work__item:hover, .rules__item:hover {
  background-color: rgba(179, 138, 105, 0.05); /* Легкий оттенок основного цвета */
}

.work__item:hover .work__item-title,
.rules__item:hover .rules__subtitle {
  color: #b38a69; /* Заголовок окрашивается в основной цвет */
}

.work__item:hover .work__item-button::before,
.work__item:hover .work__item-button::after {
  background-color: #6c523e;
}

.work__item {
  display: flex;
  flex-direction: column;
  text-align: start;
  border-bottom: 2px solid #b38a69;
  position: relative;
}

.work__item-title {
  margin: 10px 0;
  font-size: 24px;
  font-weight: 500;
}

.work__item-text,
.rules__item-text {
  white-space: pre-line;
  text-align: justify;
  padding: 15px 20px;
  max-height: 500px;
  opacity: 1;
  transition: all 0.5s ease-in-out;
}

.work__item-text--hidden .work__item-text,
.rules__item-text--hidden .rules__item-text {
  padding: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
}

.work__item-button,
.rules__item-button {
  width: 100%;
  height: 100%;
  position: absolute;
  z-index: 1;
  background-color: inherit;
  border: none;
  cursor: pointer;
}

.work__item-button--closed::before,
.work__item-button--closed::after,
.rules__item-button--closed::before,
.rules__item-button--closed::after {
  content: "";
  display: block;
  position: absolute;
  width: 20px;
  height: 2px;
  top: 29px;
  right: 17px;
  background-color: #b38a69;
  transition: 0.5s;
}

.work__item-button--opened::before,
.work__item-button--opened::after,
.rules__item-button--opened::before,
.rules__item-button--opened::after {
  content: "";
  display: block;
  position: absolute;
  width: 20px;
  height: 2px;
  top: 29px;
  right: 17px;
  background-color: #b38a69;
  transform: rotate(-45deg);
  transition: 0.5s;
}

.work__item-button--closed::after,
.rules__item-button--closed::after {
  transform: rotate(90deg);
  transition: 0.5s;
}

.work__item-button--opened::after,
.rules__item-button--opened::after {
  transform: rotate(45deg);
  transition: 0.5s;
}

.about__education {
  display: flex;
  flex-direction: column;
  text-align: center;
  margin: 0 auto;
  width: 250px;
}

.about__education-text {
  margin: 0;
}

.about__experience {
  margin: 50px auto 0;
  font-size: 20px;
  font-weight: 500;
}

/*  Article  */

.article {
  width: 100%;
  background: #bcb6bb;
}

.article__wrapper {
  margin: 0 auto;
  max-width: 1200px;
  display: flex;
  justify-content: space-around;
}

.article__image {
  margin: 0 auto;
  display: flex;
  width: 100%;
}

.article__image img {
  max-width: 380px;
}

.article__content {
  max-width: 620px;
  padding: 0 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  justify-content: center;
  text-align: left;
}

.article__content-text {
  white-space: pre-line;
  text-align: justify;
}

/*  Dividers  */

.divider {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  clip-path: inset(0);
}

.divider::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  z-index: -1;
  /* Аппаратное ускорение */
  will-change: transform;
  transform: translateZ(0);
}

.divider__1::before { background-image: url("../static/images/Liza-divider-1.jpg"); }
.divider__2::before { background-image: url("../static/images/Liza-divider-2.jpg"); }
.divider__3::before { background-image: url("../static/images/Liza-divider-3.jpg"); }
.divider__4::before { background-image: url("../static/images/Liza-divider-4.jpg"); }
.divider__5::before { background-image: url("../static/images/Liza-divider-5.jpg"); }

/*  Themes  */

.themes {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 0 auto;
  align-items: center;
  background: linear-gradient(to right, #e9edee 60%, #747472 80%);
}

.themes__wrapper {
  max-width: 1200px;
  display: flex;
  justify-content: space-between;
}

.themes__article {
  text-align: justify;
  margin: 0;
  padding: 120px 20px 15px;
  max-width: 520px;
  font-size: 20px;
}

.themes__photo {
  display: block;
  overflow: hidden;
}

/*  Education */

.education {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 25px auto;
  align-items: center;
  scroll-margin-top: 100px;
  overflow: hidden;
}

.education__title {
  margin: 0;
  padding: 0;
}

.education__wrapper {
  display: flex;
  max-width: 1200px;
  min-height: 600px;
}

.education__content {
  margin-right: 50px;
  width: 600px;
  display: flex;
  align-items: center;
  white-space: pre-line;
}

.education__text {
  text-align: left;
}

.slider-education {
  min-width: 600px;
  min-height: 600px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  position: relative;
}

.slider-education__slide {
  height: 500px;
  display: block;
  box-sizing: content-box;
  position: absolute;
  transition: 0.5s;
}

.slider__image {
  object-fit: contain;
  width: 100%;
  height: 100%;
}

.slider-education__slider-nav {
  display: flex;
  justify-content: space-between;
  position: absolute;
  top: calc(50% - 20px);
  left: -50px;
  right: -50px;
  z-index: 1;
}

.education-nav__slider-button,
.slider-nav__slider-button {
  position: relative;
  display: inline-block;
  vertical-align: middle;
  box-sizing: border-box;
  padding: 0;
  width: 22px;
  height: 41px;
  border: 0;
  font-style: inherit;
  background-color: transparent;
  cursor: pointer;
}

.education-nav__slider-button::before {
  content: "";
  position: absolute;
  top: 50%;
  width: 27px;
  height: 27px;
  border-bottom: none;
  border-left: none;
  border-top: 2px solid black;
  border-right: 2px solid black;
  transition: all 0.3s ease;
}

.education-nav__slider-button:hover::before {
  border-color: #b38a69;
}

.education-nav__slider-button--prev::before {
  left: 7px;
  transform: translateY(-50%) rotate(225deg);
}

.education-nav__slider-button--next::before {
  right: 7px;
  transform: translateY(-50%) rotate(45deg);
}

/*  Price  */

.price {
  width: 100%;
  background: #e9edee;
  scroll-margin-top: 100px;
}

.price__wrapper {
  max-width: 1200px;
  padding: 25px 20px;
  box-sizing: border-box;
}

.price__header {
  margin: 0 auto 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.price__title {
  margin: 0;
  padding: 0;
}

.price__list {
  max-width: 900px;
  margin: 0 auto;
  padding: 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  list-style: none;
}

.price__item {
  max-width: 405px;
  display: flex;
}

.price__item-icon {
  margin: 30px 0 0 50px;
}

.price__text {
  white-space: pre-line;
}

/*  Rules  */

.rules {
  width: 100%;
  margin: 25px auto;
  scroll-margin-top: 100px;
}

.rules__header {
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.rules__title {
  margin: 0;
}

.rules__slogan {
  font-size: 20px;
}

.rules__list {
  margin: 20px auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  list-style: none;
  justify-content: space-between;
}

.rules__item {
  display: flex;
  flex-direction: column;
  text-align: start;
  border-bottom: 2px solid #b38a69;
  position: relative;
}

.rules__subtitle {
  margin: 10px 0;
  font-size: 24px;
  font-weight: 500;
}

/*  questions  */

.questions {
  margin-top: 25px;
  display: flex;
  flex-direction: column;
  scroll-margin-top: 100px;
  overflow-x: hidden;
}

.questions__title {
  margin: 0 auto 20px;
}

.slider-questions {
  width: 920px;
  height: 400px;
  margin: 20px auto;
  position: relative;
  display: flex;
  text-align: center;
}

.slider-questions__title {
  margin-bottom: 150px;
}

.slider-questions__slide {
  width: 220px;
  height: 300px;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  text-align: start;
  justify-content: space-evenly;
  box-sizing: border-box;
  border: 2px solid white;
  border-radius: 20px;
  transition: 0.5s;
  background: #f6f5fa url("../static/images/question-icon.svg") center 15px/12% no-repeat;
  position: absolute;
  top: 0;
  left: calc(50% - 100px);
}

.slider-questions__quote {
  margin: 0;
  display: block;
}

.hidden-text {
  display: none;
}

.slider-questions__quote-text {
  text-align: center;
  margin: 0;
  padding: 0;
  font-size: 16px;
  font-family: "Zen Maru Gothic", sans-serif;
  font-weight: 400;
}

.slider-questions__quote-text::before {
  content: "\00ab";
  transition: opacity 0.4s ease-in-out;
}

.slider-questions__quote-text::after {
  content: "\00bb";
  transition: opacity 0.4s ease-in-out;
}

.modal--show .slider-questions__quote-text::before,
.modal--show .slider-questions__quote-text::after {
  opacity: 0;
}

.slider-questions__quote-link {
  margin-top: 20px;
  display: inline-block;
  align-self: center;
  font-size: 15px;
  line-height: 15px;
  text-decoration: none;
  color: #b38a69;
  text-align: end;
  transition: all 0.3s ease;
}

.slider-questions__quote-link:hover {
  color: #83654DFF;
  transform: translateX(-5px);
}

.slider-questions__quote-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: #83654DFF;
  transition: width 0.3s ease;
}

.slider-questions__quote-link:hover::after {
  width: 100%;
}

.slider-nav {
  display: flex;
  justify-content: space-between;
}

.slider-questions__slider-nav {
  position: absolute;
  z-index: 1;
  display: flex;
  top: calc(50% - 41px);
  left: -50px;
  right: -80px;
}

.slider-nav__slider-button::before {
  content: "";
  position: absolute;
  top: 50%;
  width: 27px;
  height: 27px;
  border-bottom: none;
  border-left: none;
  border-top: 2px solid black;
  border-right: 2px solid black;
  transition: all 0.3s ease;
}

.slider-nav__slider-button:hover::before {
  border-color: #b38a69;
}

.slider-nav__slider-button--prev::before {
  left: 7px;
  transform: translateY(-50%) rotate(225deg);
}

.slider-nav__slider-button--next::before {
  right: 7px;
  transform: translateY(-50%) rotate(45deg);
}

.slider-questions__full {
  display: none;
  justify-content: center;
  position: relative;
  max-width: 380px;
  z-index: 100;
}

.slider-questions__slide_full {
  width: 100%;
  min-height: 400px;
  background-color: #F6F5FAFF;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  text-align: start;
  justify-content: space-around;
  box-sizing: border-box;
  border: 2px solid white;
  border-radius: 20px;
}

.page__navigation {
  position: fixed;
  bottom: 50px;
  right: 50px;
  z-index: 100;
}

.page__navigation a {
  display: flex;
}

/*  Footer  */

.footer__wrapper {
  width: 100%;
  height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  background: url("../static/images/Liza-footer.jpg") center/70% no-repeat;
  background-size: cover;
}

.footer-contacts {
  text-align: center;
  display: flex;
  flex-direction: column;
  padding-top: 25px;
  font-size: 20px;
  color: white;
}

.footer-phone {
  color: #FFFFFF;
  margin-left: 20px;
}

.footer-contacts_links {
  display: flex;
  justify-content: center;
  font-weight: bold;
}

.footer-social__list {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  margin-bottom: 20px;
  padding: 0;
  max-width: 400px;
}

.social-list__item {
  margin-left: 20px;
}

.social-list__item:first-child {
  margin-left: 0;
}

.social-list__link {
  display: block;
  transition: transform 0.3s ease, filter 0.3s ease;
  line-height: 0;
}

.social-list__link:hover {
  transform: translateY(-5px) scale(1.1);
  filter: brightness(1.1);
}

.social-list__link:active {
  transform: translateY(-2px) scale(1);
  filter: brightness(0.9);
}

.footer-info {
  position: relative;
  padding: 10px;
  box-sizing: border-box;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 12px;
  color: #ffffff;
}

.footer-info svg {
  position: absolute;
  right: 80px;
}

.footer-rights {
  position: absolute;
  bottom: 10px;
  right: 20px;
  font-size: 12px;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  align-items: center;
  justify-content: center;
  cursor: zoom-out;

  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.modal--show {
  opacity: 1;
}

.modal__content {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  transform: scale(0.8);
  transition: transform 0.3s ease-out;
}

.modal--show .modal__content {
  transform: scale(1);
}

.modal__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 50px;
  cursor: pointer;
  padding: 20px;
  user-select: none;
  transition: 0.3s;
}
.modal__arrow:hover { color: #ccc; }
.modal__arrow--prev { left: 20px; }
.modal__arrow--next { right: 20px; }
