:root {
  --dark: #0f1728;
  --dark-2: #17233b;
  --text: #171b22;
  --muted: #6b7280;
  --line: rgba(15, 23, 40, .14);
  --light: #f5f7fb;
  --white: #fff;
  --accent: #9fb4ce;
  --gold: #c8a46a;
  --container: 1600px;
}
* {
  box-sizing: border-box
}
html {
  scroll-behavior: smooth
}
body {
  margin: 0;
  font-family: Manrope, Arial, sans-serif;
  color: var(--text);
  background: var(--white)
}
a {
  color: inherit;
  text-decoration: none
}
.container {
  width: min(var(--container), calc(100% - 64px));
  margin: 0 auto
}
/* ==========================================================================
   АНИМАЦИЯ ПОЯВЛЕНИЯ ШАПКИ (site-header)
   ========================================================================== */

/* Исходное состояние шапки до загрузки страницы */
.site-header {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  right: 0;
  padding: 16px 0;
  color: #fff;
  background: rgba(0, 0, 0, 0);
  
  /* Начальное состояние: граница скрыта, размытия нет */
  border-bottom: 1px solid rgba(255, 255, 255, 0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  
  /* Плавный переход для самой плашки при активации класса */
  transition: 
    border-bottom 1.2s cubic-bezier(0.25, 1, 0.5, 1),
    backdrop-filter 1.2s cubic-bezier(0.25, 1, 0.5, 1),
    background-color 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Скрываем внутренние элементы (смещение вниз + прозрачность) */
.site-header .brand,
.site-header .nav a,
.site-header .header-phone {
  opacity: 0;
  transform: translateY(20px);
  will-change: transform, opacity;
  transition: 
    transform 1.2s cubic-bezier(0.25, 1, 0.5, 1), 
    opacity 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

/* ==========================================================================
   АКТИВНОЕ СОСТОЯНИЕ (Класс .page-loaded на body)
   ========================================================================== */

/* Проявление плашки шапки */
body.page-loaded .site-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  /* Легкая темная подложка, чтобы текст не сливался на светлых участках */
  background: rgba(15, 23, 40, 0.15); 
}

/* Появление контента шапки */
body.page-loaded .site-header .brand,
body.page-loaded .site-header .nav a,
body.page-loaded .site-header .header-phone {
  opacity: 1;
  transform: translateY(0);
}

/* Пошаговая задержка (Stagger Effect) для премиальной динамики */

/* 1. Сначала плавно появляется логотип */
body.page-loaded .site-header .brand {
  transition-delay: 0.1s;
}

/* 2. Затем по очереди выплывают пункты меню */
body.page-loaded .site-header .nav a:nth-child(1) { transition-delay: 0.2s; }
body.page-loaded .site-header .nav a:nth-child(2) { transition-delay: 0.3s; }
body.page-loaded .site-header .nav a:nth-child(3) { transition-delay: 0.4s; }
body.page-loaded .site-header .nav a:nth-child(4) { transition-delay: 0.5s; }

/* 3. Последним эффектно завершает композицию номер телефона */
body.page-loaded .site-header .header-phone {
  transition-delay: 0.6s;
}
.site-header:before {
  content: "";
    bottom: 0;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: -1;
    transition: bottom .3s ease-in-out 0s, backdrop-filter .3s ease 0s;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px
}
.brand {
  display: flex;
    align-items: center;
    gap: 14px;
    font-weight: 800;
    letter-spacing: .06em;
    font-size: 24px;
}
.brand svg {
  width: 240px;
    height: 60px;
}
.brand-mark {
  width: 44px;
  height: 44px;
  border: 2px solid rgba(255, 255, 255, .84);
  display: grid;
  place-items: center;
  transform: rotate(45deg)
}
.brand-mark span {
  display: block;
  width: 18px;
  height: 18px;
  border-left: 5px solid #fff;
  border-top: 5px solid #fff;
  transform: rotate(0deg)
}
.nav {
  display: flex;
  gap: 34px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .82)
}
.nav a {
  position: relative
}
.nav a:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 1px;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left;
  transition: .25s
}
.nav a:hover:after {
  transform: scaleX(1);
}
.header-phone {
  font-weight: 700;
  letter-spacing: .03em
}
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #fff;
  background-color: #0f1728;
  padding-bottom: 0;
}
.hero-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1); 
    transition-delay: 0.3s;
    transition: transform 20s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

.hero.hero-loaded .hero-img {
    transform: scale(1.2); 
}
.hero:before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.2;
  background: radial-gradient(circle at 68% 18%, rgba(255, 255, 255, .04), transparent 30%), linear-gradient(90deg, rgba(8, 13, 23, .92), rgba(8, 13, 23, .44) 48%, rgba(8, 13, 23, .82)), linear-gradient(0deg, rgba(8, 13, 23, .95), rgba(8, 13, 23, .02) 45%)
}
.hero:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 0 24%, rgba(255, 255, 255, .10) 24.2% 25.5%, transparent 25.8% 43%, rgba(255, 255, 255, .08) 43.2% 44.4%, transparent 44.7%)
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 180px 0 90px;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgba(255, 255, 255, .72);
  font-size: 14px;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 34px
}
.eyebrow:before {
  content: "";
  width: 78px;
  height: 1px;
  background: rgba(255, 255, 255, .46)
}
h1 {
  font-size: clamp(48px, 6.2vw, 116px);
  line-height: .94;
  letter-spacing: -.065em;
  margin: 0 0 32px;
  max-width: 1100px;
  font-weight: 700
}
.lead {
  max-width: 720px;
  font-size: clamp(18px, 1.45vw, 25px);
  line-height: 1.55;
  color: rgba(255, 255, 255, .78);
  margin: 0 0 46px
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 82px
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 0 28px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: .25s ease
}
.btn-primary {
  background: #fff;
  color: var(--gold);
  position: relative;

}
.btn-primary span {
  position: relative;
  z-index: 2;
}
.btn-primary:before {
  content: '';
  position: absolute;
  inset: 0;
  transition: .25s ease;
  border: 1px solid var(--gold);
  border-radius: 99px;
  z-index: 2;
  transition-delay: 0.25s;
}
.btn-primary:hover:before {
  inset: 0.25rem;
  border-color: #fff;
}
.btn-primary:after {
  content: '';
    position: absolute;
    inset: 0;
    width: 0px;
    height: 0px;
    transition: .25s ease;
    background-color: var(--gold);
    border-radius: 99px;
    margin: auto;
  opacity: 0;
}
.btn-primary:hover:after {
  width: 100%;
  height: 100%;
  opacity: 1;
}
.btn-primary:hover {
  color: #fff;
}
.btn-ghost {
  border: 1px solid rgba(255, 255, 255, .34);
  color: #fff
}
.btn-ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, .08)
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255, 255, 255, .22);
  border-bottom: 1px solid rgba(255, 255, 255, .16)
}
.stat {
  padding: 28px 34px;
  border-right: 1px solid rgba(255, 255, 255, .16)
}
.stat:last-child {
  border-right: 0
}
.stat strong {
  display: block;
  font-size: clamp(34px, 3vw, 54px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -.04em
}
.stat span {
  display: block;
  margin-top: 12px;
  color: rgba(255, 255, 255, .65);
  font-size: 14px;
  line-height: 1.45
}
section {
  padding: 110px 0
}
.section-head {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  align-items: flex-end;
  margin-bottom: 56px
}
.section-kicker {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-weight: 300;
  color: var(--gold);
  margin-bottom: 18px
}
.section-title {
  font-size: 60px;
  line-height: 1;
  margin: 0;
  max-width: 860px
}
.section-text {
  max-width: 520px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
  margin: 0
}
.projects {
  background: var(--light)
}
.project-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 24px
}
.project-card {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  background: #111;
  color: #fff
}
.project-card.small {
  min-height: 248px
}
.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  filter: saturate(.95);
  transition: .7s
}
.project-card:hover img {
  transform: scale(1.04)
}
.project-card:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(5, 10, 20, .86), rgba(5, 10, 20, .08) 62%)
}
.project-info {
  position: absolute;
  z-index: 2;
  left: 32px;
  right: 32px;
  bottom: 30px
}
.project-info h3 {
  font-size: 32px;
  line-height: 1.08;
  margin: 0 0 16px;
  letter-spacing: -.04em
}
.project-meta {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, .72);
  font-size: 14px
}
.stack {
  display: grid;
  gap: 24px
}
.about-grid {
  display: grid;
  grid-template-columns: .72fr 1fr;
  gap: 80px;
  align-items: start
}
.about-text {
  font-size: 24px;
  line-height: 1.55;
  letter-spacing: -.02em
}
.competence-list {
  display: grid;
  border-top: 1px solid var(--line)
}
.competence {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 28px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line)
}
.competence b {
  font-size: 22px
}
.competence p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.6
}
.footer {
  background: var(--dark);
  color: #fff;
  padding: 72px 0
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  align-items: flex-end
}
.footer h2 {
  font-size: 48px;
  line-height: 1;
  letter-spacing: -.05em;
  margin: 0 0 18px
}
.footer p {
  color: rgba(255, 255, 255, .64);
  margin: 0
}
.footer .btn {
  border-color: rgba(255, 255, 255, .3)
}
@media(max-width:1000px) {
  .container {
    width: min(100% - 32px, var(--container))
  }
  .nav, .header-phone {
    display: none
  }
  .hero-stats {
    grid-template-columns: repeat(2, 1fr)
  }
  .stat:nth-child(2) {
    border-right: 0
  }
  .project-grid, .about-grid {
    grid-template-columns: 1fr
  }
  .section-head {
    display: block
  }
  .section-text {
    margin-top: 22px
  }
  .project-card, .project-card.small {
    min-height: 420px
  }
  .footer-inner {
    display: block
  }
  .footer .btn {
    margin-top: 28px
  }
}
@media(max-width:620px) {
  .site-header {
    padding: 18px 0
  }
  .brand {
    font-size: 18px
  }
  .brand-mark {
    width: 36px;
    height: 36px
  }
  .hero-content {
    padding-bottom: 46px
  }
  .hero-stats {
    grid-template-columns: 1fr
  }
  .stat {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .14);
    padding: 22px 0
  }
  .hero-actions {
    margin-bottom: 44px
  }
  .btn {
    width: 100%
  }
  section {
    padding: 72px 0
  }
  .project-info {
    left: 22px;
    right: 22px
  }
  .project-info h3 {
    font-size: 26px
  }
  .competence {
    grid-template-columns: 1fr;
    gap: 8px
  }
  .footer h2 {
    font-size: 38px
  }
}
.subtitle {
  color: var(--gold);
    text-transform: uppercase;
    font-size: 1rem;
    margin-bottom: 1rem;
    font-weight: 300;
}
h2 {
  margin: 0 0 0 0;
  font-size: 60px;
  font-weight: 400;
}
h2 span {
    color: var(--gold);
}
p {
    font-size: 1.5rem;
    line-height: 1.75;
}
.about-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}
.grid-container-left {
    flex: 1;
    display: grid;
    /* Створюємо 12 рівних колонок і 12 рядків */
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(12, 55px); /* Висота рядка фіксує пропорції композиції */
    position: relative;
    min-width: 550px;
}

/* Спільні стилі для обох паралакс-блоків */
.parallax-block {
    position: relative;
    width: 100%;
    height: 100%;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    
    /* Магія перетікання та паралаксу: */
    background-attachment: fixed; 
    background-position: bottom -10vw right 30vw;
    background-repeat: no-repeat;
    background-size: 1760px 1880px;
}

/* Позиціонування ВЕРХНЬОГО БЛОКУ (Стільці) */
.top-chair-block {
  grid-column: 4 / 12;
    grid-row: 1 / 10;
    background-image: url(about.jpg);
    z-index: 2;
}

/* Позиціонування НИЖНЬОГО БЛОКУ (Кухня) */
.bottom-kitchen-block {
  grid-column: 1 / 7;
    grid-row: 7 / 13;
    background-image: url(about.jpg);
    border: 8px solid #ffffff;
    z-index: 3;
}

/* ==========================================
   ДЕКОРАТИВНІ ЕЛЕМЕНТИ (Позиціонування в Grid)
   ========================================== */

/* Помаранчева сітка (ліворуч вгорі) */
.decor-grid {
    
    grid-row: 2 / 6;
}
.decor-grid svg {
  width: 100%;
    min-width: 184px;
}
.decor-grid--blue {
  opacity: 0.6;
  z-index: 1;
  grid-column: 2 / 4;
  overflow: hidden;
    display: flex;
    justify-content: flex-start;
}
.decor-grid--white {
  z-index: 4;
  position: relative;
  opacity: 0.4;
  grid-column: 4 / 6;
  overflow: hidden;
  display: flex;
    justify-content: flex-end;
}

/* Чорні діагональні лінії (праворуч внизу) */
.decor-black-lines {
    grid-column: 8 / 11;
    grid-row: 10 / 13;
    background-image: radial-gradient(#d98d5f 20%, transparent 20%);
    background-size: 15px 15px; /* Створює ефект точкової сітки */
    opacity: 0.4;
    z-index: 1; /* Позаду верхнього блоку */
    transform: rotate(0deg);
}

/* Базовий початковий стан елементів до появи */
.reveal-item {
    opacity: 0;
    transform: translateY(40px); /* Зсув вниз */
    /* cubic-bezier(0.25, 1, 0.5, 1) забезпечує преміальну плавність */
    transition: transform 1.6s cubic-bezier(0.25, 1, 0.5, 1), 
                opacity 1.6s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform, opacity; /* Оптимізація рендерингу для браузера */
}

/* Стан після спрацювання тригера скролу */
.reveal-item.revealed {
    opacity: 1;
    transform: translateY(0); /* Повернення на своє законне місце */
}

.hero:after {
  content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: var(--120px);
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0, rgba(0, 0, 0, 0.7) 50%);
    pointer-events: none;
    z-index: 1;
}
.parallax-inner {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
}
.img-parallax-container {
  position: relative;
  height: 90vh;
  min-height: 600px;
  overflow: hidden;
}
.img-parallax-container h2 {
    color: #fff;
    text-align: center;
    font-weight: 700;
}
.img-parallax-container:after {
  content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 1;
}
.img-parallax-target {
    position: absolute;
    top: -10%; /* Невеликий запас зверху, щоб картинка не «оголювала» краї при русі вниз */
    left: 0;
    width: 100%;
    height: 120%; /* Робимо картинку вищою за контейнер */
    object-fit: cover;
    
    /* Базове збільшення для паралаксу (як у Sminex) */
    scale: 1.2; 
    color: transparent;
    
    /* Вмикаємо 3D-прискорення відеокарти */
    will-change: transform;
    transform: translate3d(0, 0, 0); 
}

/* Загальні налаштування обгортки */
.sticky-container {
    position: relative;
    width: 100%;
}

/* Стікі панелі */
.sticky-panel {
    position: sticky;
    top: 0; /* Фіксує блок у самому верху екрану при досягненні */
    height: 100vh; /* На всю висоту екрану */
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 10%;
    overflow: hidden;
}

/* Задній фон для кожної панелі (робимо легкий паралакс при наїзді) */
.panel-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 110%; /* Трохи більша висота для паралаксу */
    background-size: cover;
    background-position: center;
    z-index: 1;
    transition: transform 1.6s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

/* Темне преміальне затемнення поверх фону, щоб текст легко читався */
.panel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 100%);
    z-index: 2;
}

/* Контент всередині блоку */
.panel-content {
  position: relative;
    z-index: 3;
    max-width: 600px;
    color: #ffffff;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s cubic-bezier(0.25, 1, 0.5, 1), transform 1s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: opacity, transform;
    webkit-transition: all .5s ease 0s;
    -o-transition: all .5s ease 0s;
    transition: all .5s ease 0s;
    position: relative;
    background: linear-gradient(90deg, rgb(255 255 255 / 5%) 0%, rgb(255 255 255 / 0%) 100%);
    text-align: left;
    padding: 2rem 2rem;
    border-left: 4px solid var(--gold);
}

/* Стилі для елементів тексту */
.panel-number {
    display: block;
    font-size: 20px;
    font-weight: 600;
    color: #c49a6c;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.panel-title {
    font-size: 48px;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 25px;
}

.panel-text {
    font-size: 16px;
    line-height: 1.7;
    color: #cccccc;
}

/* ==========================================
   АКТИВНИЙ СТАН: Коли блок зафіксувався (стікі)
   ========================================== */
.sticky-panel.active .panel-content {
    opacity: 1;
    transform: translateY(0); /* Текст плавно випливає */
}

.sticky-panel.active .panel-bg {
    transform: scale(1.05); /* Легке плавне наближення фону */
}
/* ==========================================
   3D АНИМАЦИЯ ДЛЯ СПАНОВ В ЗАГОЛОВКЕ
   ========================================== */
.hero-title {
  /* Сбрасываем overflow, чтобы 3D-объем не обрезался */
  overflow: visible; 
}

.hero-title span {
  display: block;
  width: fit-content;
  
  /* Исходное состояние: повернуто на -90 градусов в 3D */
  transform: perspective(2000px) rotateX(-90deg);
  transform-origin: top center;
  backface-visibility: hidden;
  opacity: 0;
  
  /* Оптимизация рендеринга */
  will-change: transform, opacity;
}

/* Ключевые кадры анимации разворота */
@keyframes rotate3D {
  0% {
    transform: perspective(2000px) rotateX(-90deg);
    opacity: 0;
  }
  100% {
    transform: perspective(2000px) rotateX(0deg);
    opacity: 1;
  }
}

/* Запуск анимации по классу .hero-loaded на родительском блоке */
.hero.hero-loaded .hero-title span {
  /* Твои параметры анимации */
  animation: rotate3D 0.8s ease-out forwards;
}

/* Пошаговая задержка (Stagger) по 0.4 секунды с учетом общего старта в 1.0 сек */
.hero.hero-loaded .hero-title span:nth-child(1) {
  animation-delay: 1.0s; /* Начинает вместе с шапкой */
}
.hero.hero-loaded .hero-title span:nth-child(2) {
  animation-delay: 1.4s; /* +0.4s */
}
.hero.hero-loaded .hero-title span:nth-child(3) {
  animation-delay: 1.8s; /* +0.4s */
}


/* ==========================================
   ЭФФЕКТ REVEAL-ITEM ДЛЯ ТЕКСТА И КНОПОК
   ========================================== */
.hero .reveal-item {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.2s cubic-bezier(0.25, 1, 0.5, 1),
              transform 1.2s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform, opacity;
}

/* Плавное проявление после окончания анимации заголовка */
.hero.hero-loaded .reveal-item {
  opacity: 1;
  transform: translateY(0);
  /* Задержка берется из inline-стилей HTML (--reveal-delay) */
  transition-delay: var(--reveal-delay, 1.8s); 
}

:root {
  --gold-color: #c8a46a;
  --gold-hover: #e5c28a;
  --dark-bg: #111111;
  --card-bg: #1a1a1a;
  --text-muted: #a0a0a0;
  --text-light: #ffffff;
  --transition-speed: 0.4s;
}

/* --- БАЗОВА СЕКЦІЯ ТА СІТКА --- */
.services-section {
  padding: 80px 0;
  background-color: var(--dark-bg);
  color: var(--text-light);
  font-family: 'Montserrat', sans-serif;
  overflow: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  align-items: stretch;
}

/* --- ВАША АНІМАЦІЯ ПОЯВИ (REVEAL) --- */
.reveal-item {
  opacity: 0;
  transform: translateY(30px);
  will-change: opacity, transform;
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), 
              transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal-item.revealed {
  opacity: 1;
  transform: translateY(0px);
}


/* --- КАРТКА ПОСЛУГИ (SERVICE BOX) --- */
.service-box.style2 {
  background-color: var(--card-bg);
  padding: 40px 30px;
  border: 1px solid rgba(200, 164, 106, 0.1);
  position: relative;
  overflow: hidden;
  height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
  z-index: 1;
}

.service-box.style2 .content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
  position: relative;
  z-index: 2;
}

/* --- ВНУТРІШНІ ЕЛЕМЕНТИ (Основа для анімацій) --- */
.service-box.style2 .icon {
  margin-bottom: 25px;
  height: 60px;
  display: flex;
  align-items: center;
  opacity: 1;
  transform: translateY(0);
  transition: transform var(--transition-speed) ease, 
              opacity var(--transition-speed) ease;
}

.service-box.style2 .icon img {
  max-height: 100%;
  width: auto;
}

.service-box.style2 .title {
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 15px 0;
  color: var(--text-light);
  transition: transform var(--transition-speed) ease, 
              color var(--transition-speed) ease;
}

.service-box.style2 .description {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
  transition: transform var(--transition-speed) ease;
}

.service-box.style2 .service-btn {
  margin-top: auto;
  opacity: 0;
  transform: translateY(30px);
  transition: transform var(--transition-speed) ease, 
              opacity var(--transition-speed) ease;
}

.service-box.style2 .service-btn a {
  color: var(--gold-color);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.service-box.style2 .service-btn a i {
  font-size: 12px;
  transition: transform 0.3s ease;
}

.service-box .description strong {
  color: var(--gold);
  mask-border-outset: 0.5rem;
}
/* --- ЕФЕКТИ НАВЕДЕННЯ (HOVER) --- */

.service-box.style2:hover {
  background-color: rgba(200, 164, 106, 0.02);
}

/* Іконка зникає вгору */
.service-box.style2:hover .icon {
  opacity: 0;
  transform: translateY(-30px);
  pointer-events: none;
}

/* Текст піднімається на місце іконки */
.service-box.style2:hover .title {
  transform: translateY(-40px);
  color: var(--gold-color);
}

.service-box.style2:hover .description {
  transform: translateY(-40px);
}

/* Кнопка плавно з'являється і стає видимою */
.service-box.style2:hover .service-btn {
  opacity: 1;
  transform: translateY(-40px);
}

.service-box.style2 .service-btn a:hover {
  color: var(--gold-hover);
}

.service-box.style2 .service-btn a:hover i {
  transform: rotate(90deg);
}


/* --- ДІАГОНАЛЬНА РАМКА ЩО РОЗШИРЮЄТЬСЯ --- */
.service-box.style2::before,
.service-box.style2::after {
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  border: 2px solid transparent;
  z-index: 3;
  box-sizing: border-box;
}

/* Лівий верхній кут */
.service-box.style2::before {
  top: 0;
  left: 0;
  transition: width 0.2s ease-out, height 0.2s ease-out;
}

/* Правий нижній кут */
.service-box.style2::after {
  bottom: 0;
  right: 0;
  transition: width 0.2s ease-out, height 0.2s ease-out;
}

/* Почергове малювання сторін рамки при ховері */
.service-box.style2:hover::before {
  width: 100%;
  height: 100%;
  border-top-color: var(--gold-color);
  border-right-color: var(--gold-color);
  transition: width 0.2s ease-out, height 0.2s ease-out 0.2s;
}

.service-box.style2:hover::after {
  width: 100%;
  height: 100%;
  border-bottom-color: var(--gold-color);
  border-left-color: var(--gold-color);
  transition: width 0.2s ease-out, height 0.2s ease-out 0.2s;
}