@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700&family=Montserrat:wght@300;400;500;600&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: auto;
  font-family: 'Montserrat', sans-serif;
  overflow-x: hidden;
  overflow-y: auto; /* Вмикаємо нормальний скрол сторінки */
  background-color: #f2f0eb;
  color: #2b2b2b;
}

/* ЗАДНІЙ ФОН */
.global-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: 1;
  pointer-events: none;
}

/* СКРОЛ-КОНТЕЙНЕР (робимо його простим обгортковим блоком) */
.scroll-container {
  position: relative;
  z-index: 2;
  height: auto;
  overflow-y: visible;
  scroll-snap-type: none; /* Повністю прибираємо примусовий snap, щоб нічого не пролітало */
}

.screen-section {
  height: 100vh;
  width: 100vw;
  scroll-snap-align: none;
  scroll-snap-stop: normal;
  position: relative;
}

/* А для портфоліо робимо гнучку висоту */
.portfolio-section {
  height: auto !important;
  min-height: 100vh !important;
}

/* ШАПКА */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  pointer-events: none;
}

.header__container {
  width: 100%;
  padding: 35px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__container > * {
  pointer-events: auto;
}

/* ЛОГОТИП ТА КВІТКА (ОБГОРТКА) */
.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo {
  font-family: 'Cinzel', serif;
  font-size: 1.8rem;
  font-weight: 500;
  letter-spacing: 4px;
  text-decoration: none;
  color: #1a1a1a;
}

/* АНІМАЦІЯ ТА РОЗМІР КВІТКИ */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
.flower {
  width: 40px !important;
  height: 40px !important;
  object-fit: contain;
  animation: spin 7s linear infinite;
  transform-origin: center center !important; 
  flex-shrink: 0; /* Забороняє флекс-контейнеру стискати квітку */
}

/* НАВІГАЦІЯ ПО ЦЕНТРУ */
.nav__list {
  display: flex;
  list-style: none;
  gap: 40px;
}

.nav__link {
  font-size: 0.75rem;
  letter-spacing: 2.5px;
  text-decoration: none;
  color: #2b2b2b;
  font-weight: 500;
  text-transform: uppercase;
  transition: opacity 0.2s ease;
}

.nav__link:hover {
  opacity: 0.6;
}

/* МОВИ В ПРАВОМУ КУТКУ */
.lang-switch {
  font-size: 0.75rem;
  letter-spacing: 2px;
  font-weight: 500;
  z-index: 1001;
}

.lang-switch a {
  text-decoration: none;
  color: #888888;
  transition: color 0.2s ease;
  cursor: pointer;
}

.lang-switch a.active {
  color: #1a1a1a;
  font-weight: 700;
}

.burger {
  display: none;
}

/* HERO СЕКЦІЯ (ПК) */
.hero-section {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 14%;
  overflow: hidden;
}

/* ВЕРТИКАЛЬНИЙ ТЕКСТ ЗЛІВА */
.vertical-text {
  position: absolute;
  left: 60px;
  top: 18%;
  z-index: 10;
  display: flex;
  flex-direction: column;    
  align-items: flex-start;  
  gap: 20px;                
}

.vertical-text span:first-child {
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 5px;
  color: #1a1a1a;
}

.vertical-text .seal-icon {
  width: 26px;
  height: 26px;
  border: 2px solid #b32424;
  background-color: rgba(179, 36, 36, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  color: #b32424;
  border-radius: 2px;
}

/* ДІВЧИНА */
.artwork-girl {
  position: absolute;
  left: 8%;
  bottom: 0;
  height: 108vh;
  width: auto;
  object-fit: contain;
  pointer-events: none;
  z-index: 3;

  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 18%),
                    linear-gradient(to top, transparent 0%, black 12%);
  mask-image: linear-gradient(to right, transparent 0%, black 18%),
              linear-gradient(to top, transparent 0%, black 12%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

/* ЖАБА (ПК) */
.artwork-frog {
  position: absolute;
  right: 30px;
  bottom: 7px;
  width: 265px;
  height: auto;
  object-fit: contain;
  pointer-events: none;
  z-index: 4;
}

/* ТІНЬ ПІД ЖАБОЮ (ПК) */
.hero-section::after {
  content: '';
  position: absolute;
  right: 90px;
  bottom: 30px;
  width: 180px;
  height: 20px;
  background: #000000;
  opacity: 1.8;
  border-radius: 50%;
  filter: blur(10px);
  z-index: 3;
  pointer-events: none;
}

/* ТЕКСТ ENSO ПО ЦЕНТРУ (ПК) */
.hero__content {
  position: absolute;
  bottom: 45%;
  left: 65%;
  transform: translateX(-50%);
  width: 100%;
  padding: 0 20px;
  z-index: 10;
  text-align: center;
  align-items: center;
}

.hero__content .title,
.hero__content h1 {
  font-family: 'Cinzel', serif;
  font-size: 5.0rem;
  font-weight: 500;
  letter-spacing: 4px;
  line-height: 1.1;
  opacity: 1;
}

.hero__content .subtitle,
.hero__content p {
  font-size: 1.1rem !important;
  letter-spacing: 3px !important;
  margin-top: 10px !important;
  font-family: 'Montserrat', sans-serif;
  opacity: 0;
  transition: opacity 1.5s ease-in;
}

.hero__content.active .subtitle,
.hero__content.active p {
  opacity: 1;
}

/* СКРОЛ-ІНДИКАТОР */
.scroll-indicator {
  position: absolute;
  left: 60px;
  bottom: 40px;
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 10;
}

.scroll-line {
  width: 2px;
  height: 48px;
  background-color: #222222;
  opacity: 0.8;
}

.scroll-indicator span {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 3.5px;
  color: #1a1a1a;
  text-transform: uppercase;
}

/* ІНШІ СЕКЦІЇ */
.transparent-section {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 80px 20px;
  background: transparent;
}

.section-container {
  max-width: 800px;
  text-align: center;
}

.screen-section h2 {
  font-family: 'Cinzel', serif;
  font-size: 2.5rem;
  font-weight: 400;
  letter-spacing: 4px;
  margin-bottom: 20px;
}

.mobile-menu-footer {
  display: none;
}

.nav-inside-logo {
  display: none;
}

/* МОБІЛЬНА АДАПТИВНІСТЬ */
@media (max-width: 768px) {
  .header__container {
    padding: 20px;
    position: relative;
  }

  .burger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    background: transparent;
    border: none;
    z-index: 1002;
    cursor: pointer;
    order: 3;
  }

  .logo-wrapper {
    order: 1;
  }

  .lang-switch {
    position: absolute;
    right: 65px;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    order: unset;
  }

  .burger span {
    width: 100%;
    height: 2px;
    background-color: #000000;
    transition: all 0.3s ease;
  }

  .burger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .burger.active span:nth-child(2) {
    opacity: 0;
  }
  .burger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background: url('fon.png') no-repeat center center / cover;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: translateX(100%);
    transition: transform 0.35s ease-in-out;
    z-index: 1001;
  }

  .nav.active {
    transform: translateX(0);
  }

  .nav__list {
    flex-direction: column;
    gap: 25px;
    text-align: center;
    margin-top: -30px;
  }

  .artwork-frog {
    display: none;
  }

  .hero-section {
    padding-right: 0;
    justify-content: flex-end;
    flex-direction: column;
    padding-bottom: 70px;
    position: relative;
  }

  .hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 42vh;
    background: linear-gradient(
      to top,
      #f2f0eb 45%,
      rgba(242, 240, 235, 0.85) 70%,
      rgba(242, 240, 235, 0.2) 90%,
      rgba(242, 240, 235, 0) 100%
    );
    z-index: 4;
    pointer-events: none;
    display: block;
    right: auto;
    filter: none;
    border-radius: 0;
  }

  .vertical-text {
    display: flex;
    position: absolute;
    left: 18px;
    top: 36%;
    z-index: 10;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .vertical-text span:first-child {
    writing-mode: vertical-rl;
    text-orientation: upright;
    font-size: 0.59rem;
    font-weight: 750;
    letter-spacing: 2.5px;
    color: #1a1a1a;
  }

  .vertical-text .seal-icon {
    width: 19px;
    height: 19px;
    border: 1.5px solid #b32424;
    background-color: rgba(179, 36, 36, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Cinzel', serif;
    font-size: 0.5rem;
    color: #b32424;
    border-radius: 2px;
  }

  .scroll-indicator {
    display: flex;
    position: absolute;
    left: 25px;
    bottom: 20px;
    z-index: 10;
    gap: 10px;
    align-items: center;
  }

  .scroll-line {
    width: 1px;
    height: 30px;
    background-color: #222222;
  }

  .scroll-indicator span {
    font-size: 0.7rem;
    letter-spacing: 2px;
  }

  .hero__content {
    position: absolute !important;
    top: 80% !important;
    left: 4px !important;
    transform: none !important;
    width: calc(100% - 40px) !important;
    text-align: left !important;
    z-index: 10 !important;
  }

  .hero__content .title,
  .hero__content h1 {
    font-size: 2.5rem !important;
    letter-spacing: 4px !important;
    font-weight: 400 !important;
    color: #1a1a1a !important;
    margin-bottom: 5px !important;
  }

  .hero__content .subtitle,
  .hero__content p {
    font-size: 0.75rem !important;
    letter-spacing: 2px !important;
    color: #333 !important;
    margin: 0 !important;
  }

  .artwork-girl {
    position: absolute !important;
    left: -8% !important; 
    top: 110px !important; 
    height: 60vh !important;
    width: 113% !important;
    object-fit: contain !important;
    object-position: top center !important;
    z-index: 3 !important;

    -webkit-mask-image: 
        linear-gradient(to right, transparent 0%, rgba(0,0,0,0.6) 12%, black 35%),
        linear-gradient(to bottom, transparent 0%, black 15%, black 65%, transparent 95%) !important;
    mask-image: 
        linear-gradient(to right, transparent 0%, rgba(0,0,0,0.4) 12%, black 35%),
        linear-gradient(to bottom, transparent 0%, black 15%, black 65%, transparent 95%) !important;
    
    -webkit-mask-composite: intersect !important;
    mask-composite: intersect !important;
  }

  .mobile-menu-footer {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    position: absolute;
    bottom: 25px;
    right: 35px;
    width: auto;
  }

  .mobile-artwork-frog {
    width: 140px;
    height: auto;
    object-fit: contain;
    position: relative;
    z-index: 2;
  }

  .mobile-frog-shadow {
    width: 100px;
    height: 14px;
    background: #000000;
    opacity: 1.5;
    border-radius: 50%;
    filter: blur(6px);
    position: absolute;
    bottom: 7px;
    right: 15px !important;
    z-index: 1;
  }

  .logo-wrapper {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    text-decoration: none;
  }

  .nav-inside-logo {
    display: flex !important;
    align-items: center !important;
    gap: 3px !important;
    position: absolute !important;
    top: 25px !important;
    left: 25px !important;
    text-decoration: none;
    z-index: 1005;
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    font-weight: 500;
    letter-spacing: 4px;
    color: #1a1a1a;
  }
}

/* Анімація появи заголовка */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(25px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Ефект появи з блюра (розмиття) */
@keyframes blurReveal {
  0% {
    opacity: 0;
    filter: blur(15px);
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    filter: blur(0px);
    transform: translateY(0);
  }
}

/* --- СЕКЦІЯ "ПРО МЕНЕ" --- */
.about-container {
  max-width: 960px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 40px;
  margin: 0 auto;
  
  /* Початковий стан: сам блок схований і зміщений вниз */
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1.2s cubic-bezier(0.25, 1, 0.5, 1), 
              transform 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Кінцевий стан після появи при скролі (додається клас .is-visible) */
.about-container.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- ПОСТУПОВА АНІМАЦІЯ ЕЛЕМЕНТІВ ВСЕРЕДИНІ --- */
.about-title,
.artist-divider,
.about-lead,
.about-grid,
.about-seal {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Запуск анімації по черзі, коли контейнер стає видимим */
.about-container.is-visible .about-title {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.2s;
}

.about-container.is-visible .artist-divider {
  width: 60px; /* Розширення лінії */
  opacity: 1;
  transform: translateY(0);
  transition: width 1.2s cubic-bezier(0.25, 1, 0.5, 1) 0.4s, 
              opacity 0.8s ease 0.4s, 
              transform 0.8s ease 0.4s;
}

.about-container.is-visible .about-lead {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.6s;
}

.about-container.is-visible .about-grid {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.8s;
}

.about-container.is-visible .about-seal {
  opacity: 0.4; /* Повертаємо початкову напівпрозорість */
  transform: translateY(0);
  transition-delay: 1.0s;
}
/* ------------------------------------------- */

.about-title {
  font-family: 'Cinzel', serif;
  font-size: 2.6rem;
  font-weight: 400;
  letter-spacing: 5px;
  color: #1a1a1a; 
  margin-bottom: 20px;
  text-transform: uppercase;
  text-align: center;
}

/* Червона полоска роздвигається */
.artist-divider {
  width: 0px;
  height: 1.5px;
  background-color: #b32424;
  margin-bottom: 35px;
}

.about-lead {
  max-width: 750px;
  text-align: center;
  margin-bottom: 35px;
}

.about-lead p {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.7;
  color: #1a1a1a;
  letter-spacing: 0.5px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  text-align: left;
  width: 100%;
  margin-bottom: 35px;
}

.about-col p {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 0.95rem;
  line-height: 1.8;
  color: #333333;
  margin-bottom: 20px;
  letter-spacing: 0.3px;
}

.about-col p:last-child {
  margin-bottom: 0;
}

.about-seal {
  font-family: 'Cinzel', serif;
  font-size: 1.4rem;
  color: #1a1a1a;
  opacity: 0.4;
}

/* --- Мобільна адаптивність --- */
@media (max-width: 768px) {
  .about-container {
    padding: 0 20px;
  }
  .about-title {
    font-size: 1.9rem;
    letter-spacing: 3px;
  }
  .about-lead p {
    font-size: 1rem;
    line-height: 1.6;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 25px;
  }
  .about-col p {
    font-size: 0.88rem;
    margin-bottom: 15px;
  }
}





/* --- СЕКЦІЯ ПОРТФОЛІО ЗАГАЛЬНА --- */
#works.portfolio-section {
  display: block !important;
  padding: 100px 20px 50px 20px !important;
  background-color: #0d0d0d !important;
  color: #f2f0eb !important;
  position: relative !important;
  box-sizing: border-box;
  overflow: visible !important;
  height: auto !important;
  min-height: auto !important;
}

#works.portfolio-section h2 {
  font-family: 'Cinzel', serif;
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: 4px;
  margin-bottom: 25px;
  color: #f2f0eb;
  text-transform: uppercase;
  text-align: center;
  position: relative;
  z-index: 6;
}

#works .portfolio-glow-effect {
  position: relative !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
  height: 100px !important;
  margin-top: 60px !important;
  pointer-events: none !important;
  z-index: 5 !important;
}

/* Сама тонка художня лінія */
#works .portfolio-glow-effect::after {
  content: "" !important;
  display: block !important;
  width: 150px !important;
  height: 1px !important;
  background: rgba(255, 255, 255, 0.4) !important;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.3) !important;
  animation: lineStretch 4s ease-in-out infinite alternate !important;
}

@keyframes lineStretch {
  0% {
    width: 80px;
    opacity: 0.3;
  }
  100% {
    width: 250px;
    opacity: 0.8;
  }
}

.portfolio-divider {
  display: none !important;
}

/* --- СІТКА ПОРТФОЛІО ДЛЯ ПК --- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px; /* Зменшено відстань між картинами */
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.portfolio-grid::before,
.portfolio-section::before {
  display: none !important;
}

/* ==========================================
   АДАПТИВНИЙ КОЛІР ШАПКИ (ДЛЯ СВІТЛИХ ТА ТЕМНИХ СЕКЦІЙ)
   ========================================== */

/* ==========================================
   СТИЛІ ШАПКИ ДЛЯ СВІТЛИХ ТА ТЕМНИХ СЕКЦІЙ
   ========================================== */

/* 1. ЗА ЗАМОВЧУВАННЯМ (на світлих секціях) — ТЕМНИЙ ТЕКСТ І ТЕМНА КВІТКА */
.header .logo,
.header .lang-switch,
.header .lang-switch a,
.header .nav__link {
  color: #1a1a1a !important;
}

#burger-btn span,
.burger span {
  background-color: #1a1a1a !important;
}

/* Квітка за замовчуванням темна */
.header .flower,
.header .logo img,
.header-logo-icon {
  filter: none !important;
  transition: filter 0.3s ease;
}

/* 2. ТІЛЬКИ НА СЕКЦІЇ ПОРТФОЛІО (.header-dark) — БІЛИЙ ТЕКСТ І БІЛА КВІТКА */
.header.header-dark .logo,
.header.header-dark .lang-switch a,
.header.header-dark .nav__link,
.header.header-dark a {
  color: #ffffff !important;
}

.header.header-dark #burger-btn span,
.header.header-dark .burger span {
  background-color: #ffffff !important;
}

/* Інвертуємо темну квітку в білу */
.header.header-dark .flower,
.header.header-dark .logo img,
.header.header-dark .header-logo-icon {
  filter: invert(100%) brightness(200%) !important;
}

/* 3. ТІЛЬКИ НА МОБІЛЬНИХ ПРИ ВІДКРИТОМУ МЕНЮ — СТАЮТЬ ЧОРНИМИ */
@media (max-width: 768px) {
  /* Три смужки бургера */
  .nav.active ~ #burger-btn span,
  #burger-btn.active span,
  .burger.active span,
  body.menu-open #burger-btn span,
  .header:has(.nav.active) #burger-btn span {
    background-color: #1a1a1a !important;
  }

  /* Перемикач мов — прозорий фон, чорний текст */
  .lang-switch,
  .lang-switch a {
    background-color: transparent !important;
  }

  .nav.active ~ .lang-switch a,
  body.menu-open .lang-switch a,
  .header:has(.nav.active) .lang-switch a {
    color: #1a1a1a !important;
  }

  /* Текст всередині відкритого мобільного меню */
  #nav-menu.active .nav__link,
  #nav-menu.active .nav-inside-logo {
    color: #1a1a1a !important;
  }
}

/* ========================================== */

.portfolio-item {
  width: 100% !important;
  height: 500px !important;
  cursor: pointer;
  overflow: hidden;
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-sizing: border-box;
  
  /* Початковий стан: тільки прозорість, без жодних зсувів */
  opacity: 0;
  transform: none !important;
  transition: opacity 4.0s ease, border-color 0.5s ease !important;
  
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* Коли картка з'являється при скролі */
.portfolio-item.is-visible {
  opacity: 1 !important;
  transform: none !important;
}

.portfolio-item:hover {
  border-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.015) !important; /* Легке збільшення при наведенні залишається */
}

/* На випадок зворотної анімації */
.portfolio-item.fade-in-place {
  opacity: 1 !important;
  transform: none !important;
}

/* Поява з нізвідки при скролі знизу вгору */
.portfolio-item.fade-in-place {
  opacity: 1 !important;
  transform: translateY(0) !important;
  transition: opacity 2.5s ease !important;
}

/* Каскадна затримка для карток */
.portfolio-grid .portfolio-item:nth-child(1) { transition-delay: 0.05s; }
.portfolio-grid .portfolio-item:nth-child(2) { transition-delay: 0.1s; }
.portfolio-grid .portfolio-item:nth-child(3) { transition-delay: 0.15s; }
.portfolio-grid .portfolio-item:nth-child(4) { transition-delay: 0.2s; }
.portfolio-grid .portfolio-item:nth-child(5) { transition-delay: 0.25s; }
.portfolio-grid .portfolio-item:nth-child(6) { transition-delay: 0.3s; }

/* ЗОБРАЖЕННЯ В УСІХ КАРТКАХ НА ПК */
.portfolio-item img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
  background-color: #111 !important;
  display: block;
}

/* ЛОГІКА ПЕРЕМИКАННЯ ДЛЯ ПЕРШОГО ЕЛЕМЕНТА НА ПК */
.portfolio-item--main .img-mobile {
  display: none !important;
}

.portfolio-item--main .img-desktop {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}

.portfolio-main-wrapper {
  display: contents; 
}

.portfolio-overlay,
.portfolio-title {
  display: none !important;
}

/* --- МОДАЛЬНЕ ВІКНО --- */
/* --- МОДАЛЬНЕ ВІКНО --- */
.artwork-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
}

.artwork-modal.active {
  display: flex !important;
}

.modal-content {
  position: relative;
  background: #0d0d0d;
  border: 1px solid rgba(255, 255, 255, 0.15);
  width: 90%;
  max-width: 950px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 40px;
  color: #ffffff;
  box-sizing: border-box;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  z-index: 10;
}

.modal-body {
  display: flex;
  gap: 40px;
  align-items: center;
}

.modal-image-container {
  flex: 1;
  max-width: 500px;
}

.modal-image-container img {
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
  display: block;
}

.modal-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.modal-info h2 {
  font-size: 2.2rem;
  font-weight: 300;
  letter-spacing: 3px;
  margin: 0;
}

.modal-year, .modal-medium, .modal-size {
  font-size: 0.9rem;
  color: #aaaaaa;
  margin: 0;
  letter-spacing: 1px;
}

.modal-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #dddddd;
  margin: 15px 0;
}

.modal-price-label {
  font-size: 0.85rem;
  color: #aaaaaa;
  letter-spacing: 1px;
  margin: 0;
}

.modal-inquire-btn {
  display: inline-block;
  text-align: center;
  padding: 12px 25px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #fff;
  text-decoration: none;
  letter-spacing: 2px;
  font-size: 0.9rem;
  transition: background 0.3s, color 0.3s;
  margin-top: 10px;
  width: fit-content;
}

.modal-inquire-btn:hover {
  background: #fff;
  color: #0d0d0d;
}

/* --- ВИПРАВЛЕННЯ ДЛЯ КАРТИНОК НА ПК --- */
.portfolio-item img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block;
}

.portfolio-item {
  height: auto !important;
}

/* --- АДАПТИВНІСТЬ ДЛЯ ТЕЛЕФОНІВ --- */
@media (max-width: 768px) {
  #works.portfolio-section {
    padding: 80px 10px 30px 10px !important;
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 6px !important;
  }

  .portfolio-main-wrapper {
    display: contents;
  }

  .portfolio-item.portfolio-item--main {
    grid-column: span 2 !important;
    aspect-ratio: 16 / 9 !important;
    height: auto !important;
  }

  .portfolio-item--main .img-desktop {
    display: none !important;
  }

  .portfolio-item--main .img-mobile {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    background-color: #0d0d0d !important;
  }

  .portfolio-item {
    grid-column: span 1 !important;
    aspect-ratio: 3 / 4 !important;
    height: auto !important;
  }

  .portfolio-grid > .portfolio-item:last-child:nth-child(odd) {
    grid-column: span 1 !important;
  }

  .portfolio-item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }
}





/* --- КАЛЬКУЛЯТОР (Чорний текст та темне скло) --- */
.calculator-card {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  padding: 30px 45px; 
  
  background-image: url('fon-2.png');
  background-size: 105% 105%; 
  background-position: center;
  background-repeat: no-repeat;
  
  border: none !important;
  box-shadow: 0 3px 70px rgba(0, 0, 0, 0.5);
  border-radius: 50px; 
  
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: left;
  color: #141414;
}

.calculator-card h1 {  
  font-family: 'Cinzel', serif;
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 4px;
  text-align: center;
  margin: 0;
  text-transform: uppercase;
  color: #141414;
}

.calc-divider {
  width: 40px;
  height: 1px;
  background: rgba(20, 20, 20, 0.3);
  margin: -5px auto 0 auto;
}

.calc-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  transition: all 0.3s ease;
}

.calc-section label {
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(20, 20, 20, 0.8);
}

/* Випадаючий список розміру */
.native-calc-select {
  width: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.1) 100%);
  border: 1px solid rgba(20, 20, 20, 0.25);
  border-radius: 12px;
  padding: 14px 20px;
  font-size: 0.85rem;
  font-family: 'Montserrat', sans-serif;
  color: #141414;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  outline: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.6), 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.native-calc-select option {
  background-color: #f2f0eb;
  color: #141414;
  padding: 10px;
}

.native-calc-select:focus {
  border-color: #141414;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.2) 100%);
}

.native-select-wrapper::after {
  content: "▼";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.6rem;
  color: rgba(20, 20, 20, 0.7);
  pointer-events: none;
}

/* Кнопки Subject (Тип) */
.type-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.type-btn {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.1) 100%);
  border: 1px solid rgba(20, 20, 20, 0.25);
  border-radius: 12px;
  padding: 12px 6px;
  color: #141414;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 1px;
  cursor: pointer;
  text-align: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.5), 0 4px 10px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.type-btn.active, .type-btn:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.25) 100%);
  border-color: #141414;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.7), 0 6px 15px rgba(0, 0, 0, 0.12);
}

/* Кнопки людей */
.people-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.people-options.is-hidden {
  display: none !important;
}

.people-btn {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.1) 100%);
  border: 1px solid rgba(20, 20, 20, 0.25);
  border-radius: 12px;
  padding: 12px 5px;
  color: #141414;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  cursor: pointer;
  text-align: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.5), 0 4px 10px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.people-btn.active, .people-btn:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.25) 100%);
  border-color: #141414;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.7), 0 6px 15px rgba(0, 0, 0, 0.12);
}

.people-btn .num {
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.2;
  color: #141414;
}

.people-btn .label {
  font-size: 0.65rem;
  text-transform: lowercase;
  opacity: 0.75;
  margin-top: 2px;
  letter-spacing: 0.5px;
  color: #141414;
}



/* Інпут кастомізації */
/* Кнопка кастомізації (інпут розтягнутий на всю кнопку) */
.people-btn.people-btn-custom {
  padding: 0 !important;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.1) 100%) !important;
  border: 1px solid rgba(20, 20, 20, 0.25) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.5), 0 4px 10px rgba(0, 0, 0, 0.08) !important;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
}

/* Сам інпут повністю покриває кнопку і приховує будь-які рамки */
.people-btn.people-btn-custom .people-inline-input {
  width: 100% !important;
  height: 100% !important;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #141414;
  text-align: center;
  resize: none;
  padding: 14px 2px 2px 2px !important; /* Збільшили першу цифру (верхній відступ), щоб опустити текст */
  box-sizing: border-box;
  cursor: pointer;
  line-height: 1.2;
}

/* Плейсхолдер адаптований під розмір кнопки */
.people-btn.people-btn-custom .people-inline-input::placeholder {
  color: rgba(20, 20, 20, 0.7);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* При кліку або фокусі жодних додаткових рамок */
.people-btn.people-btn-custom .people-inline-input:focus,
.people-btn.people-btn-custom .people-inline-input:active {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

/* Головна кнопка розрахунку */
.calculate-btn {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.15) 100%);
  border: 1px solid rgba(20, 20, 20, 0.35);
  border-radius: 12px;
  padding: 15px;
  color: #141414;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.6), 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  width: 100%;
}

.calculate-btn:hover {
  background: #141414;
  color: #ffffff;
  border-color: #141414;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.result-display {
  text-align: center;
  font-size: 1rem;
  letter-spacing: 1px;
  color: #141414;
  padding: 12px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.1) 100%);
  border-radius: 10px;
  border: 1px solid rgba(20, 20, 20, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.5);
}

/* Примітки знизу */
.calc-notes {
  margin-top: 5px;
  font-size: 0.75rem;
  line-height: 1.5;
  color: rgba(20, 20, 20, 0.65);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.calc-notes-divider {
  width: 30px;
  height: 1px;
  background: rgba(20, 20, 20, 0.2);
  margin: 4px auto;
}

.turnaround-title {
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  letter-spacing: 2px;
  color: rgba(20, 20, 20, 0.85);
  margin-top: 2px;
}

@media (max-width: 768px) {
  /* Головна секція калькулятора — опускаємо вміст під шапку */
  .calculator-section,
  #calculator {
    padding-top: 110px !important; /* Опускає заголовок з-під логотипа ENSO */
    padding-bottom: 40px !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    box-sizing: border-box !important;
  }

  /* Заголовок "ПІДРАХУНОК ЦІНИ" */
  .calc-title,
  .calculator-section h2,
  .calculator-card h2 {
    font-size: 1.4rem !important;
    letter-spacing: 2px !important;
    margin-top: 10px !important;
    margin-bottom: 15px !important;
    text-align: center !important;
  }

  /* Картка калькулятора (скляний фон) */
  .calc-container,
  .calculator-card {
    width: 100% !important;
    max-width: 360px !important;
    margin: 0 auto !important;
    padding: 15px 12px !important;
    box-sizing: border-box !important;
  }

  /* Випадаючий список та написи */
  .calc-label {
    font-size: 0.75rem !important;
    letter-spacing: 1.5px !important;
    margin-bottom: 6px !important;
  }

  .calc-select,
  .calc-dropdown {
    width: 100% !important;
    padding: 10px 12px !important;
    font-size: 0.85rem !important;
    margin-bottom: 12px !important;
  }

  /* Контейнери для кнопок (Люди/Тварини/Пейзаж і 1/2/3/YOUR OPT) */
  .calc-btn-group,
  .calc-options-row,
  .calc-persons-group {
    display: flex !important;
    flex-wrap: wrap !important; /* Дозволяє кнопкам переноситися */
    gap: 6px !important;
    justify-content: space-between !important;
    margin-bottom: 12px !important;
    width: 100% !important;
  }

  /* Кнопки вибору */
  .calc-option-btn,
  .calc-btn {
    flex: 1 1 calc(25% - 6px) !important; /* Дозволяє 4 кнопкам влізти в один рядок */
    min-width: 68px !important;
    padding: 8px 3px !important;
    font-size: 0.75rem !important;
    text-align: center !important;
    box-sizing: border-box !important;
    white-space: normal !important; /* Дозволяє переносу тексту */
    word-break: break-word !important;
  }

  /* Текст всередині кнопок ("персони", "YOUR OPT") */
  .calc-btn-subtext,
  .calc-option-btn span {
    font-size: 0.6rem !important;
    line-height: 1.1 !important;
    display: block !important;
  }

  /* Кнопка "РОЗРАХУВАТИ ЦІНУ" */
  .calc-submit-btn,
  .calc-main-btn {
    width: 100% !important;
    padding: 12px 15px !important;
    font-size: 0.85rem !important;
    letter-spacing: 1.5px !important;
    margin-top: 10px !important;
    margin-bottom: 20px !important;
  }

  /* Інформаційні блоки внизу (Деталістість, Терміни) */
  .calc-info-block {
    margin-top: 15px !important;
    padding: 0 5px !important;
  }

  .calc-info-title,
  .calc-info-block h3,
  .calc-info-block h4 {
    font-size: 0.8rem !important;
    letter-spacing: 1.5px !important;
    margin-bottom: 6px !important;
  }

  .calc-info-block p {
    font-size: 0.75rem !important;
    line-height: 1.35 !important;
  }
}






/* --- СЕКЦІЯ КОНТАКТІВ (ПК) --- */
.contacts-page-section {
  position: relative !important;
  width: 100% !important;
  min-height: 100vh !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

.contacts-container {
  position: relative !important;
  width: 100% !important;
  min-height: 100vh !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  padding-left: 180px !important;
  box-sizing: border-box !important;
}

.contacts-content-wrapper {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  z-index: 2 !important;
}

.contacts-content-wrapper h2 {
  font-family: 'Cinzel', sans-serif !important;
  font-size: 4rem !important;
  font-weight: 100 !important;
  letter-spacing: 4px !important; /* Залиши одне потрібне значення, наприклад 4px або 12px */
  margin: 0 !important;
  color: #141414 !important;
  text-transform: uppercase !important;
}

.contacts-divider {
  width: 60px !important;
  height: 3px !important;
  background: rgba(20, 20, 20, 0.5) !important;
  /* Піднімаємо заголовок і лінію вище від списку (зменшено нижній відступ) */
  margin: 20px 0 100px 0 !important;
}

.contacts-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  /* Збільшуємо відстань між пунктами на ПК, щоб не були такими щільними */
  gap: 24px !important;
}

.contacts-list li {
  display: flex !important;
  align-items: center !important;
  gap: 15px !important;
}

.contact-link {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 15px !important;
  text-decoration: none !important;
  color: #141414 !important;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 1.5rem !important;
  font-weight: 500 !important;
  letter-spacing: 1px !important;
  white-space: nowrap !important;
  transition: opacity 0.3s ease !important;
}

.contact-link:hover {
  opacity: 0.7 !important;
}

/* Жаба і бамбук в правому нижньому кутку всередині секції */
.contacts-decor-right {
  position: absolute !important;
  right: 20px !important;
  bottom: 20px !important;
  display: flex !important;
  align-items: flex-end !important;
  gap: 10px !important;
  z-index: 5 !important;
  pointer-events: none !important;
}

.contacts-bamboo {
  width: 400px !important;
  height: auto !important;
  object-fit: contain !important;
  transform: translateY(10px) !important; /* Витягнуто/піднято бамбук вище на ПК */
}

.contacts-frog {
  width: 250px !important;
  height: auto !important;
  object-fit: contain !important;
  position: relative !important;
}

/* Тінь під жабою */
.contacts-frog::after,
.contacts-decor-right::after {
  content: '' !important;
  position: absolute !important;
  right: 10px !important;
  bottom: 2px !important;
  width: 220px !important;
  height: 40px !important;
  background: rgba(0, 0, 0, 0.25) !important;
  border-radius: 80% !important;
  filter: blur(8px) !important;
  z-index: -1 !important;
}

.contact-icon-box {
  width: 45px !important;
  height: 45px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  /* ЖОДНИХ background та background-color тут немає! */
  background: transparent !important;
}

.contact-svg-icon {
  width: 40px !important;
  height: 40px !important;
  object-fit: contain !important;
  /* Якщо твої картинки іконки чорні з прозорим фоном, прибираємо фільтри взагалі */
  filter: none !important; 
}

/* Мобільна версія */
@media (max-width: 768px) {
  .contacts-container {
    padding-left: 6vw !important;
    padding-bottom: 8vh !important;
    align-items: flex-start !important;
    padding-top: 14vh !important;
  }
  .contacts-content-wrapper h2 {
    font-size: 2.2rem !important;
  }
  .contacts-divider {
    margin: 10px 0 60px 0 !important;
  }
  .contacts-list {
    gap: 14px !important;
  }
  .contact-link {
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    gap: 12px !important;
    white-space: normal !important;
    word-break: break-all !important; /* Перенос пошти, щоб не вилазила */
  }

  /* --- Збільшені значки --- */
  .contact-circle,
  .contact-icon-box {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* Картинки та SVG всередині значків */
  .contact-circle img,
  .contact-svg-icon {
    width: 24px !important;
    height: 24px !important;
    max-width: 24px !important;
    max-height: 24px !important;
    object-fit: contain !important; /* Зберігає пропорції іконки */
  }
  /* ---------------------- */

  .contacts-decor-right {
    right: 10px !important;
    bottom: 10px !important;
    gap: 5px !important;
  }
  .contacts-frog {
    width: 150px !important;
  }
  .contacts-bamboo {
    display: block !important;
    width: 240px !important;
    transform: translateY(10px) !important;
  }
  .contacts-decor-right::after {
    width: 120px !important;
    height: 40px !important;
    right: 12px !important;
    bottom: -3px !important;
    filter: blur(5px) !important;
  }
}