/*
Theme Name: Artkelo Landing
Theme URI: https://artkelo.ru/
Author: Artkelo
Description: Custom landing theme for Artkelo premium kelo sauna projects.
Version: 1.0.0
Text Domain: artkelo
*/

:root {
  --color-black: #0a0a0a;
  --color-graphite: #2a2a2a;
  --color-gray: #8a8a8a;
  --color-line: #d8d8d8;
  --color-surface: #f5f5f3;
  --color-white: #ffffff;

  --header-height: 64px;
  --desktop-edge: 120px;
  --font-main: "Inter", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-white);
  color: var(--color-black);
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.3;
  text-rendering: geometricPrecision;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

img,
video {
  display: block;
  max-width: 100%;
}

.type-menu,
.site-nav,
.header-phone {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.type-caps-xxl {
  margin: 0;
  font-size: 100px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}

.type-caps-xl {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}

.type-caps-l {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}

.type-caps-m {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.type-caps-s {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.type-paragraph-s {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}

.type-button-m,
.header-button,
.modal-tab,
.modal-close,
.gallery-info-button {
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  padding: 0 20px;
  color: var(--color-white);
  transition: color 360ms ease;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--color-white);
  opacity: 0;
  transform: translateY(-100%);
  transition:
    opacity 360ms ease,
    transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.site-header.is-past-hero {
  color: var(--color-black);
}

.site-header.is-scrolling-up::before {
  opacity: 1;
  transform: translateY(0);
}

.site-logo {
  position: relative;
  display: inline-flex;
  width: max-content;
  height: 36px;
  align-items: center;
}

.site-logo img {
  width: auto;
  height: 36px;
  transition: opacity 360ms ease;
}

.site-logo-black {
  position: absolute;
  inset: 0 auto auto 0;
  opacity: 0;
}

.site-header.is-past-hero .site-logo-white {
  opacity: 0;
}

.site-header.is-past-hero .site-logo-black {
  opacity: 1;
}

.site-nav {
  position: absolute;
  left: 50%;
  display: flex;
  justify-content: center;
  gap: 20px;
  transform: translateX(-50%);
  transition:
    opacity 360ms ease,
    transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.site-nav a,
.header-phone {
  white-space: nowrap;
}

.text-flip {
  display: inline-flex;
  align-items: center;
  overflow: hidden;
}

.text-flip span {
  position: relative;
  display: block;
  transform: translateY(0);
  transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.text-flip span::after {
  content: attr(data-text);
  position: absolute;
  top: 100%;
  left: 0;
  color: currentColor;
}

.text-flip:hover span,
.text-flip:focus-visible span {
  transform: translateY(-100%);
}

.header-button.text-flip,
.modal-tab.text-flip,
.modal-close.text-flip,
.gallery-info-button.text-flip {
  overflow: hidden;
}

.header-button.text-flip span,
.modal-tab.text-flip span,
.modal-close.text-flip span,
.gallery-info-button.text-flip span {
  position: relative;
  overflow: hidden;
  height: 14px;
  line-height: 14px;
  color: transparent;
  transform: none;
}

.header-button.text-flip span::before,
.modal-tab.text-flip span::before,
.modal-close.text-flip span::before,
.gallery-info-button.text-flip span::before,
.header-button.text-flip span::after,
.modal-tab.text-flip span::after,
.modal-close.text-flip span::after,
.gallery-info-button.text-flip span::after {
  position: absolute;
  left: 0;
  height: 14px;
  line-height: 14px;
  transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.header-button.text-flip span::before,
.modal-tab.text-flip span::before,
.modal-close.text-flip span::before,
.gallery-info-button.text-flip span::before {
  content: attr(data-text);
  top: 0;
  transform: translateY(0);
}

.header-button.text-flip span::after,
.modal-tab.text-flip span::after,
.modal-close.text-flip span::after,
.gallery-info-button.text-flip span::after {
  top: 100%;
  transform: translateY(0);
}

.header-button.text-flip span::before,
.header-button.text-flip span::after {
  color: var(--color-black);
}

.gallery-info-button.text-flip span::before,
.gallery-info-button.text-flip span::after {
  color: var(--color-white);
}

.modal-tab.text-flip span::before,
.modal-tab.text-flip span::after {
  color: var(--color-black);
}

.modal-tab.is-active.text-flip span::before,
.modal-tab.is-active.text-flip span::after {
  color: var(--color-white);
}

.modal-close.text-flip span::before,
.modal-close.text-flip span::after {
  color: var(--color-black);
}

.header-button.text-flip:hover span,
.header-button.text-flip:focus-visible span,
.modal-tab.text-flip:hover span,
.modal-tab.text-flip:focus-visible span,
.modal-close.text-flip:hover span,
.modal-close.text-flip:focus-visible span,
.gallery-info-button.text-flip:hover span,
.gallery-info-button.text-flip:focus-visible span {
  transform: none;
}

.header-button.text-flip:hover span::before,
.header-button.text-flip:focus-visible span::before,
.modal-tab.text-flip:hover span::before,
.modal-tab.text-flip:focus-visible span::before,
.modal-close.text-flip:hover span::before,
.modal-close.text-flip:focus-visible span::before,
.gallery-info-button.text-flip:hover span::before,
.gallery-info-button.text-flip:focus-visible span::before {
  transform: translateY(-100%);
}

.header-button.text-flip:hover span::after,
.header-button.text-flip:focus-visible span::after,
.modal-tab.text-flip:hover span::after,
.modal-tab.text-flip:focus-visible span::after,
.modal-close.text-flip:hover span::after,
.modal-close.text-flip:focus-visible span::after,
.gallery-info-button.text-flip:hover span::after,
.gallery-info-button.text-flip:focus-visible span::after {
  transform: translateY(-100%);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 40px;
}

.header-phone {
  transition:
    opacity 360ms ease,
    transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.site-header.is-hidden-on-down .site-nav {
  opacity: 0;
  transform: translateX(-50%) translateY(-28px);
  pointer-events: none;
}

.site-header.is-hidden-on-down .header-phone {
  opacity: 0;
  transform: translateY(-28px);
  pointer-events: none;
}

.header-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 41px;
  padding: 0 20px;
  color: var(--color-black);
  background: var(--color-white);
  border: 1px solid var(--color-white);
  border-radius: 4px;
  transition:
    color 360ms ease,
    background-color 360ms ease,
    border-color 360ms ease;
}

.site-header.is-past-hero .header-button {
  color: var(--color-white);
  background: var(--color-black);
  border-color: var(--color-black);
}

.site-header.is-past-hero .header-button.text-flip span::before,
.site-header.is-past-hero .header-button.text-flip span::after {
  color: var(--color-white);
}

.header-button:hover {
  border-color: var(--color-white);
  background: rgba(255, 255, 255, 0.8);
}

.site-header.is-past-hero .header-button:hover {
  background: rgba(10, 10, 10, 0.78);
  border-color: rgba(10, 10, 10, 0.78);
}

.hero-section {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: calc(var(--header-height) + 40px);
  color: var(--color-white);
}

.hero-video,
.hero-overlay,
.hero-top-gradient {
  position: absolute;
  inset: 0;
}

.hero-video {
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--color-graphite);
}

.hero-overlay {
  z-index: 1;
  background: rgba(0, 0, 0, 0.18);
}

.hero-top-gradient {
  z-index: 2;
  height: 380px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 100%);
  pointer-events: none;
}

.hero-title {
  position: relative;
  z-index: 3;
  display: grid;
  justify-items: center;
  gap: 10px;
  margin: 0 auto;
  padding: 0 var(--desktop-edge);
  text-align: center;
}

.hero-slider {
  position: absolute;
  left: 50%;
  bottom: 40px;
  z-index: 4;
  display: grid;
  grid-template-columns: 300px minmax(78px, 1fr);
  grid-template-rows: 1fr auto;
  gap: 20px 24px;
  width: 578px;
  height: 200px;
  padding: 20px;
  background: rgba(10, 10, 10, 0.16);
  border-radius: 4px;
  backdrop-filter: blur(36px);
  transform: translateX(-50%);
}

.slider-copy {
  position: relative;
  min-height: 46px;
}

.slider-text {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  color: var(--color-white);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  transform: translateY(14px);
  transition:
    opacity 520ms ease,
    transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.slider-text.is-active {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 120ms;
}

.slider-text.is-leaving {
  opacity: 0;
  transform: translateY(-14px);
  transition-delay: 0ms;
}

.slider-icons {
  position: relative;
  justify-self: end;
  align-self: start;
  width: 78px;
  height: 78px;
}

.slider-icon {
  position: absolute;
  inset: 0;
  width: 78px;
  height: 78px;
  object-fit: contain;
  opacity: 0;
  transform: translateY(12px) scale(0.94);
  transition:
    opacity 520ms ease,
    transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.slider-icon.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition-delay: 120ms;
}

.slider-progress {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
}

.progress-item {
  position: relative;
  overflow: hidden;
  height: 6px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  cursor: pointer;
}

.progress-item::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.4);
  transform: translateY(-50%);
  transition: height 180ms ease;
}

.progress-item::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  height: 2px;
  width: 100%;
  background: var(--color-white);
  transform: translateY(-50%) scaleX(0);
  transform-origin: left center;
  z-index: 1;
  transition: height 180ms ease;
}

.progress-item:hover::after,
.progress-item:hover::before {
  height: 6px;
}

.progress-item.is-active::before {
  animation: fill-progress 5s linear forwards;
}

@keyframes fill-progress {
  from {
    transform: translateY(-50%) scaleX(0);
  }

  to {
    transform: translateY(-50%) scaleX(1);
  }
}

.projects-section {
  background: var(--color-white);
  color: var(--color-black);
  padding: 140px 0 0;
  overflow: hidden;
}

.projects-inner {
  width: 100%;
  margin: 0;
}

.projects-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  margin: 0 var(--desktop-edge) 40px;
}

.projects-title {
  margin: 0;
  font-size: 32px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.projects-arrows {
  display: flex;
  align-items: center;
  gap: 8px;
}

.projects-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  transition:
    opacity 260ms ease,
    transform 360ms cubic-bezier(0.22, 1, 0.36, 1),
    background-color 260ms ease;
}

.projects-arrow img {
  width: 40px;
  height: 40px;
  transition: transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

.projects-arrow:hover:not(:disabled) {
  transform: translateY(-1px);
}

.projects-arrow-right:hover:not(:disabled) img {
  transform: translateX(3px);
}

.projects-arrow-left:hover:not(:disabled) img {
  transform: translateX(-3px);
}

.projects-arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.projects-track {
  display: flex;
  gap: 4px;
  width: 100vw;
  padding-left: var(--desktop-edge);
  padding-right: var(--desktop-edge);
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  scroll-padding-left: var(--desktop-edge);
  cursor: grab;
  user-select: none;
}

.projects-track::before {
  display: none;
}

.projects-track.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}

.projects-track::-webkit-scrollbar {
  display: none;
}

.project-card {
  position: relative;
  flex: 0 0 calc((100vw - var(--desktop-edge) * 2 - 4px) / 2);
  overflow: hidden;
  aspect-ratio: 838 / 550;
  padding: 20px;
  color: var(--color-white);
  background: var(--color-graphite);
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  scroll-snap-align: start;
}

.project-card-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.project-card:hover .project-card-image {
  transform: scale(1.03);
}

.project-card-image.is-missing {
  display: none;
}

.project-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1;
  height: 200px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 100%);
  pointer-events: none;
}

.project-card-meta {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 2;
  display: grid;
  gap: 4px;
  justify-items: start;
  text-align: left;
}

.project-card-title {
  margin: 0;
  color: var(--color-white);
}

.project-card-area {
  color: var(--color-white);
}

.catalog-cta-section {
  padding: 180px var(--desktop-edge) 180px;
  background: var(--color-white);
}

.catalog-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 50%;
  width: 100%;
  height: 450px;
  overflow: hidden;
  background: #372517;
  border-radius: 4px;
}

.catalog-cta-content {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  width: 580px;
  min-width: 0;
  padding: 40px;
  color: var(--color-white);
}

.catalog-cta-title {
  max-width: 100%;
  margin: 0;
  color: var(--color-white);
  font-size: 32px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.catalog-cta-text {
  max-width: 100%;
  margin: 20px 0 0;
  color: var(--color-white);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
}

.catalog-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  margin-top: auto;
  height: 52px;
  padding: 0 24px;
  color: var(--color-black);
  background: var(--color-white);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.catalog-cta-button.text-flip span {
  position: relative;
  display: block;
  overflow: hidden;
  height: 14px;
  line-height: 14px;
  color: transparent;
  transform: none;
}

.catalog-cta-button.text-flip span::before,
.catalog-cta-button.text-flip span::after {
  position: absolute;
  left: 0;
  height: 14px;
  line-height: 14px;
  color: var(--color-black);
  transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.catalog-cta-button.text-flip span::before {
  content: attr(data-text);
  top: 0;
}

.catalog-cta-button.text-flip span::after {
  top: 100%;
}

.catalog-cta-button.text-flip:hover span,
.catalog-cta-button.text-flip:focus-visible span {
  transform: none;
}

.catalog-cta-button.text-flip:hover span::before,
.catalog-cta-button.text-flip:focus-visible span::before,
.catalog-cta-button.text-flip:hover span::after,
.catalog-cta-button.text-flip:focus-visible span::after {
  transform: translateY(-100%);
}

.catalog-cta-media {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.catalog-cta-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.chat-widget {
  position: fixed;
  left: 50%;
  bottom: 30px;
  z-index: 45;
  width: min(330px, calc(100vw - 40px));
  padding: 14px;
  color: var(--color-white);
  background: rgb(0 0 0 / 30%);
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 44px;
  box-shadow: 0 18px 60px rgb(0 0 0 / 18%);
  backdrop-filter: blur(36px);
  -webkit-backdrop-filter: blur(36px);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 28px) scale(0.98);
  transition:
    width 520ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 620ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 620ms cubic-bezier(0.22, 1, 0.36, 1);
}

.chat-widget.has-message {
  width: min(500px, calc(100vw - 40px));
}

.chat-widget.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0) scale(1);
}

.chat-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / 10%);
  cursor: pointer;
  transition:
    background 320ms ease,
    transform 320ms ease;
}

.chat-close::before,
.chat-close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 1.5px;
  background: var(--color-white);
  transform-origin: center;
}

.chat-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.chat-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.chat-close:hover,
.chat-close:focus-visible {
  background: rgb(255 255 255 / 18%);
  transform: rotate(90deg);
}

.chat-manager {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  align-items: center;
}

.chat-avatar-wrap {
  position: relative;
  display: block;
  width: 56px;
  height: 56px;
  overflow: hidden;
  border-radius: 50%;
  background: rgb(255 255 255 / 18%);
}

.chat-avatar,
.chat-avatar-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.chat-avatar {
  z-index: 2;
  object-fit: cover;
}

.chat-avatar.is-missing {
  display: none;
}

.chat-avatar-fallback {
  display: grid;
  place-items: center;
  color: var(--color-white);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.chat-manager-name,
.chat-manager-role,
.chat-message-text {
  margin: 0;
}

.chat-manager-name {
  color: var(--color-white);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.chat-manager-role {
  margin-top: 3px;
  color: rgb(255 255 255 / 62%);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.3;
}

.chat-message {
  min-height: 66px;
  margin: 12px 6px 0 68px;
}

.chat-typing {
  display: flex;
  gap: 5px;
  align-items: center;
  height: 22px;
  opacity: 1;
  transition: opacity 240ms ease;
}

.chat-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-white);
  animation: chat-dot 1080ms ease-in-out infinite;
}

.chat-typing span:nth-child(2) {
  animation-delay: 140ms;
}

.chat-typing span:nth-child(3) {
  animation-delay: 280ms;
}

.chat-widget.has-message .chat-typing {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.chat-message-text {
  max-width: 340px;
  color: var(--color-white);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -0.01em;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 420ms ease,
    transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.chat-widget.has-message .chat-message-text {
  opacity: 1;
  transform: translateY(0);
}

.chat-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 2px 6px 0 68px;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 420ms ease,
    transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.chat-widget.has-message .chat-actions {
  opacity: 1;
  transform: translateY(0);
}

.chat-actions-caption {
  flex-basis: 100%;
  margin: 0 0 2px;
  color: rgb(255 255 255 / 68%);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.3;
}

.chat-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  padding: 0 12px;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 999px;
  background: rgb(255 255 255 / 10%);
  color: var(--color-white);
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background 320ms ease,
    border-color 320ms ease;
}

.chat-action:hover,
.chat-action:focus-visible {
  background: rgb(255 255 255 / 18%);
  border-color: rgb(255 255 255 / 28%);
}

.chat-action.text-flip span {
  position: relative;
  display: block;
  height: 14px;
  overflow: hidden;
  color: transparent;
  line-height: 14px;
  transform: none;
}

.chat-action.text-flip span::before,
.chat-action.text-flip span::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  width: 100%;
  color: var(--color-white);
  line-height: 14px;
  transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.chat-action.text-flip span::before {
  top: 0;
}

.chat-action.text-flip span::after {
  top: 100%;
}

.chat-action.text-flip:hover span::before,
.chat-action.text-flip:focus-visible span::before,
.chat-action.text-flip:hover span::after,
.chat-action.text-flip:focus-visible span::after {
  transform: translateY(-100%);
}

.chat-action.text-flip:hover span,
.chat-action.text-flip:focus-visible span {
  transform: none;
}

.chat-mini-button {
  position: fixed;
  left: 50%;
  bottom: 30px;
  z-index: 45;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  height: 48px;
  padding: 6px 16px 6px 6px;
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 999px;
  background: rgb(0 0 0 / 20%);
  color: var(--color-white);
  box-shadow: 0 18px 60px rgb(0 0 0 / 18%);
  backdrop-filter: blur(36px);
  -webkit-backdrop-filter: blur(36px);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 24px) scale(0.96);
  transition:
    opacity 420ms ease,
    transform 520ms cubic-bezier(0.22, 1, 0.36, 1),
    background 320ms ease;
}

.chat-mini-button.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0) scale(1);
}

.chat-mini-button:hover,
.chat-mini-button:focus-visible {
  background: rgb(0 0 0 / 30%);
}

.chat-mini-avatar {
  position: relative;
  display: block;
  width: 36px;
  height: 36px;
  overflow: hidden;
  border-radius: 50%;
  background: rgb(255 255 255 / 18%);
}

.chat-mini-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chat-mini-text {
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

@keyframes chat-dot {
  0%,
  70%,
  100% {
    transform: translateY(0);
    opacity: 0.35;
  }

  35% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

.project-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: block;
  visibility: hidden;
  overflow: hidden;
  background: var(--color-white);
  color: var(--color-black);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 520ms ease,
    visibility 0ms linear 520ms;
}

.project-modal.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition:
    opacity 520ms ease,
    visibility 0ms;
}

.project-modal.is-closing {
  visibility: visible;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 420ms ease,
    visibility 0ms linear 420ms;
}

.modal-topbar {
  position: absolute;
  top: 30px;
  left: 40px;
  right: 30px;
  z-index: 6;
  display: block;
  align-items: center;
  height: 33px;
  opacity: 0;
  transform: translateY(-14px);
  transition:
    opacity 520ms ease,
    transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.project-modal.is-open .modal-topbar {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 120ms;
}

.modal-project-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  height: 33px;
}

.modal-project-title {
  margin: 0;
  color: var(--color-black);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.modal-project-area {
  color: var(--color-black);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.modal-gallery-tabs {
  position: absolute;
  top: 0;
  left: 50%;
  display: flex;
  gap: 4px;
  height: 33px;
  transform: translateX(-50%);
}

.modal-tab,
.modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 33px;
  padding: 0 16px;
  color: var(--color-black);
  background: var(--color-white);
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 360ms ease, color 360ms ease;
}

.modal-tab.is-active {
  color: var(--color-white);
  background: var(--color-black);
}

.modal-tab:not(.is-active):hover,
.modal-close:hover {
  background: #ededed;
}

.modal-close {
  position: absolute;
  top: 0;
  right: 0;
}

.modal-gallery-stage {
  position: absolute;
  top: 93px;
  left: 0;
  right: 0;
  bottom: 110px;
  z-index: 1;
  opacity: 0;
  transform: scale(0.985);
  transition:
    opacity 620ms ease,
    transform 620ms cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}

.modal-gallery-stage.is-dragging {
  cursor: grabbing;
}

.project-modal.is-open .modal-gallery-stage {
  opacity: 1;
  transform: scale(1);
  transition-delay: 180ms;
}

.gallery-track {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 100%;
  width: max-content;
  transform: translate3d(0, 0, 0);
  transition: transform 820ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.modal-gallery-stage.is-dragging .gallery-track {
  transition: none;
}

.gallery-image {
  flex: 0 0 auto;
  width: auto;
  height: 100%;
  max-width: none;
  object-fit: contain;
  pointer-events: none;
  opacity: 1;
  transform: scale(1);
  transition:
    opacity 520ms ease,
    transform 820ms cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-image.is-active {
  opacity: 1;
  transform: scale(1);
}

.gallery-empty {
  color: var(--color-gray);
  font-size: 16px;
  line-height: 1.5;
}

.gallery-info-card {
  position: absolute;
  top: 113px;
  left: 50%;
  z-index: 5;
  width: 405px;
  padding: 20px;
  color: var(--color-white);
  background: rgba(10, 10, 10, 0.24);
  border-radius: 4px;
  backdrop-filter: blur(36px);
  opacity: 0;
  transform: translateX(-50%) translateY(18px);
  transition:
    opacity 560ms ease,
    transform 560ms cubic-bezier(0.22, 1, 0.36, 1);
}

.project-modal.is-open .gallery-info-card {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  transition-delay: 240ms;
}

.gallery-info-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.gallery-info-title {
  margin: 0;
  color: var(--color-white);
}

.gallery-info-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 41px;
  padding: 0;
  color: var(--color-white);
  background: transparent;
  border: 0;
  cursor: pointer;
}

.gallery-info-body {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition:
    max-height 520ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 360ms ease,
    margin-top 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-info-card.is-expanded .gallery-info-body {
  max-height: 460px;
  margin-top: 18px;
  opacity: 1;
}

.gallery-info-body p {
  margin: 0;
  color: var(--color-white);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}

.gallery-info-body p + p {
  margin-top: 16px;
}

.gallery-thumbs {
  position: absolute;
  left: 40px;
  right: 40px;
  bottom: 40px;
  z-index: 6;
  display: flex;
  justify-content: center;
  gap: 4px;
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 520ms ease,
    transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.project-modal.is-open .gallery-thumbs {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 280ms;
}

.gallery-thumb {
  position: relative;
  width: 40px;
  height: 40px;
  overflow: hidden;
  padding: 0;
  background: var(--color-line);
  border: 0;
  border-radius: 0;
  cursor: pointer;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.5);
  transition: background-color 220ms ease;
}

.gallery-thumb.is-active::after {
  background: rgba(255, 255, 255, 0);
}

.gallery-thumb:not(.is-active):hover::after {
  background: rgba(255, 255, 255, 0.25);
}

.kelo-section {
  display: none;
  background: var(--color-white);
  color: var(--color-black);
  padding: 180px 0 120px;
}

.kelo-inner {
  width: calc(100% - var(--desktop-edge) * 2);
  margin: 0 auto;
}

.kelo-title {
  margin: 0 0 40px;
  font-size: 32px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.kelo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
}

.kelo-card {
  margin: 0;
}

.kelo-card-image {
  width: 100%;
  aspect-ratio: 417 / 500;
  object-fit: cover;
  background: var(--color-surface);
  border-radius: 4px;
}

.kelo-card-text {
  width: 80%;
  margin: 10px 0 0;
  color: var(--color-black);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}

.production-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  height: 100vh;
  height: 100svh;
  margin-top: 60px;
  background: #e8e3df;
  color: var(--color-black);
}

.production-left,
.production-right {
  min-width: 0;
  min-height: 0;
  height: 100%;
}

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

.production-content {
  width: 370px;
}

.production-title {
  margin: 0 0 20px;
  color: var(--color-black);
  font-weight: 700;
  letter-spacing: -0.05em;
  white-space: nowrap;
}

.production-title span {
  display: block;
  width: 100%;
}

.production-title-main {
  font-size: 130px;
  line-height: 0.9;
}

.production-title-sub {
  font-size: 28px;
  line-height: 1.1;
}

.production-image {
  display: block;
  width: 370px;
  height: 467px;
  object-fit: cover;
  border-radius: 4px;
}

.production-caption {
  margin: 20px 0 0;
  color: var(--color-black);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
}

.production-right {
  overflow: hidden;
}

.production-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--color-graphite);
}

.production-stages-section {
  padding: 180px var(--desktop-edge) 0;
  background: var(--color-white);
  color: var(--color-black);
}

.production-stages-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
}

.stage-photo-panel {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--color-surface);
  border-radius: 4px;
}

.stage-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  clip-path: inset(100% 0 0 0);
  transform: translateY(42px) scale(1.04);
  transition:
    opacity 760ms ease,
    clip-path 920ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 920ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: clip-path, transform, opacity;
}

.stage-photo.is-active {
  opacity: 1;
  clip-path: inset(0 0 0 0);
  transform: translateX(0) scale(1);
  z-index: 2;
}

.stage-photo.is-leaving {
  opacity: 1;
  clip-path: inset(0 0 0 0);
  transform: translateY(-18px) scale(1.02);
  z-index: 1;
}

.stage-photo.is-entering {
  opacity: 1;
  clip-path: inset(0 0 0 0);
  transform: translateX(0) scale(1);
  z-index: 3;
}

.stage-photo-caption {
  position: absolute;
  left: 50%;
  bottom: 60px;
  z-index: 5;
  width: min(500px, calc(100% - 60px));
  padding: 30px;
  color: var(--color-white);
  background: rgba(10, 10, 10, 0.2);
  border-radius: 4px;
  backdrop-filter: blur(36px);
  transform: translateX(-50%);
  transition:
    opacity 420ms ease,
    transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.stage-photo-caption.is-changing {
  opacity: 0;
  transform: translateX(-50%) translateY(12px);
}

.stage-photo-caption p {
  margin: 0;
  color: var(--color-white);
  text-align: center;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
}

.stage-content-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  padding-left: 80px;
}

.stage-copy {
  width: 405px;
  margin: 0 auto;
}

.stage-title {
  margin: 0 0 20px;
  color: var(--color-black);
  font-size: 32px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.stage-description {
  margin: 0;
  color: var(--color-black);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}

.stage-tabs {
  display: grid;
  gap: 10px;
  width: 405px;
  margin: 0 auto;
}

.stage-tab {
  padding: 0;
  color: var(--color-black);
  background: transparent;
  border: 0;
  text-align: left;
  font-size: 32px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.02em;
  opacity: 0.3;
  cursor: pointer;
  transition: opacity 260ms ease;
}

.stage-tab.is-active {
  opacity: 1;
}

.stage-tab:hover:not(.is-active) {
  opacity: 0.6;
}

.clients-section {
  padding: 180px 0 0;
  background: var(--color-white);
  color: var(--color-black);
  overflow: hidden;
}

.clients-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  margin: 0 var(--desktop-edge) 40px;
}

.clients-title {
  margin: 0;
  color: var(--color-black);
  font-size: 32px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.clients-arrows {
  display: flex;
  align-items: center;
  gap: 8px;
}

.clients-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  transition:
    opacity 260ms ease,
    transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

.clients-arrow img {
  width: 40px;
  height: 40px;
  transition: transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

.clients-arrow-left:hover:not(:disabled) img {
  transform: translateX(-3px);
}

.clients-arrow-right:hover:not(:disabled) img {
  transform: translateX(3px);
}

.clients-arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.clients-track {
  display: flex;
  gap: 4px;
  width: 100vw;
  padding: 0 var(--desktop-edge);
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  scroll-padding-left: var(--desktop-edge);
  cursor: grab;
  user-select: none;
}

.clients-track.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}

.clients-track::-webkit-scrollbar {
  display: none;
}

.client-card {
  flex: 0 0 calc((100vw - var(--desktop-edge) * 2 - 16px) / 5);
  scroll-snap-align: start;
}

.client-photo {
  width: 100%;
  aspect-ratio: 332 / 400;
  object-fit: cover;
  background: var(--color-surface);
  border-radius: 4px;
  pointer-events: none;
}

.client-name {
  margin: 10px 0 0;
  color: var(--color-black);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.client-role {
  margin: 6px 0 0;
  color: #adadad;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}

.faq-section {
  padding: 180px var(--desktop-edge) 160px;
  background: var(--color-white);
  color: var(--color-black);
}

.faq-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 4px;
  width: 100%;
}

.faq-title {
  margin: 0;
  color: var(--color-black);
  font-size: 32px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.faq-list {
  width: 100%;
}

.faq-question {
  display: grid;
  grid-template-columns: 1fr 24px;
  gap: 24px;
  align-items: center;
  width: 100%;
  min-height: 67px;
  padding: 0;
  color: var(--color-black);
  background: transparent;
  border: 0;
  text-align: left;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.02em;
  cursor: pointer;
}

.faq-icon {
  position: relative;
  display: block;
  width: 18px;
  height: 18px;
  justify-self: end;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 2px;
  background: var(--color-black);
  transform: translate(-50%, -50%);
  transition:
    opacity 260ms ease,
    transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

.faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item.is-open .faq-icon::after {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(0deg);
}

.faq-answer {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition:
    max-height 520ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 360ms ease,
    padding-bottom 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.faq-item.is-open .faq-answer {
  max-height: 220px;
  padding-bottom: 18px;
  opacity: 1;
}

.faq-answer p {
  max-width: 640px;
  margin: 0;
  color: var(--color-black);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.3;
}

.site-footer {
  position: relative;
  min-height: 118svh;
  padding: 44px 40px 0;
  overflow: visible;
  background: #e8e8e6;
  color: var(--color-black);
}

.footer-top {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  min-height: 28svh;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.footer-nav,
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-contact {
  max-width: 520px;
  justify-self: end;
}

.footer-contact p {
  margin: 0 0 12px;
}

.footer-logo-stage {
  position: sticky;
  bottom: 18px;
  z-index: 1;
  width: 100%;
  margin-top: 6svh;
  overflow: hidden;
  opacity: var(--footer-logo-opacity, 0);
  transform: translateY(var(--footer-logo-stage-y, 90px));
  transition:
    opacity 80ms linear,
    transform 80ms linear;
  will-change: transform, opacity;
}

.footer-logo {
  width: calc(100vw - 80px);
  height: auto;
  max-width: none;
  transform:
    translateY(var(--footer-logo-y, 54%))
    scaleY(var(--footer-logo-scale-y, 0.18));
  transform-origin: 50% 100%;
  clip-path: inset(var(--footer-logo-clip, 76%) 0 0 0);
  transition:
    clip-path 80ms linear,
    transform 80ms linear;
  will-change: transform, clip-path;
}

.footer-chat-space {
  height: 360px;
}

@media (max-width: 1200px) {
  :root {
    --desktop-edge: 40px;
  }

  .site-header {
    display: flex;
  }

  .site-nav {
    gap: 24px;
  }

  .header-actions {
    gap: 24px;
  }
}

@media (max-width: 900px) {
  :root {
    --desktop-edge: 20px;
  }

  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-nav,
  .header-phone {
    display: none;
  }

  .type-caps-xxl {
    font-size: 56px;
  }

  .type-caps-xl {
    font-size: 22px;
  }

  .hero-slider {
    width: calc(100% - 40px);
    grid-template-columns: 1fr 78px;
    height: 200px;
  }

  .project-card {
    flex-basis: 82vw;
  }

  .catalog-cta {
    grid-template-columns: 1fr;
  }

  .catalog-cta-media {
    min-height: 320px;
  }

  .chat-widget {
    bottom: 20px;
    width: min(330px, calc(100vw - 24px));
    padding: 12px;
    border-radius: 28px;
  }

  .chat-widget.has-message {
    width: calc(100vw - 24px);
  }

  .chat-message,
  .chat-actions {
    margin-left: 0;
  }

  .chat-message-text {
    max-width: none;
  }

  .chat-mini-button {
    bottom: 20px;
  }

  .projects-title {
    white-space: normal;
  }

  .kelo-title {
    white-space: normal;
  }

  .modal-topbar {
    left: 20px;
    right: 20px;
    grid-template-columns: 1fr auto;
    gap: 12px;
  }

  .modal-gallery-tabs {
    grid-row: 2;
    grid-column: 1 / -1;
    justify-self: center;
  }

  .modal-gallery-stage {
    top: 130px;
    left: 0;
    right: 0;
  }

  .gallery-info-card {
    width: calc(100% - 40px);
  }

  .kelo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .production-section {
    grid-template-columns: 1fr;
  }

  .production-left,
  .production-right {
    min-height: 100svh;
  }

  .production-stages-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .stage-content-panel {
    padding-left: 0;
  }

  .stage-copy {
    width: 100%;
  }

  .client-card {
    flex-basis: 42vw;
  }

  .faq-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .faq-question {
    gap: 16px;
  }

  .site-footer {
    min-height: 100svh;
    padding: 32px 20px 0;
  }

  .footer-top {
    grid-template-columns: 1fr;
    min-height: 36svh;
  }

  .footer-contact {
    justify-self: start;
  }

  .footer-logo {
    width: calc(100vw - 40px);
  }

  .footer-chat-space {
    height: 300px;
  }
}
