@import url('https://fonts.googleapis.com/css2?family=Onest:wght@500;600&family=Inter:wght@400&display=swap');

/* ==========================================================================
   Base: variables, container, dark-section, buttons, reset
   ========================================================================== */
:root {
  --bg-light: #FEF2E4;
  --bg-dark: #171717;
  --text-light-theme: #171717;
  --text-dark-theme: #FEF2E4;
  --accent: #C60000;

  --font-heading: "Onest", sans-serif;
  --font-body: "Inter", sans-serif;

  --container-max: 1920px;
  --col-width: 120px;
  --col-gap: 35px;

  --section-gap: 300px;

  --space-xs: 25px;
  --space-sm: 30px;
  --space-md: 35px;
  --space-lg: 50px;

  --tittle-font-size: 128px;
}

/* Modern Standard (Firefox) */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--bg-dark);
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  /* Эффект подсветки при наведении через подмешивание светлого тона */
  background: color-mix(in srgb, var(--accent) 80%, var(--text));
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

/* Обов'язкові стилі для нормальної роботи Lenis */
html.lenis, html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}
.lenis.lenis-stopped {
  overflow: hidden;
}
.lenis.lenis-smooth iframe {
  pointer-events: none;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 50px;
}

/* Свечения по углам в темных секциях */
.dark-section {
  --glow-size: 350px;
  --glow-color: rgba(198, 0, 0, 0.25);

  --glow-top-x: calc(100% - 100px);
  --glow-top-y: 100px;
  --glow-bottom-x: 100px;
  --glow-bottom-y: calc(100% - 100px);

  background-color: var(--bg-dark);
}

.dark-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;

  background-image:
    radial-gradient(
      var(--glow-size) var(--glow-size) at var(--glow-top-x) var(--glow-top-y),
      var(--glow-color) 0%,
      transparent 70%
    ),
    radial-gradient(
      var(--glow-size) var(--glow-size) at var(--glow-bottom-x) var(--glow-bottom-y),
      var(--glow-color) 0%,
      transparent 70%
    );
  background-repeat: no-repeat;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  background-color: var(--accent);
  color: var(--text-dark-theme);
  border: none;
  padding: var(--space-xs) var(--space-lg);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 18px;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: opacity 0.2s ease;
}
.btn:focus-visible {
  outline: 2px solid var(--text-dark-theme);
  outline-offset: 4px;
}
.btn__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  filter: brightness(0) invert(1);
}


/* ==========================================================================
   Block: scroll-pin / stage
   ========================================================================== */
.scroll-pin {
  position: relative;
  height: 250vh;
}

.stage {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  isolation: isolate;
}

.stage__media {
  position: absolute;
  left: 0;
  top: 0;
  width: 58vw;
  height: 100vh;
  object-fit: cover;
  object-position: bottom;
  z-index: 1;
  pointer-events: none;
  mix-blend-mode: lighten;
  overflow: visible;
}

.stage__nav {
  position: absolute;
  top: var(--space-lg);
  right: 50px;
  z-index: 4;
}

.stage__footer {
  position: absolute;
  right: 50px;
  bottom: var(--space-md);
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 40px;
}

.stage__layer {
  position: absolute;
  inset: 0;
  z-index: 3;
  padding: var(--space-lg) 50px;
  pointer-events: none;
}

/* ==========================================================================
   АДАПТИВ: КОМПОНЕНТИ ТА ЗМІННІ (:root, .container, .btn, .stage, .burger-menu)
   ========================================================================== */

/* ---------- 1440px: ноутбуки ---------- */
@media (max-width: 1440px) {
  :root {
    --tittle-font-size: 88px;
    --section-gap: 120px;
  }
}

/* ---------- 1200px: адаптація сіток ---------- */
@media (max-width: 1200px) {
  :root {
    --tittle-font-size: 64px;
  }
}

/* ---------- 1023px: планшети горизонтально ---------- */
@media (max-width: 1023px) {
  .container {
    padding: 0 30px;
  }
  .stage__layer,
  .stage__footer {
    padding-left: 30px;
    padding-right: 30px;
  }
  .stage__nav {
    right: 30px;
  }
  .stage__footer {
    right: 30px;
    gap: 24px;
  }
  .burger-menu__inner {
    padding: var(--space-md) 30px;
  }
  .burger-menu__close {
    right: 30px;
    top: var(--space-md);
  }
  .burger-menu__nav {
    left: 30px;
    right: 30px;
    bottom: 40px;
  }
}

/* ---------- 767px: мобільні ---------- */
@media (max-width: 767px) {
  :root {
    --tittle-font-size: 56px;
    --section-gap: 90px;
  }
  .container {
    padding: 0 15px;
  }
  .scroll-pin {
    height: 220vh;
  }
  .stage {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
  }
  .stage__media {
    position: absolute;
    left: 0;
    right: 0;
    top: auto;
    bottom: 0;
    width: 100%;
    height: 46vh;
    object-fit: cover;
    object-position: bottom center;
    opacity: 0.5;
  }
  .stage__nav {
    top: var(--space-sm);
    right: 20px;
    left: auto;
    z-index: 5;
  }
  .stage__footer {
    right: auto;
    left: 0;
    bottom: 16px;
    top: auto;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px 24px;
    z-index: 5;
    padding: 0 15px;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
  }
  .stage__layer {
    top: 0;
    left: 0;
    right: 0;
    bottom: 46vh;
    inset: auto;
    display: flex;
    overflow-y: auto;
  }
  .btn {
    width: auto;
    padding: 16px 28px;
    font-size: 15px;
  }
}

/* ---------- 480px: мобільні (менші) ---------- */
@media (max-width: 480px) {
  .stage__footer {
    flex-direction: column;
    gap: 10px;
  }
}

/* ---------- 424px: найменші мобільні ---------- */
@media (max-width: 424px) {
  :root {
    --tittle-font-size: 32px;
  }
  .btn {
    padding: 15px 20px;
    font-size: 16px;
  }
  .burger-menu__link {
    font-size: clamp(26px, 9vw, 32px);
  }
}

/* Element: hero__menu-toggle (персистентний) */
.hero__menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  margin: -10px;
}
.hero__menu-toggle-line {
  width: 34px;
  height: 2px;
  background-color: var(--text-dark-theme);
  transition: background-color 0.2s ease;
}
.hero__menu-toggle:hover .hero__menu-toggle-line {
  background-color: var(--accent);
}

/* Element: hero__footer-link (персистентний, у stage__footer) */
.hero__footer-link {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-dark-theme);
  opacity: 0.85;
  transition: opacity 0.2s ease, transform 0.2s, color 0.2s ease !important;
}
.hero__footer-link:hover {
  opacity: 1;
  color: var(--accent);
}

/* ==========================================================================
   Layer: hero (stage__layer--hero)
   ========================================================================== */
.stage__layer--hero .hero__logo {
  position: absolute;
  top: var(--space-lg);
  left: 50px;
  display: inline-flex;
  align-items: center;
}
.hero__logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 128px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: transparent;
  -webkit-text-stroke: 2px var(--accent);
}

.hero__content {
  position: absolute;
  top: 50%;
  right: 50px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  text-align: right;
  gap: var(--space-lg);
  max-width: 700px;
}

.hero__title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--tittle-font-size);
  line-height: 1.02;
  color: var(--accent);
  text-transform: uppercase;
}
.hero__title-line {
  display: block;
}

.hero__text {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.4;
  color: var(--text-dark-theme);
  max-width: 480px;
}

.hero__cta {
  margin-top: var(--space-xs);
}

/* ==========================================================================
   Layer: about (stage__layer--about)
   ========================================================================== */
.stage__layer--about {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
}

.about__col {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 70px 0;
}

.about__col--left {
  align-items: flex-start;
  text-align: left;
  justify-content: space-between;
  max-width: 420px;
}

.about__col--right {
  align-items: flex-end;
  text-align: right;
  justify-content: center;
  gap: var(--space-lg);
  max-width: 460px;
  margin-left: auto;
}

.about__intro {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.about__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(64px, 7vw, 132px);
  line-height: 0.95;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 2px var(--accent);
}
.about__title-line {
  display: block;
}

.about__text {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.4;
  color: var(--text-dark-theme);
}
.about__text--right {
  max-width: 460px;
}

.about__portfolio {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.about__portfolio-label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dark-theme);
  opacity: 0.75;
}
.about__portfolio-list {
  display: flex;
  gap: 24px;
}
.about__portfolio-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.about__portfolio-thumb {
  width: 94px;
  height: 94px;
  object-fit: cover;
  background-color: var(--bg-light);
  transition: all 0.2s;
}
.about__portfolio-item a {
  overflow: hidden;
}
.about__portfolio-item a:hover .about__portfolio-thumb {
  transform: scale(1.1);
}
.about__portfolio-index {
  font-family: var(--font-body);
  font-size: 13px;
  margin-top: 6px;
  color: var(--text-dark-theme);
  opacity: 0.85;
}

/* ==========================================================================
   Наступна секція (заглушка)
   ========================================================================== */
.next-section {
  min-height: 100vh;
  background-color: var(--bg-dark);
}

/* ==========================================================================
   Block: burger-menu
   ========================================================================== */
.burger-menu {
  position: fixed;
  inset: 0;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  background-color: var(--bg-dark);
}
.burger-menu--active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.burger-menu__inner {
  position: relative;
  height: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--space-lg) 50px;
}

.burger-menu__close {
  position: absolute;
  top: var(--space-lg);
  right: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: var(--text-dark-theme);
  transition: color 0.2s ease, transform 0.2s ease;
}
.burger-menu__close svg {
  width: 24px;
  height: 24px;
}
.burger-menu__close:hover {
  color: var(--accent);
  transform: rotate(90deg);
}

.burger-menu__nav {
  position: absolute;
  left: 50px;
  bottom: 60px;
  right: 50px;
  z-index: 2;
}
.burger-menu__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.burger-menu__link {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.15;
  text-transform: uppercase;
  color: var(--text-dark-theme);
  transition: color 0.2s ease;
}
.burger-menu__link:hover,
.burger-menu__link:focus-visible {
  color: var(--accent);
}

/* ==========================================================================
   АДАПТИВ: СЕКЦІЇ (.hero, .about, .dark-section тощо)
   ========================================================================== */

/* ---------- 1440px: ноутбуки ---------- */
@media (max-width: 1440px) {
  .hero__logo-text {
    font-size: 88px;
  }
  .hero__content {
    max-width: min(480px, 32vw);
  }
  .hero__text {
    font-size: 20px;
  }
  .about__col--left,
  .about__col--right {
    max-width: min(340px, 26vw);
  }
  .about__text {
    font-size: 20px;
  }
}

/* ---------- 1200px: адаптація колонок ---------- */
@media (max-width: 1200px) {
  .dark-section {
    --glow-top-x: 100%;
    --glow-top-y: 0px;
    --glow-bottom-x: 0px;
    --glow-bottom-y: 100%;
  }
  .about__col--left,
  .about__col--right {
    max-width: min(280px, 24vw);
  }
  .about__title {
    font-size: clamp(48px, 6vw, 96px);
  }
  .about__text {
    font-size: 18px;
  }
  .about__portfolio-list {
    gap: 14px;
  }
  .about__portfolio-thumb {
    width: 72px;
    height: 72px;
  }
}

/* ---------- 1023px: планшети горизонтально ---------- */
@media (max-width: 1023px) {
  .stage__layer--hero .hero__logo {
    left: 30px;
  }
  .hero__content {
    right: 30px;
    max-width: min(360px, 34vw);
  }
  .hero__logo-text {
    font-size: 64px;
  }
  .about__col--left,
  .about__col--right {
    max-width: min(240px, 26vw);
  }
  .about__title {
    font-size: clamp(40px, 7vw, 72px);
  }
  .about__text {
    font-size: 14px;
  }
}

/* ---------- 767px: мобільні ---------- */
@media (max-width: 767px) {
  .dark-section {
    --glow-top-x: calc(100% + 50px);
    --glow-top-y: -50px;
    --glow-bottom-x: -50px;
    --glow-bottom-y: calc(100% + 50px);
  }
  .stage__layer--hero {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 150px 15px 20px;
  }
  .stage__layer--hero .hero__logo {
    position: absolute;
    top: var(--space-sm);
    left: 15px;
  }
  .hero__logo-text {
    font-size: clamp(28px, 9vw, 40px);
    -webkit-text-stroke: 1.2px var(--accent);
  }
  .hero__content {
    position: relative;
    top: auto;
    right: auto;
    transform: none;
    align-items: center;
    text-align: center;
    max-width: 100%;
    gap: 18px;
  }
  .hero__title {
    font-size: clamp(30px, 9vw, 44px);
    line-height: 1.05;
  }
  .hero__text {
    font-size: 15px;
    max-width: 100%;
  }
  .stage__layer--about {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    padding: 100px 15px 20px;
  }
  .about__col {
    padding: 0;
    height: auto;
    max-width: 100%;
    align-items: center;
    text-align: center;
    margin-left: 0;
    gap: 15px;
  }
  .about__intro {
    align-items: center;
    gap: 16px;
  }
  .about__title {
    font-size: clamp(30px, 10vw, 40px);
    -webkit-text-stroke: 1.2px var(--accent);
  }
  .about__title-line  {
    display: inline;
  }
  .about__text {
    font-size: 15px;
    max-width: 100%;
  }
  .about__portfolio {
    display: none;
  }
  .about__portfolio-list {
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
  }
  .about__portfolio-thumb {
    width: 64px;
    height: 64px;
  }
}

/* ---------- 480px: мобільні (менші) ---------- */
@media (max-width: 480px) {
  .about__portfolio-thumb {
    width: 56px;
    height: 56px;
  }
  .dark-section {
    --glow-top-x: calc(100% + 100px);
    --glow-top-y: -100px;
    --glow-bottom-x: -100px;
    --glow-bottom-y: calc(100% + 100px);
  }
}

/* ---------- 424px: найменші мобільні ---------- */
@media (max-width: 424px) {
  .stage__layer--hero {
    padding-top: 150px;
  }
  .stage__layer--about {
    padding-top: 100px;
  }
  .hero__title {
    font-size: clamp(26px, 10vw, 36px);
  }
  .about__title {
    font-size: clamp(26px, 11vw, 34px);
  }
}



.works {
  background-color: var(--bg-light);
  color: var(--text-light-theme);
  width: 100%;
  padding-top: var(--section-gap);
  padding-bottom: var(--section-gap);
}

.works__heading {
  text-align: center;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--tittle-font-size);
  line-height: 1.05;
}

.works__heading {
  padding: 100px 0 0 0;
}

.works__heading-accent {
  color: var(--accent);
}

.works__list {
  display: flex;
  flex-direction: column;
  gap: 100px;
}

.works__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--col-gap);
  align-items: center;
}

.works__row--reverse .works__media{
  order: 2;
}

.works__media {
  width: 100%;
}

.works__image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.works__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.works__title {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 36px;
  color: var(--accent);
  display: flex;
  gap: 20px;
  align-items: center;
}
.works__title svg {
  color: var(--accent);
  width: 20px;
  height: 20px;
}

.works__text {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 24px;
  color: var(--text-light-theme);
}

/* ===== 1440px ===== */
@media (max-width: 1440px) {
  .works__title {
    font-size: 32px;
  }

  .works__text {
    font-size: 20px;
  }
}

/* ===== 1024px ===== */
@media (max-width: 1024px) {
  .works__row,
  .works__row--reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .works__text {
    font-size: 16px;
  }
  .works__row--reverse .works__content {
    order: 2;
  }

  .works__row--reverse .works__media {
    order: 1;
  }

  .works__list {
    gap: 50px;
  }

  .works__heading {
    padding: 70px 0 0 0;
  }
}

/* ===== 768px ===== */
@media (max-width: 768px) {

  .works__heading {
    padding: 50px 0 0 20px;
    text-align: left;
  }

  .works__row {
    gap: var(--space-sm);
  }

  .works__content {
    gap: 15px;
  }

  .works__title {
    font-size: 26px;
  }
}

/* ===== 480px ===== */
@media (max-width: 480px) {
  .works__title {
    font-size: 22px;
  }
}

/* ===== 424px ===== */
@media (max-width: 424px) {
  .works__text {
    font-size: 12px;
  }
}



.services {
  background-color: var(--bg-dark);
  color: var(--text-dark-theme);
  padding-top: var(--section-gap);
  padding-bottom: var(--section-gap);
  position: relative;
  overflow: clip;
}

.services__container {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--col-gap);
  position: relative;
  z-index: 1;
}

/* LEFT COLUMN */
.services__left {
  grid-column: span 6;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-md);
  position: sticky;
  top: var(--space-lg);
  align-self: start;
}

.services__heading {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--tittle-font-size);
  line-height: 1;
  margin: 0;
}

.services__heading-accent {
  color: var(--accent);
}

.services__text {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.4;
  margin: 0;
  max-width: 480px;
}

/* RIGHT COLUMN */
.services__right {
  grid-column: 7 / span 8;
  display: flex;
  flex-direction: column;
}

.services__label {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 18px;
  text-align: right;
  margin: 0 0 var(--space-sm) 0;
  text-transform: uppercase;
  opacity: 0.7;
}

.services__list {
  --services-left-col: 100px;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

/* ===================== ACCORDION ITEM ===================== */

.services-item {
  border-bottom: 1px solid rgba(254, 242, 228, 0.15);
}

.services-item__heading {
  margin: 0;
}

.services-item__header {
  all: unset;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: var(--services-left-col) minmax(0, 1fr) 180px;
  align-items: center;
  gap: var(--space-md);
  width: 100%;
  padding: var(--space-md) 0;
  cursor: pointer;
}

.services-item__header:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
}

.services-item__header:hover .services-item__title {
  color: var(--accent);
}

.services-item__left {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--accent);
  min-width: 0;
}

.services-item__icon {
  width: 18px;
  height: 18px;
}

.services-item__number {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 24px;
  color: var(--accent);
}

.services-item__title {
  min-width: 0;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 36px;
  color: var(--text-dark-theme);
  text-align: left;
  transition: color 0.2s ease;
}

.services-item__title {
  flex: 1 1 auto;
  min-width: 0; /* Снимает ограничение min-width: auto */
}

/* 2. Для стандартных цен оставляем nowrap, а для кастомных длинных слов разрешаем гибкость */
.services-item__price--custom {
  font-size: 20px;            /* Уменьшаем размер (36px/28px слишком много для длинного слова) */
  white-space: normal;        /* Разрешаем перенос, если не влезет */
  text-align: right;
  max-width: 180px;           /* Ограничиваем ширину колонки цены */
  line-height: 1.1;
  text-transform: uppercase;
}

.services-item__price {
  min-width: 0;
  width: 180px;

  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 36px;
  color: var(--accent);
  text-align: right;

  white-space: nowrap;
}

.services-item__price--custom {
  font-size: 20px;
  line-height: 1.1;
  white-space: normal;
}

.services-item__icon {
  flex: 0 0 auto;
  color: var(--text-dark-theme);
  opacity: 0.5;
  transition: transform 0.35s ease, opacity 0.2s ease;
}

.services-item__header:hover .services-item__icon {
  opacity: 1;
}

.services-item.is-open .services-item__icon {
  transform: rotate(90deg);
  opacity: 1;
}

.services-item__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}

.services-item__panel-inner {
  overflow: hidden;
}

.services-item.is-open .services-item__panel {
  grid-template-rows: 1fr;
}

.services-item__subtext {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.5;
  margin: 0;
  padding: 0 0 var(--space-md) calc(var(--services-left-col) + var(--space-md));
  color: var(--text-dark-theme);
  opacity: 0.7;
  max-width: 640px;
}


/* ===================== RESPONSIVE ===================== */

@media (max-width: 1440px) {
  .services__text {
    font-size: 20px;
  }

  .services-item__title,
  .services-item__price {
    font-size: 30px;
  }
}

@media (max-width: 1200px) {
  .services__left {
    grid-column: span 5;
  }

  .services__right {
    grid-column: 6 / span 7;
  }

  .services-item__title, .services-item__price {
    font-size: 24px;
  }
}

@media (max-width: 1024px) {
  .services__container {
    grid-template-columns: repeat(2, 1fr);
  }

  .services__left {
    grid-column: span 2;
    position: static;
  }

  .services__right {
    grid-column: span 2;
  }

  .services-item__title,
  .services-item__price {
    font-size: 26px;
  }
}

@media (max-width: 768px) {

  .services__container {
    grid-template-columns: 1fr;
  }

  .services__left {
    grid-column: 1;
  }

  .services__right {
    grid-column: 1;
  }

  .services__text {
    font-size: 18px;
    max-width: 100%;
  }

  .services-item__header {
    row-gap: var(--space-xs);
  }

  .services-item__number {
    font-size: 18px;
  }

  .services-item__title,
  .services-item__price {
    font-size: 16px;
  }

  .services-item__subtext {
    font-size: 14px;
  }

  .services-item__left {
    gap: 8px;
  }
}

@media (max-width: 480px) {

  .services__text {
    font-size: 16px;
  }

  .services__label {
    font-size: 14px;
  }

  .services-item__header {
    padding: var(--space-xs) 0;
  }

  .services__list {
    --services-left-col: 70px;
  }

  .services-item__left {
    gap: 8px;
  }

  .services-item__icon {
    width: 14px;
    height: 14px;
  }
}

/* ФИКС ДЛЯ УЛЬТРА-УЗКИХ ЭКРАНОВ 320-425px */
@media (max-width: 425px) {
  .services__list {
    --services-left-col: 48px; /* Уменьшаем отступ для колонки с номером */
  }

  .services__label {
    text-align: left;
  }
  /* Переходим на grid, чтобы цена гарантированно падала под заголовок */
  .services-item__header {
    display: grid;
    grid-template-columns: var(--services-left-col) 1fr;
    column-gap: 15px;
    row-gap: 4px;
    align-items: start;
    padding: 12px 0; /* Комфортная зона клика */
  }

  .services-item__left {
    grid-column: 1;
    grid-row: 1 / 3; /* Тянем иконку+номер на обе строки (заголовок и цену) */
    align-self: start;
    margin-top: 2px; /* Выравниваем по первой строке текста */
    flex: none;
  }

  .services-item__title {
    grid-column: 2;
    grid-row: 1;
    font-size: 15px;
    line-height: 1.3;
  }

  .services-item__price {
    grid-column: 2;
    grid-row: 2;
    font-size: 15px;
    text-align: left; /* Прижимаем влево под заголовок */
    white-space: normal; /* Разрешаем перенос длинной "кастомной" цены */
  }

  .services-item__price--custom {
    font-size: 13px;
  }

  /* Корректируем отступ текста, чтобы он шел ровно по линии заголовка */
  .services-item__subtext {
    padding: 0 0 var(--space-md) calc(var(--services-left-col) + 8px);
    font-size: 14px;
  }
}



:root {
   --fs-h1: 96px;
   --fs-stat: 88px;
   --fs-h2: 30px;
   --fs-p: 20px;
   --section-gap: 200px;
}

.stats-section {
  background-color: var(--bg-light);
  color: var(--text-light-theme);
  padding-top: var(--section-gap);
  padding-bottom: var(--section-gap);
  overflow: hidden;
}

.stats-section__container {
  max-width: var(--container-max);
  margin: 0 auto;
}

.stats-section__title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--tittle-font-size);
  line-height: 1.05;
  color: var(--accent);
  text-align: center;
  text-transform: uppercase;
  margin: 0 0 150px 0;
}

.stats-section__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--col-gap);
}

.stats-section__column {
  display: flex;
  flex-direction: column;
  gap: 150px;
}

.stats-section__column--left {
  grid-column: 1 / 5;
}

.stats-section__column--right {
  grid-column: 9 / 13;
  margin-top: 220px;
}

.stats-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.stats-card__number {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--fs-stat);
  line-height: 1;
  color: var(--accent);
  margin: 0 0 var(--space-md) 0;
}

.stats-card__title {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: var(--fs-h2);
  line-height: 1.2;
  color: var(--text-light-theme);
  text-transform: uppercase;
  margin: 0 0 var(--space-sm) 0;
}

.stats-card__text {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--fs-p);
  line-height: 1.5;
  color: var(--text-light-theme);
  margin: 0;
  max-width: 560px;
}

@media (max-width: 1440px) {
  .stats-section__column {
    gap: 120px;
  }
  .stats-section__column--right {
    margin-top: 160px;
  }
}

@media (max-width: 1200px) {
  .stats-section__column--left {
    grid-column: 1 / 7;
  }
  .stats-section__column--right {
    grid-column: 7 / 13;
    margin-top: 120px;
  }
}

@media (max-width: 1024px) {
  :root {
    --fs-h1: 72px;
    --fs-stat: 68px;
    --fs-h2: 26px;
    --fs-p: 18px;
    --section-gap: 140px;
  }
  .stats-section__grid {
    display: flex;
    flex-direction: column;
    gap: 35px;
  }
  .stats-section__column {
   display: flex;
   flex-direction: row;
   gap: 35px;
  }
  .stats-section__title {
    margin-bottom: 100px;
  }
  .stats-section__column--right {
    margin-top: 0;
  }
}

@media (max-width: 768px) {
  .stats-section__grid {
    grid-template-columns: 1fr;
  }
  .stats-section__column--left,
  .stats-section__column--right {
    grid-column: 1 / -1;
    margin-top: 0;
  }
  .stats-section__column {
    gap: 35px;
    flex-direction: column;
  }
  .stats-card {
   width: 100%;
  }
  .stats-section__title {
      margin-bottom: 30px;
      text-align: left;
  }
}

@media (max-width: 480px) {
  :root {
    --fs-h1: 44px;
    --fs-stat: 48px;
    --fs-h2: 20px;
    --fs-p: 16px;
    --section-gap: 90px;
    --space-md: 20px;
  }
  .stats-card__text {
    max-width: 100%;
  }
  .stats-card__number {
     margin: 0 0 20px 0;
  }
  .stats-card__title {
     margin: 0 0 15px 0;
  }
}

@media (max-width: 320px) {
  :root {
    --fs-h1: 36px;
    --fs-stat: 40px;
    --fs-h2: 18px;
    --fs-p: 15px;
  }
}




:root {
  --how-title-size: var(--tittle-font-size);
  --how-text-size: 24px;
  --how-index-size: 48px;
  --how-dash-size: 32px;
  --how-item-title-size: 36px;
  --how-button-size: 16px;
}

/* =========================================================
   how — секція "Як я працюю"
========================================================= */
.how {
  position: relative;
  background-color: var(--bg-dark);
  color: var(--text-dark-theme);
  padding: 160px 0;
}

.how__container {
  position: relative;
  z-index: 1;
}

.how__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--col-gap);
  align-items: start;
}

/* =========================================================
   how__intro — ліва колонка
========================================================= */
.how__intro {
  grid-column: 1 / 7;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  overflow: hidden;
  gap: 50px;
  position: -webkit-sticky; /* Для поддержки Safari */
  position: sticky;
  top: 160px;
}

.how__heading {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--how-title-size);
  line-height: 1.02;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.how__text {
  max-width: 460px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--how-text-size);
  line-height: 1.4;
  color: var(--text-dark-theme);
  opacity: 0.85;
}

.how__button {
  margin-top: var(--space-lg);
  display: inline-flex;
  align-items: stretch;
  border: none;
  border-radius: 4px;
  background-color: var(--accent);
  cursor: pointer;
  overflow: hidden;
}

.how__button-text {
  display: flex;
  align-items: center;
  padding: 22px 30px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--how-button-size);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-dark-theme);
  white-space: nowrap;
}

.how__button-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  border-left: 1px solid rgba(254, 242, 228, 0.3);
}

.how__button-icon-img {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(1);
}

/* =========================================================
   how__divider — вертикальна лінія-розділювач
========================================================= */
.how__divider {
  grid-column: 7 / 8;
  position: relative;
  height: 100%;
  min-height: 100%;
  align-self: stretch;
  display: flex;
  justify-content: center;
}

.how__divider::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background-color: rgba(254, 242, 228, 0.2);
}

.how__divider-marker {
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  background-color: var(--accent);
  z-index: 1;
   transition: opacity 0.25s ease, transform 0.25s ease;
   transform: translateX(-50%) scale(1);
   opacity: 1;
}

.how__divider-marker.is-hidden {
  opacity: 0;
  transform: translateX(-50%) scale(0.4);
}

/* =========================================================
   how__list — права колонка, кроки
========================================================= */
.how__list {
  grid-column: 8 / 13;
  list-style: none;
}

.how__item {
  padding-bottom: var(--space-lg);
  margin-bottom: var(--space-lg);
  border-bottom: 1px solid rgba(254, 242, 228, 0.2);
}

.how__item:last-child {
  margin-bottom: 0;
}

.how__item-heading {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-heading);
}

.how__item-index {
  font-weight: 600;
  font-size: var(--how-index-size);
  color: var(--accent);
  line-height: 1;
}

.how__item-dash {
  font-weight: 500;
  font-size: var(--how-dash-size);
  color: rgba(254, 242, 228, 0.4);
  line-height: 1;
}

.how__item-title {
  font-weight: 500;
  font-size: var(--how-item-title-size);
  color: var(--text-dark-theme);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1;
}

.how__item-text {
  margin-top: var(--space-sm);
  max-width: 640px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--how-text-size);
  line-height: 1.4;
  color: var(--text-dark-theme);
  opacity: 0.85;
}

/* =========================================================
   Адаптив
========================================================= */

/* Ноутбуки */
@media (max-width: 1440px) {
  :root {
    --how-text-size: 20px;
    --how-index-size: 40px;
    --how-dash-size: 28px;
    --how-item-title-size: 30px;
  }
}

/* Адаптація сіток та колонок */
@media (max-width: 1200px) {
  .how__intro {
    grid-column: 1 / 7;
  }

  .how__list {
    grid-column: 8 / 13;
  }

  .how__item-text {
    max-width: 100%;
  }
}

/* Планшети горизонтально — 2 колонки, спрощення сітки */
@media (max-width: 1024px) {
  .how__grid {
    column-gap: 24px;
  }

  .how__item {
   padding-bottom: var(--space-md);
   margin-bottom: var(--space-md);
  }

  .how__intro {
    grid-column: 1 / 7;
  }

  .how__divider {
    grid-column: 7 / 8;
  }

  .how__list {
    grid-column: 8 / 13;
  }
}

/* Планшети вертикально — вертикальний стекінг */
@media (max-width: 767px) {
  .how {
    padding: 80px 0;
  }

  .how__container {
    padding: 0 20px;
  }

  .how__grid {
    display: flex;
    flex-direction: column;
  }

  .how__intro {
    width: 100%;
    position: static;
  }

  .how__text {
    max-width: 100%;
  }

  .how__button {
    margin-top: var(--space-md);
  }

  .how__divider {
    display: none;
  }

  .how__list {
    width: 100%;
    margin-top: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(254, 242, 228, 0.2);
  }

  .how__item-text {
    max-width: 100%;
  }
}

/* Мобільні — картки в 1 колонку */
@media (max-width: 480px) {
  .how {
    padding: 60px 0;
  }

  .how__container {
    padding: 0 16px;
  }

  :root {
    --how-text-size: 16px;
    --how-index-size: 30px;
    --how-dash-size: 22px;
    --how-item-title-size: 20px;
  }

  .how__button {
    width: 100%;
  }

  .how__button-text {
    flex: 1;
    justify-content: center;
    padding: 18px 20px;
  }
}

@media (max-width: 424px) {
  .how__item-heading {
    flex-wrap: wrap;
  }
}


.faq {
  background-color: var(--bg-light);
  color: var(--text-light-theme);
  padding-top: var(--section-gap);
  padding-bottom: var(--section-gap);
  position: relative;
  overflow: clip;
}

.faq__container {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--col-gap);
  position: relative;
  z-index: 1;
}

/* LEFT COLUMN */
.faq__left {
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-lg);
  position: sticky;
  top: var(--space-lg);
  align-self: start;
}

.faq__heading {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--tittle-font-size);
  line-height: 1;
  margin: 0;
}

.faq__heading-accent {
  color: var(--accent);
}

.faq__subtitle {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.4;
  margin: 0;
  max-width: 320px;
}

/* RIGHT COLUMN */
.faq__right {
  grid-column: 6 / span 7;
  display: flex;
  flex-direction: column;
}

.faq__list {
  --faq-left-col: 100px;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

/* ===================== ACCORDION ITEM ===================== */

.faq-item {
  border-bottom: 1px solid rgba(23, 23, 23, 0.15);
}

.faq-item__heading {
  margin: 0;
}

.faq-item__header {
  all: unset;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: var(--space-md);
  width: 100%;
  padding: var(--space-md) 0;
  cursor: pointer;
}

.faq-item__header:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
}

.faq-item__header:hover .faq-item__title {
  color: var(--accent);
}

.faq-item__left {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--accent);
  flex: 0 0 var(--faq-left-col);
}

.faq-item__arrow {
  width: 13px;
  height: 19px;
}

.faq-item__number {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 48px;
  color: var(--accent);
}

.faq-item__title {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 36px;
  color: var(--text-light-theme);
  flex: 1 1 auto;
  text-align: left;
  transition: color 0.2s ease;
}

.faq-item__plus {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  color: var(--accent);
  opacity: 0.6;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.35s ease, opacity 0.2s ease;
}

.faq-item__header:hover .faq-item__plus {
  opacity: 1;
}

.faq-item.is-open .faq-item__plus {
  transform: rotate(45deg);
  opacity: 1;
}

.faq-item__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}

.faq-item__panel-inner {
  overflow: hidden;
}

.faq-item.is-open .faq-item__panel {
  grid-template-rows: 1fr;
}

.faq-item__subtext {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.5;
  margin: 0;
  padding: 0 0 var(--space-md) calc(var(--faq-left-col) + var(--space-md));
  color: var(--text-light-theme);
  opacity: 0.7;
  max-width: 640px;
}

/* ===================== RESPONSIVE ===================== */

@media (max-width: 1440px) {
  .faq__subtitle {
    font-size: 20px;
  }

  .faq-item__title {
    font-size: 30px;
  }
}

@media (max-width: 1200px) {
  .faq__left {
    grid-column: span 5;
  }

  .faq__right {
    grid-column: 6 / span 7;
  }
}

@media (max-width: 1024px) {
  .faq__container {
    grid-template-columns: repeat(2, 1fr);
  }

  .faq__left {
    grid-column: span 2;
    position: static;
    gap: 30px;
  }

  .faq__right {
    grid-column: span 2;
  }

  .faq-item__title {
    font-size: 26px;
  }
}

@media (max-width: 768px) {
  .faq__container {
    grid-template-columns: 1fr;
  }

  .faq__left {
    grid-column: 1;
  }

  .faq__right {
    grid-column: 1;
  }

  .faq__subtitle {
    font-size: 18px;
    max-width: 100%;
  }

  .faq-item__header {
    row-gap: var(--space-xs);
  }

  .faq-item__number {
    font-size: 24px;
  }

  .faq-item__title {
    font-size: 16px;
  }

  .faq-item__subtext {
    font-size: 14px;
  }

  .faq-item__left {
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .faq__subtitle {
    font-size: 16px;
  }

  .faq-item__header {
    padding: var(--space-xs) 0;
  }

  .faq__list {
    --faq-left-col: 70px;
  }

  .faq-item__left {
    gap: 8px;
  }

  .faq-item__arrow {
    width: 10px;
    height: 15px;
  }

  .faq-item__plus {
    width: 16px;
    height: 16px;
  }
}

/* ФИКС ДЛЯ УЛЬТРА-УЗКИХ ЭКРАНОВ 320-425px */
@media (max-width: 425px) {
  .faq__list {
    --faq-left-col: 48px;
  }

  .faq-item__header {
    display: grid;
    grid-template-columns: var(--faq-left-col) 1fr auto;
    column-gap: 15px;
    align-items: start;
    padding: 12px 0;
  }

  .faq-item__left {
    grid-column: 1;
    grid-row: 1;
    align-self: start;
    margin-top: 2px;
    flex: none;
  }

  .faq-item__title {
    grid-column: 2;
    grid-row: 1;
    font-size: 15px;
    line-height: 1.3;
    word-wrap: break-word;
  }

  .faq-item__plus {
    grid-column: 3;
    grid-row: 1;
    align-self: start;
    margin-top: 2px;
  }

  .faq-item__subtext {
    padding: 0 0 var(--space-md) calc(var(--faq-left-col) + 8px);
    font-size: 14px;
  }
}



.contacts {
  position: relative;
  overflow: hidden;
  padding: var(--section-gap) 0;
}

.contacts__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--col-gap);
  align-items: start;
}

.contacts__info {
  grid-column: 1 / 7;
  display: flex;
  flex-direction: column;
}

.contacts__title {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--tittle-font-size);
  line-height: 1;
  color: var(--accent);
}

.contacts__list {
  list-style: none;
  margin: var(--space-lg) 0 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.contacts__item {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contacts__label {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--accent);
}

.contacts__value {
  font-family: var(--font-body);
  font-size: 28px;
  font-weight: 500;
  color: var(--text-dark-theme);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: opacity 0.2s ease;
}

.contacts__value:hover {
  opacity: 0.75;
}

.contacts__value:focus-visible {
  outline: 2px solid var(--text-dark-theme);
  outline-offset: 4px;
}

.contacts__form {
  grid-column: 7 / 13;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--col-gap);
}

.contacts__field {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contacts-service {
  position: relative;
  z-index: 2;
}

.contacts__field--full {
  grid-column: 1 / -1;
}

.contacts__field-label {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--text-dark-theme);
}

.contacts__input,
.contacts__textarea,
.contacts__select {
  width: 100%;
  background-color: rgba(254, 242, 228, 0.03);
  border: 1px solid var(--accent);
  border-radius: 2px;
  padding: 20px 25px;
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  color: var(--text-dark-theme);
}

.contacts__input::placeholder,
.contacts__textarea::placeholder {
  color: rgba(254, 242, 228, 0.4);
}

.contacts__input:focus,
.contacts__textarea:focus,
.contacts__select:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(198, 0, 0, 0.35);
}

.contacts__textarea {
  min-height: 130px;
  resize: vertical;
}

.contacts__select-wrapper {
  position: relative;
}

.contacts__select {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  text-align: left;
}

.contacts__select-text {
  font-family: var(--font-body);
  font-size: 18px;
  color: rgba(254, 242, 228, 0.4);
}

.contacts__select-text--filled {
  color: var(--text-dark-theme);
}

.contacts__select-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  filter: brightness(0) invert(1);
  transition: transform 0.2s ease;
  fill: var(--accent);
}

.contacts__select-icon--open {
  transform: rotate(90deg);
}

.contacts__select-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 10;
  list-style: none;
  margin: 0;
  max-height: 240px;
  overflow-y: auto;
  background-color: var(--bg-dark);
  border: 1px solid var(--accent);
  border-radius: 2px;
}

.contacts__select-option {
  padding: 12px 25px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-dark-theme);
  cursor: pointer;
}

.contacts__select-option:hover,
.contacts__select-option:focus-visible {
  background-color: rgba(198, 0, 0, 0.15);
  outline: none;
}

.contacts__actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 1200px) {
  .contacts__value {
    font-size: 24px;
  }

  .contacts__input,
  .contacts__textarea,
  .contacts__select {
    padding: 18px 20px;
    font-size: 16px;
  }
}

@media (max-width: 1024px) {
   .contacts__grid {
      display: block;
   }
  .contacts__info {
    display: flex;
   justify-content: space-between;
   flex-direction: row;
    margin-bottom: var(--space-lg);
  }

  .contacts__list {
   margin: 0;
   gap: var(--space-sm);
  }
  .contacts__form {
    grid-column: 1 / 13;
  }
}

@media (max-width: 768px) {
   .contacts__info {
      flex-direction: column;
      gap: var(--space-md);
   }
  .contacts__form {
    grid-template-columns: 1fr;
  }

  .contacts__field--full {
    grid-column: 1 / -1;
  }

  .contacts__actions {
    justify-content: stretch;
  }

  .contacts__actions .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .contacts__value {
    font-size: 16px;
  }

  .contacts__label {
    font-size: 12px;
  }

  .contacts__list {
   gap: var(--space-xs);
  }

  .contacts__input,
  .contacts__textarea,
  .contacts__select {
    padding: 16px 18px;
    font-size: 15px;
  }
}



.cta {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
  background-color: var(--bg-light);
}

.cta__title {
  position: relative;
  z-index: 3;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 64px;
  line-height: 1.05;
  color: var(--accent);
  max-width: 50%;
  margin-bottom: 160px;
}

.cta__bottom {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.cta__nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  list-style: none;
}

.cta__nav-link {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 36px;
  color: var(--text-light-theme);
  transition: color 0.2s ease;
}

.cta__nav-link:hover {
  color: var(--accent);
}

.cta__contacts {
  display: flex;
  gap: var(--space-lg);
  align-items: flex-end;
}

.cta__contact-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.cta__contact-label {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 18px;
  color: var(--accent);
  letter-spacing: 0.05em;
}

.cta__contact-link {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 24px;
  color: var(--text-light-theme);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.cta__contact-link:hover {
  border-color: var(--text-light-theme);
}

/* ---------- 1440px ---------- */
@media (max-width: 1440px) {
  .cta__title {
    margin-bottom: 100px;
  }
  .cta__nav-link {
    font-size: 28px;
  }
  .cta__contact-link {
    font-size: 20px;
  }
}

/* ---------- 1200px ---------- */
@media (max-width: 1200px) {
  .cta__title {
    margin-bottom: 80px;
    max-width: 900px;
  }
}

/* ---------- 1023px ---------- */
@media (max-width: 1023px) {
  .cta {
    padding: 50px 0;
  }
  .cta__title {
    margin-bottom: 60px;
    width: 100%;
  }
  .cta__bottom {
    align-items: flex-start;
  }
  .cta__nav-link {
    font-size: 24px;
  }
  .cta__contacts {
    gap: var(--space-md);
  }
}

/* ---------- 767px ---------- */
@media (max-width: 767px) {
  .cta__bottom {
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
  }
  .cta__title {
    margin-bottom: var(--space-lg);
    font-size: 32px;
    text-align: center;
  }
  .cta__nav-item {
    text-align: center;
  }
  .cta__nav-link {
    font-size: 20px;
  }
  .cta__contacts {
    flex-direction: column;
    gap: var(--space-md);
    width: 100%;
    align-items: center;
  }
  .cta__contact-item {
    text-align: center;
  }
  .cta__contact-link {
    font-size: 18px;
  }
}

/* ---------- 480px ---------- */
@media (max-width: 480px) {
  .cta__nav {
    gap: var(--space-sm);
  }
}

/* ---------- 424px ---------- */
@media (max-width: 424px) {
  .cta__nav-link {
    font-size: 18px;
  }
  .cta__contact-label {
    font-size: 14px;
  }
  .cta__contact-link {
    font-size: 16px;
  }
}

/* ==========================================================================
   Анимация появления (fade-in-up)
   ========================================================================== */

/* 1. Базовое состояние для ВСЕХ элементов с классом fade-in-up */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 1s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

/* 2. Состояние видимости (работает и для обычных элементов при скролле) */
.fade-in-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.stage__media.is-visible {
  opacity: 0.5;
}
/* 
   КРИТИЧЕСКИЙ ФИКС 1: 
   Снимаем CSS transitions ТОЛЬКО с элементов внутри .stage после 1.2с,
   чтобы JS мог без задержек менять opacity первого экрана от скролла.
   Обычные элементы вне .stage этот сброс НЕ ЗАТРАГИВАЕТ!
*/
/* Додайте виключення :not(.hero__footer-link) */
.entrance-done .stage .fade-in-up:not(.hero__footer-link, .about__portfolio-thumb, .about__text, .about__title span, .about__text, .about__portfolio-label, .about__portfolio-index, .btn, .stage__media, .hero__title-line, .hero__text) {
  transition: none !important;
  transform: none !important;
}

.entrance-done .stage__layer .fade-in-up,
.entrance-done .stage__footer .fade-in-up:not(.hero__footer-link, .about__portfolio-thumb, .about__text, .about__title span, .about__text, .about__portfolio-label, .about__portfolio-index, .btn, .stage__media, .hero__title-line, .hero__text) {
  opacity: 1 !important;
}



/* ==========================================================================
   LIVE CHAT WIDGET
   ========================================================================== */
.lc-root {
  --lc-panel-w: 392px;
  --lc-panel-h: min(624px, 82vh);
  font-family: var(--font-body);
}
 
/* ---- Спливаюча підказка (тизер) ---- */
.lc-teaser {
  position: fixed;
  right: 28px;
  bottom: 106px;
  z-index: 9998;
  max-width: 272px;
  background: #1f1f1f;
  border: 1px solid rgba(198, 0, 0, 0.4);
  color: var(--text-dark-theme);
  padding: 16px 40px 16px 18px;
  font-size: 14px;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(12px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}
.lc-teaser.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.lc-teaser__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(254, 242, 228, 0.5);
  font-size: 16px;
  line-height: 1;
}
.lc-teaser__close:hover { color: var(--text-dark-theme); }
.lc-teaser::after {
  content: "";
  position: absolute;
  right: 26px;
  bottom: -7px;
  width: 14px;
  height: 14px;
  background: #1f1f1f;
  border-right: 1px solid rgba(198, 0, 0, 0.4);
  border-bottom: 1px solid rgba(198, 0, 0, 0.4);
  transform: rotate(45deg);
}
 
/* ---- FAB кнопка ---- */
.lc-fab {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 9999;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--text-dark-theme);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 28px rgba(198, 0, 0, 0.45), 0 0 0 0 rgba(198, 0, 0, 0.5);
  animation: lc-pulse 2.6s ease-out infinite;
  transition: transform 0.2s ease;
}
.lc-fab:hover { transform: scale(1.06); }
.lc-fab:focus-visible { outline: 2px solid var(--text-dark-theme); outline-offset: 3px; }
.lc-fab svg { width: 24px; height: 24px; transition: opacity 0.15s ease, transform 0.25s ease; }
.lc-fab .lc-icon-close { position: absolute; opacity: 0; transform: rotate(-45deg) scale(0.7); }
.lc-fab.is-open .lc-icon-chat { display: none; }
.lc-fab.is-open .lc-icon-close { opacity: 1; transform: rotate(0) scale(1); position: static; }
.lc-fab__dot {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #35C46A;
  border: 2px solid var(--bg-light);
}
.lc-fab.is-open .lc-fab__dot { display: none; }
 
@keyframes lc-pulse {
  0% { box-shadow: 0 8px 28px rgba(198, 0, 0, 0.45), 0 0 0 0 rgba(198, 0, 0, 0.35); }
  70% { box-shadow: 0 8px 28px rgba(198, 0, 0, 0.45), 0 0 0 14px rgba(198, 0, 0, 0); }
  100% { box-shadow: 0 8px 28px rgba(198, 0, 0, 0.45), 0 0 0 0 rgba(198, 0, 0, 0); }
}
 
/* ---- Панель чату ---- */
.lc-panel {
  position: fixed;
  right: 28px;
  bottom: 100px;
  z-index: 9999;
  width: var(--lc-panel-w);
  height: var(--lc-panel-h);
  background: var(--bg-dark);
  color: var(--text-dark-theme);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: translateY(16px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.28s ease, transform 0.28s ease;
}
.lc-panel.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
 
.lc-panel__header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(254, 242, 228, 0.1);
  flex-shrink: 0;
}
.lc-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}
.lc-header__info { min-width: 0; }
.lc-header__name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.01em;
}
.lc-header__status {
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: rgba(254, 242, 228, 0.55);
}
.lc-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #35C46A;
  flex-shrink: 0;
  animation: lc-blink 2s ease-in-out infinite;
}
@keyframes lc-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
 
.lc-header__close {
  margin-left: auto;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(254, 242, 228, 0.6);
  flex-shrink: 0;
}
.lc-header__close:hover { color: var(--text-dark-theme); }
.lc-header__close svg { width: 16px; height: 16px; }
 
/* ---- Стрічка повідомлень ---- */
.lc-panel__body {
  position: relative;
  z-index: 1;
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lc-msg { display: flex; flex-direction: column; max-width: 82%; animation: lc-rise 0.25s ease; }
.lc-msg--op { align-self: flex-start; }
.lc-msg--client { align-self: flex-end; align-items: flex-end; }
.lc-msg__bubble {
  padding: 11px 14px;
  font-size: 13.5px;
  line-height: 1.5;
}
.lc-msg--op .lc-msg__bubble { background: #232323; color: var(--text-dark-theme); border-radius: 2px 10px 10px 10px; }
.lc-msg--client .lc-msg__bubble { background: var(--accent); color: var(--text-dark-theme); border-radius: 10px 2px 10px 10px; }
.lc-msg__meta {
  margin-top: 4px;
  font-size: 10.5px;
  color: rgba(254, 242, 228, 0.4);
  display: flex;
  gap: 5px;
  align-items: center;
  padding: 0 2px;
}
@keyframes lc-rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
 
.lc-typing { align-self: flex-start; }
.lc-typing .lc-msg__bubble { display: flex; gap: 4px; padding: 13px 16px; background: #232323; }
.lc-typing span {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(254, 242, 228, 0.5);
  animation: lc-typing-bounce 1.1s infinite ease-in-out;
}
.lc-typing span:nth-child(2) { animation-delay: 0.15s; }
.lc-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes lc-typing-bounce { 0%, 60%, 100% { transform: translateY(0); opacity: 0.5; } 30% { transform: translateY(-4px); opacity: 1; } }
 
/* ---- Швидкі відповіді ---- */
.lc-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 2px 2px 4px; }
.lc-chip {
  border: 1px solid rgba(198, 0, 0, 0.55);
  color: var(--text-dark-theme);
  background: transparent;
  padding: 9px 13px;
  font-size: 12px;
  letter-spacing: 0.02em;
  transition: background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.lc-chip:hover { background: rgba(198, 0, 0, 0.15); border-color: var(--accent); }
.lc-chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
 
/* ---- Футер: гейт email / композер ---- */
.lc-panel__footer {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  border-top: 1px solid rgba(254, 242, 228, 0.1);
  padding: 16px 20px 18px;
}
 
.lc-gate { transition: opacity 0.2s ease; }
.lc-gate.is-shake { animation: lc-shake 0.4s ease; }
@keyframes lc-shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-5px); }
  40%, 80% { transform: translateX(5px); }
}
.lc-gate__label {
  display: block;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(254, 242, 228, 0.5);
  margin-bottom: 6px;
}
.lc-gate__row { display: flex; gap: 8px; }
.lc-input {
  flex: 1;
  min-width: 0;
  background: #1f1f1f;
  border: 1px solid rgba(254, 242, 228, 0.18);
  color: var(--text-dark-theme);
  font-family: var(--font-body);
  font-size: 13.5px;
  padding: 12px 13px;
  transition: border-color 0.15s ease;
}
.lc-input::placeholder { color: rgba(254, 242, 228, 0.35); }
.lc-input:focus { outline: none; border-color: var(--accent); }
.lc-gate.is-invalid .lc-input { border-color: var(--accent); }
.lc-gate__hint {
  margin-top: 8px;
  font-size: 11.5px;
  color: rgba(254, 242, 228, 0.42);
}
.lc-gate__hint.is-error { color: var(--accent); }
.lc-gate__submit {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  background: var(--accent);
  color: var(--text-dark-theme);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.15s ease;
}
.lc-gate__submit:hover { opacity: 0.88; }
.lc-gate__submit svg { width: 17px; height: 17px; }
 
.lc-composer {
  display: none;
  align-items: center;
  gap: 8px;
}
.lc-composer.is-active { display: flex; }
.lc-composer .lc-input { padding: 12px 14px; }

.lc-attach {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(254, 242, 228, 0.6);
  transition: color 0.15s ease;
}
.lc-attach:hover { color: var(--text-dark-theme); }
.lc-attach svg { width: 20px; height: 20px; }

.lc-attach-preview {
  display: flex;
  gap: 8px;
  padding: 10px 20px 0;
}
.lc-attach-item {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 4px;
  overflow: hidden;
  opacity: 0.5;
  border: 1px solid rgba(254, 242, 228, 0.2);
}
.lc-attach-item.is-ready { opacity: 1; border-color: var(--accent); }
.lc-attach-item img { width: 100%; height: 100%; object-fit: cover; display: block; }

.lc-msg__image {
  display: block;
  max-width: 220px;
  max-height: 220px;
  border-radius: 6px;
  margin-bottom: 6px;
  object-fit: cover;
}

.lc-send {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  background: var(--accent);
  color: var(--text-dark-theme);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.15s ease, transform 0.1s ease;
}
.lc-send:hover { opacity: 0.88; }
.lc-send:active { transform: scale(0.95); }
.lc-send svg { width: 18px; height: 18px; }
 
.lc-sys {
  align-self: center;
  font-size: 11px;
  color: rgba(254, 242, 228, 0.4);
  padding: 2px 10px;
  border-top: 1px solid rgba(254, 242, 228, 0.08);
  border-bottom: 1px solid rgba(254, 242, 228, 0.08);
  margin: 4px 0;
}
 
/* ---- Мобільна адаптація: повноекранний чат ---- */
@media (max-width: 480px) {
  .lc-panel {
    right: 0;
    bottom: 0;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
  }
  .lc-teaser { right: 16px; left: 16px; max-width: none; bottom: 96px; }
  .lc-fab { right: 20px; bottom: 20px; }
}


/* Базовые стили для сообщения */
.contacts__form-message {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
  position: fixed;
  z-index: 3;
  top: 30px;
  right: 30px;
  
  /* Подготовка для анимации */
  opacity: 0;
  transform: translateY(-10px);
  animation: formMessageFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Стили для успешной отправки */
.contacts__form-message[data-type="success"] {
  background-color: #f0fdf4; /* Светло-зеленый фон */
  color: #15803d;            /* Насыщенный зеленый текст */
  border: 1px solid #bbf7d0;
}

/* Стили для ошибки */
.contacts__form-message[data-type="error"] {
  background-color: #fef2f2; /* Светло-красный фон */
  color: #b91c1c;            /* Насыщенный красный текст */
  border: 1px solid #fecaca;
}

/* Анимация плавного появления */
@keyframes formMessageFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Класс, который добавляет JS через 5 секунд */
.contacts__form-message.is-hiding {
  animation: formMessageFadeOut 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Сама анимация исчезновения (плавно уходит вверх и растворяется) */
@keyframes formMessageFadeOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}

/* ==========================================================================
   Кастомный курсор (CTA) для блока работ
   ========================================================================== */
.cursor-cta {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none; /* Пропускает клики сквозь себя на картинку */
  z-index: 9999;
  
  /* Стилизация под дизайн-систему */
  background-color: var(--accent);
  color: var(--text-dark-theme);
  padding: 12px 24px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
  
  /* Анимация появления */
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s ease;

  display: flex;
  align-items: center;
  gap: 15px;
}

.cursor-cta__icon {
  width: 15px;
  height: 15px;
}

/* Класс, который JS будет добавлять при наведении */
.cursor-cta.is-visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Скрываем стандартный курсор при наведении на картинку */
.works__media {
  display: block; /* Важно, так как теперь это тег <a> */
  cursor: none;
  position: relative;
  overflow: hidden;
}

/* Отключаем кастомный курсор на мобильных устройствах (тачскринах) */
@media (hover: none) and (pointer: coarse) {
  .cursor-cta {
    display: none !important;
  }
  .works__media {
    cursor: pointer;
  }
}


/* ==========================================================================
WORKS — общая структура
========================================================================== */
.works {
    position: relative;
    background-color: var(--bg-light);
    color: var(--text-light-theme);
}

.works__intro {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.works__intro-label {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: var(--tittle-font-size);
    line-height: 1.05;
}

.works__intro-label span {
    color: var(--accent);
}

/* pin-track — высокий контейнер, внутри которого JS "пинит" .works__stage через position: sticky */
.works__track {
    position: relative;
}

.works__stage {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    perspective: 1600px;
    perspective-origin: 50% 50%;
}

.works__project {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
    padding: 0 90px;
    transform-style: preserve-3d;
    will-change: transform, opacity, filter;
    opacity: 0;
    pointer-events: none;
    transition: 0.2s all;
}

.works__project--reverse .works__media {
    order: 2;
}

.works__project--reverse .works__content {
    order: 1;
}

.works__media {
    position: relative;
    width: 100%;
    aspect-ratio: 1.40/1;
    overflow: hidden;
    will-change: transform, filter;
}

.works__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    will-change: transform;
}

.works__content {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    will-change: transform, opacity;
}

.works__eyebrow {
    font-family: var(--font-body);
    font-size: 14px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
}

.works__index {
    font-family: var(--font-heading);
    font-size: 16px;
    letter-spacing: 0.1em;
    opacity: .55;
}

.works__progress {
    position: absolute;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 14px;
    z-index: 5;
}

.works__progress-dot {
    width: 6px;
    height: 26px;
    background: var(--text-light-theme);
    opacity: .18;
    transition: opacity .4s ease, background-color .4s ease;
}

.works__progress-dot.is-active {
    opacity: 1;
    background: var(--accent);
}

/* ==========================================================================
MOBILE
========================================================================== */
.works--mobile {
    display: none;
}

@media (max-width: 1023px) {
    .works--desktop {
      display: none;
    }

    .works--mobile {
      display: block;
    }

    .works-m {
      position: relative;
      background: var(--bg-light);
    }

    .works-m__heading {
      font-family: var(--font-heading);
      font-weight: 600;
      font-size: 40px;
      padding: 60px 20px 30px;
    }

    .works-m__heading span {
      color: var(--accent);
    }

    .works-m__track {
      position: relative;
    }

    .works-m__stage {
      position: sticky;
      top: 0;
      height: 100vh;
      overflow: hidden;
    }

    .works-m__project {
      position: absolute;
      inset: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      opacity: 0;
      will-change: transform, opacity;
    }

    .works-m__media {
      position: relative;
      width: 70%;
      aspect-ratio: 1.40/1;
      overflow: hidden;
      will-change: transform;
    }

    .works-m__image {
      display: block;
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .works-m__panel {
      position: absolute;
      left: 0;
      right: 0;
      bottom: 40px;
      padding: 0 20px;
      display: flex;
      flex-direction: column;
      gap: 8px;
      opacity: 0;
      will-change: transform, opacity;
    }

    .works-m__eyebrow {
      font-size: 12px;
      letter-spacing: 0.16em;
      text-transform: uppercase;
      color: var(--accent);
      font-family: var(--font-body);
    }

    .works-m__title {
      font-family: var(--font-heading);
      font-weight: 500;
      font-size: 24px;
    }

    .works-m__text {
      font-size: 15px;
      line-height: 1.55;
    }

    .works-m__index {
      font-size: 13px;
      opacity: .55;
      font-family: var(--font-heading);
    }
}

      /* ===== 480px ===== */
@media (max-width: 480px) {
  .works-m__media {
    width: 90%;
  }
}


/* ==========================================================================
   PRELOADER (ВАУ-АНИМАЦИЯ ВХОДА/ВЫХОДА)
   ========================================================================== */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto; /* Блокируем клики пока грузится */
}

/* Сама "завеса" */
.preloader__bg {
  position: absolute;
  inset: 0;
  background-color: var(--bg-dark);
  transform-origin: top;
  transition: transform 0.5s cubic-bezier(0.85, 0, 0.15, 1);
}

/* Логотип по центру */
.preloader__logo {
  position: relative;
  z-index: 2;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(64px, 8vw, 120px);
  color: transparent;
  -webkit-text-stroke: 2px var(--accent);
  transition: opacity 0.3s ease, transform 1s cubic-bezier(0.85, 0, 0.15, 1);
}

/* --- Стан КОЛИ ЗАВАНТАЖИЛОСЬ (підняття завіси вгору) --- */
.preloader.is-loaded {
  pointer-events: none;
}
.preloader.is-loaded .preloader__bg {
  transform-origin: top;
  transform: scaleY(0);
}
.preloader.is-loaded .preloader__logo {
  opacity: 0;
  transform: translateY(-60px) scale(0.9);
}

/* --- Стан ВИХОДУ (опускання завіси зверху вниз) --- */
.preloader.is-exiting {
  pointer-events: auto;
}
.preloader.is-exiting .preloader__bg {
  /* Щоб завіса падала зверху, робимо origin top і scale 1 */
  transform-origin: top;
  transform: scaleY(1);
  /* Робимо анімацію падіння трохи швидшою */
  transition: transform 0.6s cubic-bezier(0.85, 0, 0.15, 1);
}
.preloader.is-exiting .preloader__logo {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: opacity 0.4s ease 0.2s, transform 0.6s cubic-bezier(0.85, 0, 0.15, 1) 0.2s;
}