html {
  scroll-behavior: smooth;
  scroll-padding-top: 135px;
  scrollbar-color: #7f7f7f #f8f8f8;
}

html::-webkit-scrollbar {
  width: 8px;
}

.hidden {
  display: none !important;
}

body {
  margin: 0;
  background-color: #f8f8f8;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

ol,
ul,
li {
  list-style: none;
}

button {
  background-color: transparent;
  border: none;
  cursor: pointer;
}

a {
  text-decoration: none;
  color: black;
}

section {
  margin-bottom: 80px;
}

.header-container {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(180, 185, 183, 0.95);
  backdrop-filter: blur(10px);
  position: fixed;
  z-index: 9000;
  top: 0;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 130px;
  gap: 50px;
  padding: 15px 5vw;
}

.logo-link {
  display: flex;
  align-items: center;
  height: 90%;
  transition: transform 0.3s ease;
}

.logo-link:hover {
  transform: scale(1.05);
}

.logo {
  height: 100%;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.nav-container {
  display: grid;
  row-gap: 20px;
  column-gap: 40px;
  width: 100%;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

.nav-link {
  font-family: Montserrat;
  font-weight: 600;
  font-size: 22px;
  line-height: 1.2;
  text-align: center;
  width: fit-content;
  position: relative;
  transition: all 0.3s ease;
  color: #333;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: #ff0000;
  transition: width 0.3s ease;
}

.nav-link:hover {
  line-height: 1.2;
  color: #000;
  transform: translateY(-2px);
}

.nav-link:hover::after {
  width: 100%;
}

.left-link {
  text-align: right;
  margin-left: auto;
}

.right-link {
  text-align: left;
}

.contacts-container {
  padding-top: 5px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 10px;
  font-family: Montserrat;
  font-size: 20px;
  font-weight: 400;
  text-align: right;
}

.contacts-container a {
  transition: all 0.3s ease;
  position: relative;
  color: #333;
}

.contacts-container a:hover {
  color: #000;
  transform: translateX(-5px);
}

.phone {
  font-weight: 500;
  font-size: 21px;
}

.email {
  font-size: 19px;
  position: relative;
}

.email::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: #ff0000;
  transition: width 0.3s ease;
}

.email:hover::after {
  width: 100%;
}

main {
  margin-top: 130px;
}

.aside-navbar {
  position: fixed;
  display: flex;
  flex-direction: column;
  padding-top: 15vh;
}

.face-section {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  height: calc(100vh - 130px);
  background: no-repeat center;
  background-size: cover;
  position: relative;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.face-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0) 30%,
    rgba(0, 0, 0, 0) 70%,
    rgba(0, 0, 0, 0.4) 100%
  );
}

.slogan-container {
  align-self: flex-end;
  margin: 12vh calc(30% - 100px) 0 15%;
  display: flex;
  flex-direction: column;
  align-items: end;
  position: relative;
  z-index: 1;
}

.slogan-container h1 {
  text-align: end;
  font-family: Tenor Sans;
  font-size: 50px;
  font-weight: 400;
  margin-bottom: 10px;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  transform: translateX(50px);
  opacity: 0;
  animation: slideIn 0.8s ease-out forwards;
}

.slogan-container p {
  text-align: end;
  font-family: Tenor Sans;
  font-size: 28px;
  font-weight: 400;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  transform: translateX(50px);
  opacity: 0;
  animation: slideIn 0.8s ease-out 0.3s forwards;
}

@keyframes slideIn {
  from {
    transform: translateX(50px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fadeUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.advantages-section {
  display: flex;
  justify-content: center;
  padding: 40px 20px;
}

.advantages-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 75%;
  gap: 30px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.advantage {
  font-family: Montserrat;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.7;
  text-align: center;
  padding: 25px 40px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 15px;
  transition: all 0.3s ease;
  position: relative;
  border-left: 4px solid transparent;
}

.advantage:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: translateX(10px);
  border-left: 4px solid #ff0000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.advantages-separator {
  position: relative;
  width: 100%;
  height: 2px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(255, 0, 0, 0.3),
    transparent
  );
  margin: 10px 0;
}

.advantages-separator:before {
  content: "•";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: #ff0000;
  font-size: 24px;
  background: white;
  padding: 0 20px;
}

.gallery-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 80%;
  margin: 0 auto 80px;
  padding: 40px 0;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: visible;
}

h2 {
  font-family: Montserrat;
  font-size: 44px;
  font-weight: 600;
  text-align: center;
  margin-left: 50px;
  margin-right: 50px;
  margin-bottom: 50px;
  color: #333;
  position: relative;
}

.gallery {
  position: relative;
  width: 100%;
  height: 60vh;
}

.gallery-container {
  display: flex;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 20px 0;
  position: relative;
}

.gallery-container::before,
.gallery-container::after {
  content: "";
  position: absolute;
  top: 0;
  width: 150px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.gallery-container::before {
  left: 0;
  background: linear-gradient(to right, rgba(253, 253, 253, 0.8), transparent);
}

.gallery-container::after {
  right: 0;
  background: linear-gradient(to left, rgba(253, 253, 253, 0.8), transparent);
}

.gallery-item {
  margin: 0 20px;
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0.6;
  cursor: pointer;
}

.gallery-item:hover {
  transform: scale(0.9);
}

.gallery-item.slick-current {
  transform: scale(0.98);
  opacity: 1;
}

.gallery-item.slick-current:hover {
  transform: scale(1);
}

.gallery-item.not-active {
  transform: scale(0.87);
  opacity: 0.4;
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item.not-active:hover {
  transform: scale(0.9);
  opacity: 0.6;
}

.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  border-radius: 15px;
  transition: transform 0.4s ease;
}

.slick-list {
  height: 100%;
  border-radius: 15px;
  overflow: hidden;
  top: -15px;
}

.slick-track {
  height: 100%;
  display: flex;
  align-items: center;
}

.slick-slide {
  height: 100%;
  transition: all 0.4s ease;
  opacity: 0.6;
}

.slick-slide.slick-current {
  z-index: 1;
  opacity: 1;
}

.chair-size-photo {
  width: 60%;
  height: 300px;
  background-color: lightgray;
  margin-bottom: 50px;
}

#fullscreen-gallery-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2%;
  padding: 4% 8%;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  z-index: 9990;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

#fullscreen-gallery-container.visible {
  opacity: 1;
  visibility: visible;
}

#fullscreen-gallery-image-container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  position: relative;
}

#fullscreen-gallery-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: 50% 50%;
  border-radius: 15px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0;
  cursor: zoom-in;
}

#fullscreen-gallery-image.zoomed {
  cursor: move;
  transition: none;
  transform-origin: 0 0;
}

#fullscreen-gallery-image.loaded {
  opacity: 1;
}

.loading-spinner {
  position: absolute;
  width: 64px;
  height: 64px;
  border: 5px solid #f3f3f3;
  border-top: 5px solid #ff0000;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  z-index: 1;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

#close-fullscreen-button {
  position: absolute;
  top: 25px;
  right: 40px;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Montserrat;
  font-size: 30px;
  font-weight: 300;
  color: white;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}

#close-fullscreen-button:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

#fullscreen-gallery-previous-button,
#fullscreen-gallery-next-button {
  height: 80px;
  width: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: white;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}

#fullscreen-gallery-previous-button:hover,
#fullscreen-gallery-next-button:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

#fullscreen-gallery-previous-button {
  margin-right: 20px;
}

#fullscreen-gallery-next-button {
  margin-left: 20px;
}

.characteristics-section {
  display: flex;
  align-items: center;
  flex-direction: column;
}

.characteristics-list {
  width: 50%;
  padding: 20px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.characteristics-item {
  list-style-type: none;
  font-family: Montserrat;
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 10px;
  padding: 10px 15px;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
  padding-left: 35px;
}

.characteristics-item:before {
  content: "•";
  position: absolute;
  left: 15px;
  color: #ff0000;
  font-size: 24px;
}

.characteristics-item:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateX(10px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

h3 {
  font-family: Montserrat;
  font-size: 26px;
  font-weight: 400;
  text-align: center;
  margin-bottom: 20px;
}

.questions-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  padding: 20px 50px;
  max-width: 1400px;
  margin: 0 auto;
}

.question-item {
  display: flex;
  width: 400px;
  gap: 20px;
  padding: 25px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.question-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.mark-sign {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ff0000, #ff4444);
  color: white;
  font-size: 30px;
  font-weight: 600;
  min-width: 40px;
  height: 40px;
  border-radius: 100%;
  box-shadow: 0 2px 8px rgba(255, 0, 0, 0.3);
}

.question-text {
  font-family: Montserrat;
  font-size: 22px;
  font-weight: 600;
  color: #333;
  margin-bottom: 15px;
}

.question-answers {
  margin-top: 15px;
  font-family: Montserrat;
  font-size: 18px;
  font-weight: 400;
  color: #555;
}

.question-answer {
  list-style: none;
  margin-top: 8px;
  margin-left: 0;
  padding-left: 25px;
  position: relative;
  transition: all 0.2s ease;
}

.question-answer:before {
  content: "→";
  position: absolute;
  left: 0;
  color: #ff0000;
  font-weight: bold;
  transition: all 0.2s ease;
}

.question-answer:hover {
  transform: translateX(5px);
  color: #333;
}

.question-answer:hover:before {
  transform: translateX(3px);
}

.buy-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 80%;
  margin: 0 auto 80px;
  padding: 40px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.models-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.model {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 50px;
  margin-bottom: 0;
  padding: 30px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 15px;
  transition: all 0.3s ease;
}

.model-description {
  flex: 1;
  overflow: auto;
  padding: 20px;
}

.model:hover {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
}

.model-photo {
  height: 60vh;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.model:hover .model-photo {
  transform: scale(1.02);
}

.model-name {
  text-align: left;
  font-family: Montserrat;
  font-size: 28px;
  font-weight: 500;
  margin-bottom: 25px;
  color: #333;
}

.model-details-list {
  margin-bottom: 30px;
  padding-left: 20px;
}

.model-detail {
  margin-bottom: 12px;
  list-style-type: none;
  font-family: Montserrat;
  font-size: 18px;
  font-weight: 400;
  position: relative;
  padding-left: 25px;
}

.model-detail:before {
  content: "•";
  position: absolute;
  left: 0;
  color: #ff0000;
  font-weight: bold;
}

.price-container {
  display: flex;
  justify-content: space-between;
  gap: 10px 30px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.price-container:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateX(5px);
}

.price-container h4 {
  font-family: Montserrat;
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 0;
  color: #333;
}

.price-container p {
  font-family: Montserrat;
  font-size: 18px;
  font-weight: 400;
  color: #555;
}

.price-ps {
  margin-top: 25px;
  font-family: Montserrat;
  font-size: 14px;
  font-weight: 400;
  color: #666;
  font-style: italic;
  padding: 10px;
  border-left: 3px solid #ff0000;
  background: rgba(255, 255, 255, 0.6);
}

ul.slick-dots {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 13px;
  position: absolute;
  bottom: -50px;
  left: 50%;
  transform: translateX(-50%);
  width: fit-content;
  padding: 0;
  margin: 0;
  list-style: none;
}

ul.slick-dots > li {
  position: relative;
  display: inline-block;
  width: 16px;
  height: 16px;
  padding: 0;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

ul.slick-dots > li button {
  font-size: 0;
  line-height: 0;
  display: block;
  width: 90%;
  height: 90%;
  padding: 0;
  cursor: pointer;
  color: transparent;
  border: 2px solid transparent;
  border-radius: 50%;
  background: #a49e96;
  outline: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

ul.slick-dots > li:hover button {
  background: transparent;
  border: 2px solid #a49e96;
  transform: scale(1.3);
}

ul.slick-dots > li.slick-active button {
  background: transparent;
  border: 2px solid #a49e96;
  transform: scale(1.5);
}

.slick-dots li button:before {
  display: none;
}

.destroy-button {
  cursor: text;
  color: inherit;
}

.destroy-controls {
  position: fixed;
  top: 30%;
  left: 5%;
}

#toothless-section {
  height: 400px;
  position: fixed;
  margin-left: auto;
  right: -1px;
  bottom: -200px;
}

#toothless-video {
  height: 100%;
}

@media screen and (max-width: 1440px) {
  header {
    padding: 15px 3vw;
  }

  .model-photo {
    height: 50vh;
  }

  .model-description {
    width: 100%;
  }

  .model {
    flex-direction: column;
    padding: 30px 20px;
  }

  .logo-link {
    height: 87%;
  }

  .nav-link {
    font-size: 21px;
  }

  .characteristics-list {
    width: 60%;
  }
}

/* Мобильные стили */
@media screen and (max-width: 768px) {
  header {
    height: auto;
    flex-direction: column;
    padding: 10px 0;
    gap: 20px;
  }

  .logo-link {
    margin-left: 0;
    height: 70px;
  }

  .nav-container {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 0 20px;
  }

  .nav-link {
    font-size: 18px;
  }

  .left-link,
  .right-link {
    text-align: center;
  }

  .contacts-container {
    margin-right: 0;
    align-items: center;
    text-align: center;
    padding: 10px 0;
  }

  .phone,
  .email {
    font-size: 16px;
  }

  main {
    margin-top: 180px;
  }

  .slogan-container {
    margin: 8vh 5% 0;
    align-items: center;
  }

  .slogan-container h1 {
    font-size: 32px;
    text-align: center;
  }

  .slogan-container p {
    font-size: 20px;
    text-align: center;
  }

  .advantages-container {
    width: 90%;
    padding: 20px;
  }

  .advantage {
    font-size: 18px;
    padding: 15px 20px;
  }

  .gallery-section {
    width: 95%;
    padding: 20px 0;
  }

  h2 {
    font-size: 32px;
    margin: 0 20px 30px;
  }

  .gallery {
    height: 40vh;
  }

  .characteristics-list {
    width: 90%;
  }

  .characteristics-item {
    font-size: 18px;
    padding: 8px 12px;
    padding-left: 30px;
  }

  .questions-list {
    padding: 10px 20px;
    gap: 20px;
  }

  .question-item {
    width: 100%;
    padding: 15px;
  }

  .question-text {
    font-size: 18px;
  }

  .question-answers {
    font-size: 16px;
  }

  .buy-section {
    width: 95%;
    padding: 20px;
  }

  .model {
    padding: 15px;
  }

  .model-photo {
    height: 40vh;
  }

  .model-name {
    font-size: 24px;
  }

  .model-detail {
    font-size: 16px;
  }

  .price-container h4 {
    font-size: 20px;
  }

  .price-container p {
    font-size: 16px;
  }

  #fullscreen-gallery-previous-button,
  #fullscreen-gallery-next-button {
    height: 50px;
    width: 50px;
    font-size: 24px;
  }

  #close-fullscreen-button {
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    font-size: 24px;
  }
}

/* Стили для очень маленьких экранов */
@media screen and (max-width: 480px) {
  .slogan-container h1 {
    font-size: 28px;
  }

  .slogan-container p {
    font-size: 18px;
  }

  .gallery {
    height: 30vh;
  }

  .model-photo {
    height: 30vh;
  }

  .price-container {
    flex-direction: column;
    align-items: flex-start;
  }
}
