/* --- ІМПОРТ ШРИФТІВ (Google Fonts: Cormorant Garamond & Montserrat) --- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=Montserrat:wght@300;400;500;600&display=swap');

/* --- ОСНОВА & СКИДАННЯ --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Montserrat', sans-serif;
  scroll-behavior: smooth;
}

body {
  background-color: #F9F6F4;
  font-family: 'Montserrat', sans-serif;
  color: #8E857B;
  -webkit-font-smoothing: antialiased;
}


/* ==========================================
   ЕФЕКТ "ВІКНА" / "ШТОРИ" (STICKY REVEAL)
   ========================================== */

/* 1. Бежеві секції перекривають фонові та мають суцільне тло */
.about-section,
#portfolio,
#services,
#process,
#faq {
  position: relative;
  z-index: 2;
  background-color: #F9F6F4;
}

/* 2. Секції з фоном (Hero, Цитата, CTA, Контакти) фіксуються під час скролу */
.hero-image-bg,
.full-quote-section,
.cta-fluid-section,
.contact-section-luxury {
  position: sticky;
  top: 0;
  z-index: 1;
}

/* 3. Скидаємо стилі, які заважали шаруванню та ширині */
.full-quote-section {
  width: 100%;
  left: 0;
  margin-left: 0;
  margin-right: 0;
}

.hero-bg-image {
  animation: none !important;
  transform: none !important;
}
/* Приклад додавання елегантного шуму на тло */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  opacity: 0.03; /* Дуже тонкий ефект */
  pointer-events: none;
  background-image: url("data:image/svg+xml,..."); /* SVG noise */
  z-index: 9999;
}

h1, h2, h3, h4, i {
  font-family: 'Cormorant Garamond', serif;
  color: #485243;
  font-weight: 400;
}

h2 {
  font-size: clamp(34px, 4.5vw, 50px);
  line-height: 1.15;
}

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

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 50px;
}

.section-padding {
  padding: 150px 0;
  border-bottom: none;
  position: relative;
}

/* Уніфіковані стилі для заголовків секцій */
.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px auto;
}

.section-tag {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #8E857B;
  display: block;
  margin-bottom: 14px;
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(32px, 4.2vw, 48px);
  font-weight: 300;
  color: #485243;
  line-height: 1.2;
  margin: 0;
}

.section-title i {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
}

/* Тонкий "видих" замість жорсткої лінії — лише де потрібно акцентувати межу */
.section-padding::after {
  content: '';
  position: absolute;
  bottom: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,194,189,0.35), transparent);
}

.luxury-tag {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: #8E857B;
}

/* --- BACKGROUND LINED GRID --- */
.bg-grid-lines {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none;
  display: flex;
  justify-content: space-between;
  padding: 0 50px;
  z-index: 0;
}
.grid-line {
  width: 1px; height: 100%;
  background-color: rgba(201, 194, 189, 0.15);
}

/* --- НАВІГАЦІЯ --- */
.navbar {
  position: fixed;
  width: 100%; top: 0; left: 0; z-index: 100;
  padding: 15px 0;
  border-bottom: 1px solid rgba(201, 194, 189, 0.3);
  background-color: rgba(249, 246, 244, 0.85);
  backdrop-filter: blur(12px);
  transition: padding 0.3s;
}

.nav-container {
  display: flex; 
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.nav-left-brand {
  display: flex;
  align-items: center;
}

.nav-logo-img-kolibri {
  width: 40px;
  height: auto;
  margin-right: 15px;
  flex-shrink: 0;
}   

.nav-logo {
  font-size: 14px; 
  font-weight: 500; 
  letter-spacing: 5px; 
  color: #485243;
  text-align: left;
  line-height: 1.2;
  flex-shrink: 0;
  display: block;
  font-family: 'Cormorant Garamond', serif;
}

.nav-links { 
  display: flex; 
  list-style: none; 
  gap: 50px; 
  margin-left: auto;
  margin-right: 40px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.nav-item {
  font-size: 11px; 
  text-transform: uppercase; 
  letter-spacing: 2px;
  position: relative;
  padding: 8px 0;
  transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1), color 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.nav-links:hover .nav-item { opacity: 0.35; }
.nav-links .nav-item:hover { opacity: 1; color: #485243; }
.nav-item.active { opacity: 1; color: #485243; }

.nav-item::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%; width: 0; height: 1px;
  background-color: #485243;
  transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1), left 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
.nav-item:hover::after, .nav-item.active::after { width: 100%; left: 0; }

.btn-nav-order {
  border: 1px solid #485243;
  padding: 12px 25px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #485243;
  background: transparent;
  border-radius: 40px;
  font-weight: 500;
  position: relative;
  overflow: hidden;
  z-index: 1;
  display: inline-block;
  transition: color 0.4s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.4s cubic-bezier(0.25, 1, 0.5, 1), transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.btn-nav-order::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-color: #485243;
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: -1;
}
.btn-nav-order:hover { color: #F9F6F4; border-color: #485243; transform: translateY(-2px); }
.btn-nav-order:hover::before { transform: scaleY(1); }
.btn-nav-order:active { transform: translateY(0); }

/* --- СЕЛЕКТОР МОВ --- */
.lang-selector {
  position: relative;
  display: inline-block;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(201, 194, 189, 0.6);
  background: transparent;
  padding: 12px 20px;
  font-size: 12px;
  font-weight: 500;
  color: #485243;
  border-radius: 40px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.lang-btn:hover, .lang-selector.active .lang-btn {
  border-color: #485243;
  background-color: rgba(102, 105, 86, 0.05);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 260px;
  background-color: #FFFFFF;
  border: 1px solid rgba(201, 194, 189, 0.4);
  padding: 15px 0;
  display: flex;
  flex-direction: column;
  box-shadow: 0 15px 35px rgba(142, 133, 123, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: 200;
}

.lang-selector.active .lang-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }

.lang-dropdown-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 25px;
  font-size: 14px;
  color: #2c2c2c;
  font-weight: 400;
  transition: background 0.2s ease;
}
.lang-dropdown-item:hover { background-color: #F9F6F4; }
.lang-dropdown-item.active { color: #485243; font-weight: 500; }

/* --- МОБІЛЬНА КНОПКА-КРУЖЕЧОК (Зображення референсу) --- */
.mobile-menu-trigger-wrapper {
  display: none; /* За замовчуванням приховано на ПК */
  align-items: center;
  gap: 12px;
}

.burger-text {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #485243;
  font-weight: 400;
}

.burger-menu {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  
  /* Налаштування під стиль перемикача мови з твоїми кольорами */
  background-color: transparent; 
  border: 1px solid rgba(201, 194, 189, 0.4);    /* Колір обводки */
  
  /* Плавні транзиції */
  transition: 
    background-color 0.3s cubic-bezier(0.25, 1, 0.5, 1), 
    border-color 0.3s cubic-bezier(0.25, 1, 0.5, 1), 
    transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Елементи всередині (лінії або крапки бургера) */
.burger-menu span {
  background-color: #485243;    /* Колір внутрішніх елементів */
  transition: background-color 0.3s ease;
}

/* Ефект при взаємодії (якщо при наведенні потрібна інверсія) */
.burger-menu:hover,
.burger-menu:active {
  background-color: #8E857B;    /* Кружечок заливається кольором обводки */
}

/* При ховері внутрішні елементи стають світлими для контрасту */
.burger-menu:hover span,
.burger-menu:active span {
  background-color: #ffffff;    
}

/* Матриця точок всередині кружечка */
.burger-dot-grid {
  display: grid;
  grid-template-columns: repeat(3, 3px);
  gap: 3px;
}

.burger-dot-grid span {
  width: 3px;
  height: 3px;
  background-color: #485243; /* Білі точки */
  border-radius: 50%;
  transition: transform 0.3s ease;
}

/* --- ВИЇЗНЕ ОВЕРЛЕЙ МЕНЮ --- */
.mobile-overlay-menu {
  position: fixed;
  top: 0; right: 0;
  width: 100%;
  max-width: 400px;
  height: 100vh;
  background-color: #F9F6F4;
  box-shadow: -10px 0 40px rgba(18, 16, 15, 0.1);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  padding: 40px;
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.32, 1, 0.24, 1);
}

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

.close-mobile-menu {
  position: absolute;
  top: 25px; right: 30px;
  background: transparent;
  border: none;
  font-size: 38px;
  color: #485243;
  cursor: pointer;
  line-height: 1;
}

.mobile-menu-content {
  margin-top: 80px;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.mobile-nav-item {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  color: #485243;
  display: block;
  transition: padding-left 0.3s ease;
}
.mobile-nav-item:hover, .mobile-nav-item.active {
  padding-left: 10px;
  font-style: italic;
}

.mobile-menu-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #C9C2BD;
  border-top: 1px solid rgba(201, 194, 189, 0.3);
  padding-top: 25px;
}

/* --- СТИЛІ ДЛЯ ВИДІЛЕНОЇ КНОПКИ В МОБІЛЬНОМУ МЕНЮ --- */
.mobile-action-wrapper {
  width: 100%;
  padding: 0 10px;
  margin-bottom: 45px; /* Відступ до копірайту */
}

.btn-mobile-menu-order {
  display: block;
  width: 100%;
  text-align: center;
  border: 1px solid #485243;
  background-color: #485243; /* Акцентне залиття для мобілки */
  color: #F9F6F4; /* Світлий текст на темному тлі */
  padding: 16px 25px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 500;
  border-radius: 40px;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: 0 4px 15px rgba(102, 105, 86, 0.15);
}

.btn-mobile-menu-order:active {
  transform: translateY(2px);
  box-shadow: 0 2px 8px rgba(102, 105, 86, 0.15);
}


/* --- ВЕРИФІКАЦІЯ ТА ВИПРАВЛЕННЯ МЕДІА-ЗАПИТІВ --- */

@media (max-width: 992px) {
  /* Переконайтеся, що стара інлайн-стилізована кнопка не заважає */
  .mobile-menu-content .btn-nav-order {
    display: none !important;
  }
}

@media (max-width: 480px) {
  h2 { font-size: 28px; }
  .hero-image-bg h1 { font-size: 38px; }
  
  .team-photo-placeholder { 
    height: 380px; 
    border-radius: 80px 80px 20px 20px; 
  }
  
  .contact-card-box { padding: 30px 20px; }
  .mobile-overlay-menu { max-width: 100%; }
}

/* --- HERO ЕКРАН --- */
.hero-image-bg {
  position: relative;
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: flex-end;
  padding-bottom: 120px;
  overflow: hidden;
}

.hero-bg-image {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-image: url('../img/background/credo-back.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  will-change: transform;
  animation: kenBurnsEffect 15s ease-in-out infinite alternate;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(18,16,15,0.58) 0%, rgba(18,16,15,0.40) 28%, rgba(18,16,15,0.18) 55%, rgba(18,16,15,0.05) 100%),
    radial-gradient(circle at 18% 72%, rgba(18,16,15,0.40) 0%, rgba(18,16,15,0.18) 45%, transparent 80%);
}

.hero-image-bg h1 {
  font-size: 50px;
  line-height: 0.9;
  margin-bottom: 30px;
  margin-top: auto;
  color: #FFFFFF;
  font-weight: 300;
  text-align: left;
  text-shadow: 0 0 40px rgba(255, 255, 255, 0.15); 
}

.hero-image-bg h1 i { color: #F9F6F4; }



.hero-p {
  font-size: 16px;
  font-weight: 400;
  max-width: 650px;
  line-height: 1.7;
  color: #E5E2DC;
  text-align: left;
  letter-spacing: 0.5px;
  position: relative;
  padding: 15px 20px;
  margin-left: -20px;
  z-index: 2;
}

.hero-p::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: -1;
  background: rgba(20, 18, 17, 0.4); 
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, 1) 30%, rgba(0, 0, 0, 0) 100%);
  mask-image: linear-gradient(to right, rgba(0, 0, 0, 1) 30%, rgba(0, 0, 0, 0) 100%);
}
.hero-subtext {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 300;
  color: #8E857B;
  font-style: italic;
  letter-spacing: 0.5px;
}

/* --- СТИЛІЗАЦІЯ КНОПКИ В HERO СЕКЦІЇ --- */
.hero-action {
  margin-top: 15px;
  display: flex;
  justify-content: flex-start;
  position: relative;
  z-index: 5;
}

.btn-hero-order {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 38px;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 40px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  z-index: 1;
  transition: color 0.4s cubic-bezier(0.25, 1, 0.5, 1),
              border-color 0.4s cubic-bezier(0.25, 1, 0.5, 1),
              transform 0.4s cubic-bezier(0.25, 1, 0.5, 1),
              box-shadow 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Анімований фон при наведенні */
.btn-hero-order::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #FFFFFF;
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: -1;
}

/* Ефекти при наведенні (Hover) */
.btn-hero-order:hover {
  color: #12100F;
  border-color: #FFFFFF;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.btn-hero-order:hover::before {
  transform: scaleY(1);
}

/* Натискання (Active) */
.btn-hero-order:active {
  transform: translateY(-1px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Адаптивність для мобільних екранів */
@media (max-width: 768px) {
  .hero-action {
    margin-top: 25px;
    width: 100%;
  }

  .btn-hero-order {
    width: 100%;
    max-width: 320px;
    padding: 15px 25px;
    text-align: center;
    font-size: 10px;
    letter-spacing: 2px;
  }
}

.hero-container { width: 100%; position: relative; z-index: 2; }
.hero-footer { display: flex; justify-content: space-between; align-items: flex-end; }

/* КНОПКА SHELNAT СТРІЛКА */
.btn-shelnat { font-size: 11px; text-transform: uppercase; letter-spacing: 2px; color: #485243; padding: 10px 0; position: relative; border: none; background: transparent; cursor: pointer; }
.btn-shelnat svg { transition: transform 0.3s ease; }
.btn-shelnat::after { content: ''; position: absolute; bottom: 4px; left: 0; width: 100%; height: 1px; background-color: #485243; transform: scaleX(0); transform-origin: right; transition: transform 0.3s ease; }
.btn-shelnat:hover::after { transform: scaleX(1); transform-origin: left; }
.btn-shelnat:hover svg { transform: translate(3px, -3px); }

/* --- ІНДИКАТОР СКРОЛУ --- */
.hero-scroll-indicator {
  position: absolute;
  bottom: 40px; left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.4s ease, opacity 1s cubic-bezier(0.25, 1, 0.5, 1), transform 1s cubic-bezier(0.25, 1, 0.5, 1);
  opacity: 0;
  filter: blur(4px);
  will-change: transform, opacity, filter;
  animation: fadeInUpBlurAnim 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 1.2s;
}

.hero-scroll-indicator:hover { color: #FFFFFF; }
.hero-scroll-indicator.fade-out { opacity: 0 !important; transform: translate(-50%, 15px) !important; pointer-events: none; }
.scroll-text { font-size: 9px; text-transform: uppercase; letter-spacing: 3px; font-weight: 300; user-select: none; }
.scroll-arrow-line { display: inline-flex; will-change: transform; animation: subtleScrollBounce 2s cubic-bezier(0.45, 0, 0.55, 1) infinite; }

@keyframes subtleScrollBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ==========================================================================
   --- ОНОВЛЕНА СЕКЦІЯ "ПРО НАС" (ABOUT & TEAM) ---
   ========================================================================== */

.about-section {
  max-width: 1200px; /* Трохи розширимо для простору */
  margin: 0 auto;
  padding: 120px 20px; /* Більше відступів */
  position: relative;
  z-index: 1;
}

/* 1. Header & Typography */
.about-header {
  text-align: center;
  margin-bottom: 90px; /* Відступ до гріда */
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.section-tag {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #8E857B;
  display: block;
  margin-bottom: 15px;
  font-weight: 500;
}

.hero-slogan {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(36px, 5vw, 56px); /* Адаптивний розмір */
  font-weight: 300;
  color: #485243;
  margin-bottom: 15px;
  line-height: 1.1;
}

.hero-slogan i {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
}

.hero-subtext {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 300;
  color: #8E857B;
  font-style: italic;
  letter-spacing: 0.5px;
}

/* --- ABOUT SECTION --- */
.about-section { padding: 120px 0; }

.about-grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px;
  align-items: center; margin-bottom: 80px;
}

.lead-paragraph {
  font-size: 17px; line-height: 1.7; color: #485243; font-weight: 400; margin-bottom: 15px;
}

.about-story p { font-size: 14px; line-height: 1.8; color: #8E857B; font-weight: 300; }

.about-vision-card {
  background: #FFFFFF; padding: 45px; border-radius: 24px;
  border: 1px solid rgba(201, 194, 189, 0.3); position: relative;
  box-shadow: 0 10px 30px rgba(0,0,0,0.02);
}

.quote-mark {
  font-family: 'Cormorant Garamond', serif; font-size: 6rem;
  position: absolute; top: -10px; left: 25px; color: #485243; opacity: 0.12;
}

.about-vision-card p { font-size: 14px; line-height: 1.8; color: #8E857B; font-weight: 300; }

.team-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; margin-bottom: 80px;
}

.team-card { display: flex; flex-direction: column; align-items: center; text-align: center; }

.photo-wrapper {
  width: 100%; max-width: 340px; aspect-ratio: 3/4; border-radius: 120px;
  overflow: hidden; margin-bottom: 20px; border: 1px solid rgba(201, 194, 189, 0.3);
}

.photo-wrapper img { width: 100%; height: 100%; object-fit: cover; }

.team-info h3 { font-size: 24px; color: #485243; margin-bottom: 4px; }
.team-info .role { font-size: 11px; text-transform: uppercase; letter-spacing: 2px; color: #8E857B; }

/* ==========================================
   --- ВИШУКАНА ЦИТАТА-СТРІЧКА (ЗЕЛЕНИЙ ФОН) ---
   ========================================== */

.full-quote-section {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  
  background-color: #485243; /* Ваш колір фону */
  padding: 48px 0; /* Зменшили висоту блоку майже вдвічі */
  margin-top: 60px;
  margin-bottom: 60px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.08), inset 0 -1px 3px rgba(0, 0, 0, 0.08);
}

.full-quote-container {
  max-width: 1050px; /* Трохи звузили ширину для кращого сприйняття */
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  flex-direction: column;
}

/* Витончені акуратні лапки */
.full-quote-symbol {
  font-family: 'Cormorant Garamond', serif;
  font-size: 42px;
  line-height: 0.5;
  color: #B2B8A6; /* Ніжний шавлієвий акцент */
  opacity: 0.65;
  margin-bottom: 12px;
  user-select: none;
}

/* Текст цитати: стрункий, ледве розряджений */
.full-quote-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(20px, 1.8vw, 25px);
  font-style: italic;
  font-weight: 300;
  line-height: 1.55;
  color: #F4F3EE; /* М'який біло-кремовий */
  margin: 0 0 18px 0;
  max-width: 980px;
  letter-spacing: 0.4px;
}

/* Підпис: під цитатою та праворуч */
.full-quote-author {
  align-self: flex-end;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

.author-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 400; /* Менша товщина для тонкості */
  letter-spacing: 3.5px; /* Більша розрядка букв для преміального вигляду */
  color: #BCC2B1; /* Витончений світлий нюанс */
  text-transform: uppercase;
  opacity: 0.9;
}

/* --- АДАПТИВНІСТЬ ДЛЯ МОБІЛЬНИХ --- */
@media (max-width: 768px) {
  .full-quote-section {
    padding: 38px 0;
    margin-top: 40px;
    margin-bottom: 40px;
  }

  .full-quote-container {
    padding: 0 24px;
  }

  .full-quote-symbol {
    font-size: 34px;
    margin-bottom: 8px;
  }

  .full-quote-text {
    font-size: 18px;
    line-height: 1.5;
    margin-bottom: 14px;
  }

  .author-title {
    font-size: 9px;
    letter-spacing: 2.5px;
  }
}

/* --- АДАПТИВНІСТЬ ДЛЯ МОБІЛЬНИХ (ПЛАНШЕТИ ТА СМАРТФОНИ) --- */

@media (max-width: 992px) {
  .about-section { padding: 80px 20px; }
  .about-header { margin-bottom: 60px; }
  .about-grid {
    grid-template-columns: 1fr; /* В одну колонку */
    gap: 40px;
    margin-bottom: 70px;
  }
  .about-vision-card { padding: 40px; }
  .team-grid { gap: 40px; margin-bottom: 70px; }
}

@media (max-width: 768px) {
  .hero-slogan { font-size: 32px; }
  .team-grid {
    grid-template-columns: 1fr; /* Команда в один стовпчик */
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }
  .photo-wrapper { max-width: 100%; } /* Фото на всю ширину на мобільних */
  .final-manifesto blockquote { font-size: 20px; }
}

/* --- ПОРТФОЛІО ТИЗЕР --- */
.portfolio-capsule-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 50px; }

.capsule-image-wrapper { width: 100%; overflow: hidden; background: #EAE6E1; }
.capsule-image-wrapper img { width: 100%; height: 100%; object-fit: cover; display: block; }

.horizontal-capsule { height: 340px; border-radius: 170px; }
.vertical-capsule { height: 540px; border-radius: 180px; }
.wide-capsule { height: 380px; border-radius: 190px; }

.item-top-left { flex-direction: row !important; align-items: flex-end; gap: 20px; }
.item-right-vertical { grid-column: 2; grid-row: 1 / 3; }
.capsule-description { font-family: 'Cormorant Garamond', serif; font-size: 16px; font-style: italic; color: #485243; margin-top: 15px; }

/* --- ТАБЛИЦЯ ПОСЛУГ --- */
.shelnat-table { border-top: 1px solid #C9C2BD; }
.table-row { 
  display: flex; padding: 45px 0; border-bottom: 1px solid rgba(201, 194, 189, 0.4); position: relative;
  transition: padding-left 0.5s cubic-bezier(0.25, 1, 0.5, 1), border-bottom-color 0.5s ease; cursor: pointer; 
}
.table-row:hover { padding-left: 20px; border-bottom-color: #485243; }
.table-row::before { content: ''; position: absolute; left: 0; bottom: -1px; width: 0; height: 1px; background-color: #485243; transition: width 0.5s cubic-bezier(0.25, 1, 0.5, 1); }
.table-row:hover::before { width: 100%; }
.col-num { flex: 0.5; font-size: 11px; }
.col-name { flex: 1.5; }
.col-name h3 { font-size: 30px; transition: color 0.4s ease, transform 0.4s cubic-bezier(0.25, 1, 0.5, 1); }
.table-row:hover .col-name h3 { color: #485243; transform: translateX(5px); }
.col-text { flex: 3; font-size: 14px; font-weight: 300; line-height: 1.7; }


/* ==========================================
   PROCESS SECTION (DER WEG ZU IHREM ZUHAUSE)
   ========================================== */

.process-section {
  padding: 120px 0;
  position: relative;
  background-color: #F9F6F4;
}

.process-header {
  text-align: center;
  margin-bottom: 80px;
}

.process-tag-line {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #8E857B;
  display: block;
  margin-bottom: 12px;
}

.process-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 300;
  color: #485243;
}

/* Обгортка таймлайну */
.process-timeline-wrapper {
  position: relative;
  max-width: 1300px;
  margin: 0 auto;
}

/* Суцільна горизонтальна лінія за кругльами */
.process-connecting-line {
  position: absolute;
  top: 21px; /* По центру кружечка 42px / 2 */
  left: 60px;
  right: 60px;
  height: 1px;
  background-color: rgba(201, 194, 189, 0.6);
  z-index: 0;
}

/* Сітка на 4 колонки */
.process-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  position: relative;
  z-index: 1;
}

/* Окремий крок */
.process-step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 10px;
}

/* Темно-зелений кружечок з номером */
.step-badge {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: #485243;
  color: #FFFFFF;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  box-shadow: 0 0 0 8px #F9F6F4; /* Створює білий простір навколо лінії */
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), background-color 0.4s ease;
}

.process-step-item:hover .step-badge {
  transform: scale(1.1);
  background-color: #666956;
}

/* Заголовок кроку */
.step-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #485243;
  margin-bottom: 12px;
  min-height: 28px; /* Однакова висота блоку для вирівнювання опису */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Опис кроку */
.step-desc {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 300;
  line-height: 1.65;
  color: #8E857B;
  max-width: 260px;
}

/* --- МОБІЛЬНА АДАПТИВНІСТЬ --- */
@media (max-width: 992px) {
  .process-timeline-wrapper {
    padding-left: 20px;
  }

  .process-connecting-line {
    top: 0;
    bottom: 0;
    left: 40px;
    width: 1px;
    height: 100%;
    right: auto;
  }

  .process-steps-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .process-step-item {
    align-items: flex-start;
    text-align: left;
    padding-left: 60px;
    position: relative;
  }

  .step-badge {
    position: absolute;
    left: 0;
    top: -4px;
    margin-bottom: 0;
  }

  .step-title {
    justify-content: flex-start;
    min-height: auto;
  }

  .step-desc {
    max-width: 100%;
  }
}

/* --- СЕКЦІЯ CTA --- */
.cta-fluid-section { padding: 60px 0; background-color: #F9F6F4; width: 100%; overflow: hidden; }
.cta-fluid-shape { position: static; width: 100%; min-height: 450px; display: flex; align-items: center; justify-content: center; overflow: hidden; clip-path: ellipse(85% 100% at 50% 50%); }
.cta-story-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-image: url('../img/background/call-back.webp'); background-size: cover; background-position: center 40%; z-index: 0; filter: grayscale(20%) brightness(0.65) contrast(1.05); transform: scale(1.01); transition: transform 2.5s cubic-bezier(0.25, 1, 0.5, 1), filter 2.5s ease; will-change: transform, filter; }
.cta-fluid-shape:hover .cta-story-bg { transform: scale(1.05); filter: grayscale(5%) brightness(0.58) contrast(1.05); }
.cta-story-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(22, 20, 19, 0.8) 0%, rgba(102, 105, 86, 0.5) 100%); z-index: 1; }
.cta-fluid-content-wrapper { position: relative; z-index: 2; width: 100%; max-width: 1200px; padding: 0 40px; box-sizing: border-box; }
.cta-story-content { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.cta-story-content h2 { font-size: clamp(30px, 3.5vw, 42px); color: #FFFFFF; line-height: 1.2; letter-spacing: 1.5px; text-transform: uppercase; text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2); }
.cta-story-content h2 i { color: #E5E2DC; text-transform: none; }
.cta-story-content p { font-size: clamp(13px, 1.2vw, 15px); font-weight: 300; line-height: 1.65; color: #D6D2CB; max-width: 620px; }
.cta-story-action { margin-top: 12px; }

.btn-cta-order {
  border: 1px solid rgba(255, 255, 255, 0.75); padding: 14px 36px; font-size: 11px; text-transform: uppercase; letter-spacing: 2px; color: #FFFFFF; background: transparent; border-radius: 40px; font-weight: 500; position: relative; overflow: hidden; z-index: 1; display: inline-block; transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
.btn-cta-order::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: #FFFFFF; transform: scaleY(0); transform-origin: bottom; transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1); z-index: -1; }
.btn-cta-order:hover { color: #485243; border-color: #FFFFFF; transform: translateY(-2px); }
.btn-cta-order:hover::before { transform: scaleY(1); }

/* --- FAQ АКОРДЕОН --- */
/* ==========================================
   FAQ SECTION (LIGHT & ELEGANT STYLE)
   ========================================== */

/* Загальні налаштування секції */
#faq.section-padding {
  padding: 100px 20px;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

/* 1. Заголовок секції */
.section-header-clean {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 60px auto;
}

.section-subtitle {
  display: inline-block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #485243; /* М'який шавлієвий акцент */
  margin-bottom: 12px;
  font-weight: 500;
}

.section-header-clean h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 30px;
  line-height: 1.35;
  color: #5C554E; /* Теплий м'який антрацит замість темного чорного */
  font-weight: 300;
  letter-spacing: 0.5px;
  margin: 0;
}

/* 2. Контейнер акордеона */
.faq-accordion {
  max-width: 820px;
  margin: 0 auto;
}

/* 3. Елементи списку та розділювачі */
.faq-item {
  border-bottom: 1px solid rgba(180, 170, 160, 0.25); /* Дуже ніжна, напівпрозора лінія */
  transition: border-color 0.3s ease;
}

.faq-item:first-child {
  border-top: 1px solid rgba(180, 170, 160, 0.25);
}

.faq-item.active {
  border-bottom-color: rgba(102, 105, 86, 0.5); /* М'який акцент при відкритті */
}

/* 4. Кнопка-тригер (Запитання) */
.faq-trigger {
  width: 100%;
  padding: 26px 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
  outline: none;
  gap: 20px;
}

.faq-title {
  font-size: 17px;
  font-weight: 400;
  color: #6E675F; /* Світло-кавовий відтінок */
  letter-spacing: 0.2px;
  transition: color 0.3s ease;
}

.faq-trigger:hover .faq-title,
.faq-item.active .faq-title {
  color: #485243;
}

/* 5. Мінімалістична іконка Плюс / Мінус */
.faq-plus {
  position: relative;
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  opacity: 0.6; /* Напівпрозорість для легкості */
  transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-trigger:hover .faq-plus,
.faq-item.active .faq-plus {
  opacity: 1;
}

.faq-plus::before,
.faq-plus::after {
  content: '';
  position: absolute;
  background-color: #485243;
  border-radius: 1px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Тоненькі лінії (1px) */
.faq-plus::before {
  top: 5px;
  left: 0;
  width: 12px;
  height: 1px;
}

.faq-plus::after {
  top: 0;
  left: 5px;
  width: 1px;
  height: 12px;
}

/* Тランスформація плюса в мінус */
.faq-item.active .faq-plus {
  transform: rotate(180deg);
}

.faq-item.active .faq-plus::after {
  opacity: 0;
  transform: scaleY(0);
}

/* 6. Випадаючий текст (Відповідь) */
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-content-inner {
  padding: 0 8px 26px 8px;
}

.faq-content p {
  margin: 0;
  font-size: 14.5px;
  font-weight: 300;
  line-height: 1.8;
  color: #7A746E; /* Повітряний, приємний для читання текст */
}

/* 7. Адаптивність під мобільні пристрої */
@media (max-width: 768px) {
  #faq.section-padding {
    padding: 60px 16px;
  }
  
  .section-header-clean h2 {
    font-size: 22px;
  }

  .faq-title {
    font-size: 15.5px;
  }
  
  .faq-trigger {
    padding: 20px 4px;
  }

  .faq-content p {
    font-size: 14px;
  }
}

/* --- РОЗДІЛ ЗВОРOТНОГО ЗВ'ЯЗКУ --- */
.contact-section-luxury { position: relative; padding-top: 180px; padding-bottom: 180px; overflow: hidden; border-bottom: none; }
.contact-bg-texture { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-image: url('../img/background/tex5.webp'); background-size: cover; background-position: center; z-index: 0; filter: contrast(1.05) brightness(0.9); }
.contact-bg-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(142, 133, 123, 0.25) 0%, rgba(102, 105, 86, 0.15) 100%); z-index: 1; }
.contact-container-luxury { position: relative; z-index: 2; }
.contact-card-box { background-color: #FFFFFF; padding: 80px 100px; box-shadow: 0 40px 90px rgba(18, 16, 15, 0.08); display: flex; gap: 100px; align-items: flex-start; width: 100%; }
.contact-left { flex: 1; }
.contact-left h2 { margin: 25px 0 30px; font-size: clamp(36px, 4.2vw, 50px); }
.contact-meta-text { font-size: 14px; font-weight: 300; line-height: 1.7; color: #8E857B; }
.contact-right { flex: 1.2; width: 100%; }
.shelnat-form { display: flex; flex-direction: column; gap: 40px; }
.input-row-numeric { display: flex; align-items: flex-start; gap: 20px; border-bottom: 1px solid rgba(201, 194, 189, 0.4); padding-bottom: 5px; position: relative; transition: border-color 0.4s ease; }
.input-row-numeric:focus-within { border-color: #485243; }
.field-num { font-family: 'Cormorant Garamond', serif; font-size: 18px; font-style: italic; color: #C9C2BD; padding-top: 12px; line-height: 1; user-select: none; flex-shrink: 0; transition: color 0.4s ease, transform 0.4s ease; }
.input-row-numeric:focus-within .field-num { color: #485243; transform: translateY(-2px); }
.shelnat-form input, .shelnat-form textarea { width: 100%; background: transparent !important; border: none !important; outline: none !important; padding: 12px 0; color: #2c2c2c; font-size: 14px; font-weight: 300; font-family: 'Montserrat', sans-serif; }
.shelnat-form textarea { resize: none; display: block; padding-top: 14px; line-height: 1.6; }
.shelnat-form input::placeholder, .shelnat-form textarea::placeholder { color: #8E857B; font-size: 11px; text-transform: uppercase; letter-spacing: 1.5px; opacity: 0.8; transition: opacity 0.3s ease; }
.shelnat-form input:focus::placeholder, .shelnat-form textarea:focus::placeholder { opacity: 0.3; }
.form-submit-row { margin-top: 10px; display: flex; }
.submit-btn { border: none; background: transparent; padding: 10px 0; cursor: pointer; }

.file-upload-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 12px 0;
  cursor: pointer;
  color: #8E857B;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  transition: opacity 0.3s ease;
}

.file-upload-label:hover {
  opacity: 0.6;
}

.file-upload-label svg {
  color: #485243;
}

/* --- ФУТЕР --- */
.footer { padding: 100px 0 60px; border-top: 1px solid rgba(201, 194, 189, 0.35); background-color: #F9F6F4; position: relative; z-index: 100; }
.footer-container { display: grid; grid-template-columns: 1.2fr 0.8fr 1.5fr; gap: 80px; width: 100%; align-items: flex-start; }
.footer-brand-col { display: flex; flex-direction: column; gap: 25px; }
.f-logo { font-size: 16px; font-weight: 500; letter-spacing: 5px; color: #485243; line-height: 1.2; }
.f-brand-philosophy { font-size: 13px; font-weight: 300; line-height: 1.6; color: #8E857B; max-width: 280px; }
.f-copy { font-size: 10px; font-weight: 400; letter-spacing: 2px; color: #C9C2BD; text-transform: uppercase; margin-top: auto; padding-top: 20px; }
.footer-nav-col { display: flex; flex-direction: column; gap: 25px; }
.f-column-label { font-size: 10px; text-transform: uppercase; letter-spacing: 3px; color: #8E857B; font-weight: 400; border-bottom: 1px solid rgba(201, 194, 189, 0.2); padding-bottom: 10px; }
.f-nav-list { list-style: none; display: flex; flex-direction: column; gap: 15px; }
.f-nav-list .f-nav-link { font-size: 12px; text-transform: uppercase; letter-spacing: 1.5px; color: #8E857B; transition: color 0.3s ease, padding-left 0.3s ease; display: inline-block; }
.f-nav-list .f-nav-link:hover { color: #485243; padding-left: 6px; }
.footer-contacts-col { display: flex; flex-direction: column; gap: 25px; }
.footer-contacts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 35px 25px; }
.f-contact-item { display: flex; flex-direction: column; gap: 6px; }
.f-contact-label { font-size: 9px; text-transform: uppercase; letter-spacing: 2px; color: #C9C2BD; }
.f-contact-link { font-family: 'Cormorant Garamond', serif; font-size: 17px; color: #485243; font-weight: 300; transition: color 0.3s ease, transform 0.3s ease; display: inline-block; }
.f-contact-link:hover { color: #8E857B; transform: translateY(-1px); }
.f-contact-text { font-size: 13px; font-weight: 300; line-height: 1.5; color: #8E857B; }

/* --- СКРОЛ АНІМАЦІЇ REVEAL --- */
.reveal {
  opacity: 0; transform: translateY(40px); filter: blur(2px);
  transition: opacity 1.2s cubic-bezier(0.25, 1, 0.5, 1), transform 1.2s cubic-bezier(0.25, 1, 0.5, 1), filter 1.2s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform, opacity, filter;
}
.reveal.active { opacity: 1; transform: translateY(0); filter: blur(0); }
.team-grid .team-card:nth-child(2) { transition-delay: 0.2s; }

@keyframes kenBurnsEffect { 0% { transform: scale(1); } 100% { transform: scale(1.05); } }
.fade-in-up-blur { opacity: 0; transform: translateY(30px); filter: blur(4px); will-change: transform, opacity, filter; animation: fadeInUpBlurAnim 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
@keyframes fadeInUpBlurAnim { 0% { opacity: 0; transform: translateY(30px); filter: blur(4px); } 100% { opacity: 1; transform: translateY(0); filter: blur(0); } }

/* ==========================================================================
   --- ПОВНА МЕДІА-АДАПТИВНІСТЬ (ПЛАНШЕТИ ТА СМАРТФОНИ) ---
   ========================================================================== */

@media (max-width: 992px) {
  .container, .bg-grid-lines { padding: 0 25px; }
  
  /* Перебудова навігації під мобільну матричну кнопку */
  .nav-links, .btn-nav-order { display: none !important; } /* Сховали десктопні посилання та кнопку */
  .mobile-menu-trigger-wrapper { display: flex; } /* Увімкнули обгортку бургер-кружечка */

  /* Команда засновників */
  .team-grid, .table-row, .contact-grid { flex-direction: column; gap: 45px; }
  .team-card, .team-card:last-child { padding: 40px 0; border-right: none; border-bottom: 1px solid rgba(201, 194, 189, 0.3); transform: none !important; }
  .team-grid-divider::before, .team-grid::after { display: none !important; }
  
  /* Секція геро */
  .hero-footer { flex-direction: column; align-items: flex-start; gap: 35px; }
  
  /* Капсули портфоліо */
  .portfolio-capsule-grid { grid-template-columns: 1fr; gap: 50px; }
  .item-top-left { flex-direction: column !important; align-items: flex-start; max-width: 100%; gap: 15px; }
  .item-top-left .capsule-description { width: 100%; padding-bottom: 0; }
  .item-right-vertical { grid-column: 1; grid-row: auto; margin-top: 0; }
  .item-bottom-wide { margin-top: 0; }
  .horizontal-capsule, .vertical-capsule, .wide-capsule { height: 320px; border-radius: 60px; }
  .item-right-vertical .capsule-description, .item-bottom-wide .capsule-description { padding-left: 15px; margin-top: 15px; }

  /* Таблиця послуг */
  .table-row { padding: 30px 0; }
  .col-name h3 { font-size: 24px; }
  .col-text { font-size: 13px; }

  /* Секція СТА */
  .cta-fluid-section { padding: 30px 0; }
  .cta-fluid-shape { min-height: 420px; clip-path: ellipse(100% 100% at 50% 50%); }
  .cta-fluid-content-wrapper { padding: 0 20px; }
  .cta-story-content { gap: 18px; }

  /* Форма зворотного зв'язку */
  .contact-section-luxury { padding-top: 100px; padding-bottom: 100px; }
  .contact-card-box { flex-direction: column; padding: 40px 30px; gap: 50px; }

  /* Футер */
  .footer { padding: 70px 0 40px; }
  .footer-container { grid-template-columns: 1fr; gap: 50px; text-align: left; }
  .f-brand-philosophy { max-width: 100%; }
  .footer-contacts-grid { grid-template-columns: 1fr; gap: 25px; }
  .f-copy { margin-top: 20px; }
}

@media (max-width: 480px) {
  h2 { font-size: 28px; }
  .hero-image-bg h1 { font-size: 38px; }
  .team-photo-placeholder { height: 380px; border-radius: 80px 80px 20px 20px; }
  .contact-card-box { padding: 30px 20px; }
  .mobile-overlay-menu { max-width: 100%; } /* Меню на весь екран на маленьких смартфонах */
}

/* --- Додатковий базовий стиль для десктопної версії (збереження сітки) --- */
@media (min-width: 993px) {
  .footer-container {
    display: grid;
    /* Повертаємо оригінальні пропорції трьох колонок, де копірайт лежить всередині першої */
    grid-template-columns: 1.2fr 2.3fr; 
    gap: 80px;
  }
  .footer-links-wrapper {
    display: grid;
    grid-template-columns: 0.8fr 1.5fr;
    gap: 80px;
  }
  .f-copy {
    grid-column: 1;
    margin-top: 40px;
  }
}

/* ==========================================================================
   --- ОНОВЛЕНА АДАПТИВНІСТЬ ФУТЕРА ДЛЯ МОБІЛЬНИХ ПРИСТРОЇВ ---
   ========================================================================== */

@media (max-width: 992px) {
  /* Переводимо контейнер футера у вертикальний flex-потік */
  .footer-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    text-align: left;
  }

  /* Блок 1: Назва та філософія */
  .footer-brand-col {
    gap: 15px;
  }
  .f-brand-philosophy {
    max-width: 100%;
  }

  /* Блок 2: Обгортка навігації та зв'язку, що ділить екран на дві колонки */
  .footer-links-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Дві рівні колонки */
    gap: 30px 20px;
    width: 100%;
  }

  /* Скидаємо десктопну сітку контактів всередині правої колонки, робимо їх в один стовпчик */
  .footer-contacts-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  /* Фіксуємо розміри шрифтів посилань на мобільних пристроях для кращої читабельності */
  .f-contact-link {
    font-size: 15px;
    word-break: break-word; /* Запобігає виходу довгих email-адрес за межі екрана */
  }

  /* Блок 3: Копірайт завжди залишається в самому низу */
  .f-copy {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(201, 194, 189, 0.2); /* Візуальна лінія над копірайтом */
    width: 100%;
  }
}




.founders-section {
  margin-top: -80px; /* заходить під about-me */
  padding-top: 140px;
}

.portfolio-capsule-section {
  margin-top: -60px;
}

.connector-thread {
  position: absolute;
  left: 50%;
  top: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(102,105,86,0.25) 20%,
    rgba(102,105,86,0.25) 80%,
    transparent
  );
  z-index: 0;
  pointer-events: none;
}