/* ====== RESET ====== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Kode Mono", monospace;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  background: #ffffff;
  color: #000;
  overflow-x: hidden;
}

button,
input,
textarea,
a {
  font-family: inherit;
}

/* ====== GLOBAL ====== */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

.section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

/* Подсветка секции
.section.flash::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #d9d9d9;
  pointer-events: none;
  animation: fadeHighlight 1.8s ease forwards;
  z-index: 1;
}

@keyframes fadeHighlight {
  0% {
    opacity: 0;
  }

  20% {
    opacity: 0.8;
  }

  50% {
    opacity: 0.8;
  }

  100% {
    opacity: 0;
  }
} */

/* Блюр страницы при открытии модалки */
.page-wrapper.blur {
  filter: blur(8px);
  transition: filter 0.3s ease;
}

/* ====== HEADER + HERO ====== */

.hero {
  align-items: stretch;
  padding-top: 0;
}

.hero .container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 50px;
}

.logo {
  font-size: 45px;
  font-weight: 400;
  line-height: 1;
}

.nav {
  display: flex;
  gap: 46px;
}

.nav-link {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 25px;
  font-weight: 400;
  color: #000;
  transition: opacity 0.3s ease;
}

.nav-link:hover {
  opacity: 0.65;
}

/* ====== HERO CONTENT ====== */

.hero-content {
  width: 100%;
  flex: 1;

  display: grid;
  grid-template-columns: 1fr 400px;
  align-items: center;
  gap: 80px;

  margin-top: 0;
}


.hero-text p {
  font-size: 25px;
  line-height: 1.16;
  max-width: 650px;
}

.contact-big {
  margin-top: 42px;
  background: none;
  border: none;
  font-size: 45px;
  cursor: pointer;
  color: #000;
  transition: opacity 0.3s ease;
}

.contact-big:hover {
  opacity: 0.7;
}

.hero-video,
.portfolio-video,
.goods-video {
  width: 400px;
  height: 400px;
}

.hero-video video,
.portfolio-video video,
.goods-video video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* ====== ORDER MODAL ====== */

.order-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;

  display: none;
  justify-content: center;
  align-items: center;

  background: rgba(0, 0, 0, 0.2);
}

.order-overlay.active {
  display: flex;
}

.order-window {
  position: relative;

  width: 560px;
  max-width: calc(100% - 40px);

  padding: 36px;

  background: #ffffff;
  border: 2px solid #000;
}

.order-window h2 {
  margin-bottom: 28px;

  font-size: 35px;
  font-weight: 400;
  line-height: 1.1;
}

.order-close {
  position: absolute;
  top: 10px;
  right: 16px;

  border: none;
  background: none;

  font-size: 42px;
  cursor: pointer;
}

.order-subtitle {
  margin-bottom: 14px;

  font-size: 22px;
}

.order-list {
  margin-bottom: 28px;
  list-style: none;
}

.order-list li {
  font-size: 18px;
  line-height: 1.7;
}

.order-price {
  margin-bottom: 28px;

  font-size: 20px;
}

.order-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.order-form label {
  font-size: 20px;
}

.order-form input {
  width: 100%;
  padding: 14px 16px;

  border: 2px solid #000;
  background: #fff;

  font-size: 18px;
  color: #000;
}

.order-submit {
  margin-top: 10px;
  padding: 14px 20px;

  border: 2px solid #000;
  background: #000;
  color: #fff;

  font-size: 22px;
  cursor: pointer;

  transition: 0.3s ease;
}

.order-submit:hover {
  background: #fff;
  color: #000;
}

.order-message {
  margin-top: 18px;

  font-size: 16px;
  line-height: 1.4;
}

/* ====== PORTFOLIO ====== */

.portfolio-layout {
  width: 100%;
  display: grid;
  grid-template-columns: 420px 1fr;
  align-items: start;
  gap: 50px;
}

.portfolio-right {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 10px;
}

.portfolio-title {
  display: flex;
  justify-content: center;
  font-size: 45px;
  font-weight: 400;
  line-height: 1;
  margin-bottom: 50px;
}

/* ====== CAROUSEL ====== */

/* ====== CAROUSEL ====== */

.carousel {
  display: flex;
  justify-content: center;
  align-items: center;
}

.carousel-window {
  width: 560px;
  height: 315px;
  overflow: hidden;
  background: #000;
  outline: 2px solid #000;
  outline-offset: 0;
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.5s ease;
}

.carousel-slide {
  min-width: 100%;
  height: 100%;
}

/* Само видео внутри карусели */
.work-video {
  width: 100%;
  height: 100%;

  transform: scale(1.03);

  display: block;
  object-fit: cover;

  /*
    Запрещает пользователю взаимодействовать с видео:
    нельзя нажать, поставить на паузу, открыть меню как обычный видеоплеер.
  */
  pointer-events: none;
  user-select: none;
}

/* Кнопки переключения карусели */
.carousel-arrow {
  width: 60px;
  height: 60px;

  border: none;
  background: transparent;

  cursor: pointer;
  font-size: 28px;
  color: #000;

  transition: opacity 0.3s ease;
}

.carousel-arrow:hover {
  opacity: 0.55;
}

/* ====== GOODS ====== */

#shakes {
  display: flex;
  flex-direction: column;
  align-items: end;
  text-align: right;
}

#expressions {
  display: flex;
  flex-direction: column;
  justify-content: end;
  align-items: end;
  text-align: right;
}

.shakes-li {
  display: flex;
  justify-content: end;
}

.expressions-li {
  display: flex;
  justify-content: end;
}

/* #price-expressions {
  display: flex;
  justify-content: end;
} */

.goods-layout {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 420px;
  align-items: center;
  gap: 80px;
}

.goods-layout.reverse {
  grid-template-columns: 420px 1fr;
}


.goods-text h2 {
  font-size: 45px;
  font-weight: 400;
  line-height: 1;
  margin-bottom: 10px;
}

.goods-text h3 {
  font-size: 25px;
  font-weight: 400;
  margin-bottom: 60px;
}

.goods-text ul {
  list-style: none;
  margin-bottom: 70px;
}

.goods-text ul li {
  font-size: 20px;
  line-height: 1.9;
}

.buy-row {
  display: flex;
  align-items:end;
  gap: 48px;
  flex-wrap: wrap;
}

.buy-link {
  font-size: 45px;
  line-height: 1;
  text-decoration: none;
  color: #000;

  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.buy-link.underline {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.price {
  font-size: 15px;
  line-height: 1.2;
}

/* ====== FOOTER ====== */

.footer {
  min-height: 220px;
  display: flex;
  align-items: center;
  padding: 40px 0;
}

.footer-left {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-layout {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
}

.footer-left img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  display: block;
  margin-bottom: 16px;
}

.footer-left p {
  font-size: 15px;
}

.footer-right {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 60px;
}

.footer-right a {
  text-decoration: none;
  color: #000;
  font-size: 25px;
  transition: opacity 0.3s ease;
}

.footer-right a:hover {
  opacity: 0.65;
}

/* ====== MODAL ====== */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-overlay.active {
  display: flex;
}

.modal-window {
  width: 520px;
  background: #ffffff;
  border: 2px solid #000;
  padding: 34px 34px 28px;
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.modal-window h2 {
  font-size: 45px;
  font-weight: 400;
  margin-bottom: 24px;
}


.modal-content-titles {
  font-size: 25px;
  line-height: 1.4;
}


.modal-content-links {
  display: block;

  cursor: pointer;

  width: fit-content;

  font-size: 20px;
  color: #000;
  text-decoration: none;

  margin-bottom: 16px;

  transition: opacity 0.3s ease;
}

.modal-content-links:hover {
  opacity: 0.6;
  text-decoration: underline;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 16px;
  border: none;
  background: none;
  font-size: 42px;
  cursor: pointer;
}

/* ====== BURGER MENU ====== */

.burger-button {
  display: none;
  width: 44px;
  height: 34px;

  border: none;
  background: transparent;

  flex-direction: column;
  justify-content: space-between;

  cursor: pointer;
  z-index: 1001;
}

.burger-button span {
  display: block;
  width: 100%;
  height: 3px;

  background: #000;
}

.burger-menu {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 1000;

  width: 280px;
  height: 100vh;

  background: #ffffff;
  border-left: 2px solid #000;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;

  gap: 32px;
  padding: 40px;

  transform: translateX(100%);
  transition: transform 0.35s ease;
}

.burger-menu.active {
  transform: translateX(0);
}

.burger-menu-link {
  border: none;
  background: transparent;

  font-size: 28px;
  color: #000;

  cursor: pointer;
}


@media (max-width: 1100px) {
  .portfolio-section {
    padding: 70px 0;
  }

  .portfolio-layout {
    grid-template-columns: 1fr;
    justify-items: center;
    align-items: center;
    gap: 35px;
  }

  .portfolio-video {
  width: min(300px, 85vw);
  height: min(300px, 85vw);
  }

  .portfolio-right {
    width: 100%;
    align-items: center;
    padding-top: 0;
  }

  .portfolio-title {
    justify-content: center;
    text-align: center;
    margin-bottom: 30px;
  }

  .carousel {
    width: 100%;
  }

  .carousel-window {
    width: 100%;
    max-width: 640px;
    aspect-ratio: 16 / 9;
    height: auto;
  }

  .carousel-track,
  .carousel-slide {
    height: 100%;
  }

  .work-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

    #expressions,
  #shakes {
    width: 100%;
    align-items: flex-end;
    text-align: right;
  }

  #expressions .buy-row,
  #shakes .buy-row {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 25px;
  }

  #expressions .price,
  #expressions .buy-link,
  #shakes .price,
  #shakes .buy-link {
    display: block;
    text-align: right;
  }


}


/* ====== PHONE / GOODS SECTIONS ====== */

@media (max-width: 864px) {

.header {
  width: 100%;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  font-size: 28px;
  max-width: calc(100% - 70px);
  overflow: hidden;
}

  .nav {
    display: none;
  }

  .burger-button {
    display: flex;
  }

  .hero .container {
    min-height: 100vh;
  }

  .container {
    display: flex;
    flex-direction: column;

    justify-content: center;
    align-items: center;
  }

  .hero-content {
    display: flex;
    flex-direction: column;

    justify-content: center;
    align-items: center;

  }

  .hero-video {
  order: 1;

  width: min(300px, 85vw);
  height: min(300px, 85vw);
  }

  

  .hero-text {
    order: 2;
    width: 100%;
  }

  .hero-text p {
    font-size: 22px;
    line-height: 1.25;
    max-width: 100%;
  }

  .contact-big {
    font-size: 28px;
    margin-top: 28px;
  }


  .goods-section {
    min-height: auto;
    padding: 80px 0;
  }

  .goods-layout,
  .goods-layout.reverse {
    grid-template-columns: 1fr;
    gap: 35px;
    justify-items: center;
  }

  .goods-video {
  order: 1;

  width: min(300px, 85vw);
  height: min(300px, 85vw);
  }

  .goods-text {
    order: 2;
    width: 100%;
  }

  .goods-text h2 {
    font-size: 36px;
  }

  .goods-text h3 {
    font-size: 28px;
    margin-bottom: 35px;
  }

  .goods-text ul {
    margin-bottom: 45px;
  }

  .goods-text ul li {
    font-size: 28px;
    line-height: 1.7;
  }

  .buy-row {
    gap: 28px;
  }

  

  .buy-link {
    font-size: 36px;
  }

  .price {
    font-size: 28px;
  }

    #expressions .buy-row {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 18px;
  }

  #expressions .price,
  #expressions .buy-link {
    text-align: right;
  }

  #shakes .buy-row {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 18px;
  }

  #shakes .price,
  #shakes .buy-link {
    text-align: right;
  }


  #shakes,
  #expressions {
    align-items: flex-end;
    text-align: right;
  }

   .goods-text:not(#shakes):not(#expressions) .buy-row {
    width: 100%;

    display: flex;
    flex-direction: column;
    align-items: flex-start;

    gap: 28px;
  }

  .goods-text:not(#shakes):not(#expressions) .buy-link {
    order: 1;
    font-size: 45px;
    text-align: left;
  }

  .goods-text:not(#shakes):not(#expressions) .price {
    order: 2;
    font-size: 18px;
    text-align: left;
  }


}

@media (max-width: 864px), (pointer: coarse) {
  .order-overlay {
    display: none;
    align-items: center;
    justify-content: center;

    width: 100vw;
    height: 100dvh;

    padding: 16px;

    overflow: hidden;
  }

  .order-overlay.active {
    display: flex;
  }

  .order-window {
    width: 100%;
    max-width: 420px;
    max-height: none;

    padding: 28px;

    overflow: hidden;

    border: 2px solid #000;
  }

  .order-window h2 {
    max-width: calc(100% - 38px);

    margin-bottom: 28px;

    font-size: 25px;
    line-height: 1.15;

    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
  }

  .order-close {
    top: 16px;
    right: 18px;

    font-size: 32px;
    line-height: 1;
  }

  .order-subtitle,
  .order-list {
    display: none;
  }

  .order-price {
    margin-bottom: 28px;

    font-size: 18px;
    line-height: 1.2;
  }

  .order-form {
    gap: 14px;
  }

  .order-form label {
    font-size: 18px;
    line-height: 1.2;
  }

  .order-form input {
    width: 100%;

    padding: 13px 14px;

    font-size: 16px;
  }

  .order-submit {
    width: 100%;

    margin-top: 12px;
    padding: 14px 18px;

    font-size: 20px;
  }

  .order-message {
    font-size: 14px;
    line-height: 1.3;
  }
}

@media (max-width: 420px) {
  .order-overlay {
    padding: 12px;
  }

  .order-window {
    max-width: 100%;
    padding: 24px 20px;
  }

  .order-window h2 {
    font-size: 22px;
  }

  .order-price,
  .order-form label {
    font-size: 16px;
  }

  .order-form input {
    font-size: 15px;
  }

  .order-submit {
    font-size: 18px;
  }
}




html,
body {
  overflow-x: hidden;
}

body.order-modal-open {
  overflow: hidden;
  width: 100%;
}

/* Сам слой окна заказа фиксируем и запрещаем скролл внутри overlay */
.order-overlay {
  position: fixed;
  inset: 0;

  width: 100vw;
  height: 100dvh;

  overflow: hidden;
  overscroll-behavior: contain;
}

/* Само окно не должно вылезать за ширину экрана */
@media (max-width: 864px), (pointer: coarse) {
  .order-overlay {
    padding: 12px;
    align-items: center;
    justify-content: center;
  }

  .order-window {
    width: 100%;
    max-width: calc(100vw - 24px);
    max-height: calc(100dvh - 24px);

    overflow: hidden;
  }

  .order-form input {
    width: 100%;
    max-width: 100%;
  }

  .order-submit {
    width: 100%;
  }
}










/* ====== PAYMENT RESULT PAGES ====== */

.payment-result-page {
  min-height: 100vh;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  padding: 40px;

  text-align: center;
}

.payment-result-page h1 {
  margin-bottom: 24px;

  font-size: 45px;
  font-weight: 400;
}

.payment-result-page p {
  max-width: 620px;
  margin-bottom: 32px;

  font-size: 24px;
  line-height: 1.35;
}

.payment-result-page a {
  font-size: 28px;
  color: #000;
  text-decoration: underline;
}

@media (max-width: 864px) {
  .payment-result-page h1 {
    font-size: 32px;
  }

  .payment-result-page p {
    font-size: 20px;
  }

  .payment-result-page a {
    font-size: 24px;
  }
}