

.btn-soft-gradient {
    background: linear-gradient(90deg, #6b3dd1 0%, #4d2c91 100%);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(77, 44, 145, 0.3);
    transition: all 0.3s ease;
    border: none;
}

.btn-soft-gradient:hover {
    background: linear-gradient(90deg, #5a30b3 0%, #3a2174 100%);
    box-shadow: 0 6px 14px rgba(77, 44, 145, 0.4);
    transform: translateY(-1px);
    color: #fff;
}

.btn-soft-outline {
    background-color: transparent;
    border: 2px solid #4d2c91;
    color: #4d2c91;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-soft-outline:hover {
    background-color: #4d2c91;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(77, 44, 145, 0.3);
}

.navbar-nav .nav-link {
  white-space: nowrap;
  padding: 8px 14px;
}

#moreDropdown .dropdown-menu {
  min-width: 180px;
  background: #fff;
  border-radius: 12px;
  padding: 8px 0;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  border: none;
  z-index: 9999;
}

#moreDropdown .dropdown-item {
  color: #2d2d2d !important;         /* темний текст */
  font-weight: 500;
  font-size: 15px;
  padding: 10px 20px;
  transition: background-color 0.2s ease;
}

#moreDropdown .dropdown-item:hover {
  background-color: #f5f5f5;
  color: #6C63FF !important;
  border-radius: 6px;
}

.hero-title {
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
  hyphens: none;
}

/* Виправляє розрив тексту в hero-блоці */
.fancy-text-style-4 {
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
  hyphens: none;
  line-height: 1.2;
}

/* Також на span, якщо залишаються проблеми */
.fancy-text-style-4 span {
  display: inline;
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
}

@media (max-width: 1080px) {
  .fancy-text-style-4 {
    font-size: 42px;
    line-height: 1.3;
  }

  .fancy-text-style-4 span {
    font-size: 34px;
  }
}

/* Зменшуємо заголовок */
.fancy-text-style-4 {
  font-size: 76px; /* було 110px */
  line-height: 1.1;
}

/* Зменшуємо fancy змінюваний текст */
.fancy-text-style-4 span.fw-700 {
  font-size: 56px; /* було 90px */
}

/* Мобільна адаптація */
@media (max-width: 1080px) {
  .fancy-text-style-4 {
    font-size: 48px;
  }
  .fancy-text-style-4 span.fw-700 {
    font-size: 36px;
  }
}

.fancy-text-style-4 span.fw-700 {
  font-size: 56px;     /* було 90px — занадто */
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.2;
}

@media (max-width: 1080px) {
  .fancy-text-style-4 span.fw-700 {
    font-size: 36px;
  }
}

.buy-theme,
.all-demo {
  display: none !important;
}

.why-choose-us {
  padding: 80px 20px 60px;
}

.why-choose-us .section-header {
  text-align: center;
  margin-bottom: 50px;
}

.why-choose-us .section-header h2 {
  font-size: 36px;
  font-weight: 700;
  color: #000;
  margin-bottom: 10px;
}

.why-choose-us .section-header p {
  color: #666;
  font-size: 18px;
  margin: 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.feature-box {
  background: #fff;
  border-radius: 20px;
  padding: 30px 25px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.feature-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.08);
}

.feature-box img {
  width: 50px;
  margin-bottom: 20px;
  transition: transform 0.3s ease;
}

.feature-box:hover img {
  transform: scale(1.1);
}

.feature-box span {
  display: block;
  font-size: 16px;
  color: #000;
  opacity: 0.5;
  margin-bottom: 5px;
}

.feature-box h3 {
  font-size: 22px;
  font-weight: 700;
  color: #000;
  margin-bottom: 10px;
}

.feature-box p {
  font-size: 16px;
  color: #000;
  margin: 0;
  line-height: 1.5;
}

.feature-box-content span {
  font-size: 22px;
  font-weight: 800;
  color: #1c1c1c;
}

/* Вирівнювання і анімація */
.hover-up {
  transition: all 0.3s ease;
}
.hover-up:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 35px rgba(0, 0, 0, 0.08);
}

/* Однакові іконки */
.icon-img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  display: block;
}

/* Вирівнювання тексту */
.card h5 {
  font-size: 20px;
  color: #1a1a1a;
}
.card p {
  font-size: 16px;
  color: #333;
}


  .role-switcher-vertical {
    position: fixed;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: #f1f1f1;
    border-radius: 12px;
    padding: 10px 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  }

  .switch-label {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
  }

  .switch-label input {
    opacity: 0;
    width: 0;
    height: 0;
  }

  .switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0;
    right: 0; bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
  }

  .switch-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
  }

  input:checked + .switch-slider {
    background-color: #6c63ff;
  }

  input:checked + .switch-slider:before {
    transform: translateX(18px);
  }

  .role-labels {
    display: flex;
    flex-direction: column;
    text-align: center;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
  }

  .role-labels .advertiser {
    color: #ff6600;
  }

  .role-labels .executor {
    color: #337ab7;
  }
  
  @media (max-width: 1150px) {
  .navbar-nav .nav-link {
    padding: 6px 12px !important;
    font-size: 13px !important;
  }

  .auth-buttons .btn {
    padding: 6px 10px !important;
    font-size: 13px !important;
  }

  .auth-buttons .btn i {
    font-size: 14px !important;
  }

  .role-toggle {
    gap: 6px !important;
  }

  .role-btn {
    font-size: 18px !important;
  }
}

/* 	1.	Лого (.logo) — по центру
	2.	Блок із перемикачем, кнопками й бургером — в один рядок, зліва направо:
	•	🚀 перемикач ролей
	•	👤 Реєстрація / Вхід
	•	🍔 бургер
*/

/* ---------- CUSTOM MOBILE HEADER ---------- */
.custom-header {
  display: none;
}

/* Мобільна версія */
@media (max-width: 991px) {
  .custom-header {
    display: block;
    padding: 12px 16px;
    background-color: #fff;
    position: relative;
    z-index: 999;
  }

  .custom-header-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .custom-header-top {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .custom-header-logo img {
    height: 36px;
  }

  .custom-header-bottom {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .custom-role-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f9f9f9;
    padding: 6px 10px;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  }

  .custom-role-btn {
    font-size: 18px;
  }

  .custom-switch {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 20px;
  }

  .custom-switch input {
    opacity: 0;
    width: 0;
    height: 0;
  }

  .custom-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ccc;
    border-radius: 34px;
    transition: .4s;
  }

  .custom-slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: .4s;
  }

  .custom-switch input:checked + .custom-slider {
    background-color: #6c63ff;
  }

  .custom-switch input:checked + .custom-slider:before {
    transform: translateX(16px);
  }

  .custom-auth-buttons {
    display: flex;
    gap: 8px;
  }

  .custom-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #6c63ff;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 16px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  }

  .custom-btn.custom-login {
    background: transparent;
    color: #6c63ff;
    border: 2px solid #6c63ff;
  }

  .custom-burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    padding: 0;
  }

  .custom-burger span {
    height: 2px;
    background: #222;
    width: 100%;
    display: block;
    border-radius: 1px;
  }
}

/* 📱 МОБІЛЬНИЙ ФІКСОВАНИЙ ХЕДЕР */
.mobile-sticky-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1050;
  background: #ffffff; /* або rgba(255,255,255,0.9) для прозорості */
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

.mobile-logo-img {
  max-height: 36px;
}

.mobile-controls {
  margin-top: 6px;
}

.mobile-auth .btn {
  padding: 4px 8px;
  font-size: 16px;
}


@media (min-width: 992px) {
  .mobile-sticky-header,
  .mobile-header-spacer {
    display: none !important;
  }
}

@media (max-width: 991px) {
  .mobile-sticky-wrapper {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  body, html {
    margin-top: 0 !important;
    padding-top: 0 !important;
    scroll-padding-top: 60px; /* залишає місце, якщо є scroll-to-id */
  }

  .custom-header-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  }
}





/* ✅ Fix top white space on mobile */
@media (max-width: 991px) {
  html, body {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  .custom-header,
  .mobile-sticky-header,
  .custom-header-fixed {
    top: 0 !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
}

/* ✅ Ensure custom mobile header is fixed */
@media (max-width: 991px) {
  .custom-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  }

  .mobile-header-spacer {
    height: 20px;
  }
}

@media (max-width: 991px) {
  .mobile-header-spacer {
    height: 72px;
  }
}

.custom-header-fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999; /* або більше, якщо інші елементи перекривають */
  background-color: #fff; /* обов’язково! або прозорий фон, якщо хочеш */
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

@media (max-width: 991px) {
  .mobile-header-spacer {
    display: block;
    height: 80px; /* Підігнати під точну висоту меню */
  }
}

@media (min-width: 992px) {
  .mobile-header-spacer {
    display: none;
  }
}

@media (max-width: 991px) {
  .mobile-header-spacer {
    display: block;
    height: 80px; /* Висота мобільного хедера */
  }

  .hero-section {
    padding-top: 100px;
  }
}

@media (min-width: 992px) {
  .mobile-header-spacer {
    display: none;
  }
}

@media (max-width: 991px) {
  .mobile-logo {
    margin-top: 8px; /* або padding-top: 8px; */
  }

  /* Або для точного налаштування */
  .mobile-logo-img {
    margin-top: 6px; /* можна гратись з розміром */
  }
}

/* Мобільні іконки: трохи менші і ближче до бургера */
.btn-purple-icon,
.btn-purple-outline-icon {
  width: 40px;
  height: 40px;
  border-radius: 20px;
  font-size: 15px;
}

/* Стилі заливки */
.btn-purple-icon {
  background: linear-gradient(145deg, #6C63FF, #9C85FF);
  color: #fff;
  box-shadow: 0 3px 8px rgba(108, 99, 255, 0.25);
  border: none;
}

.btn-purple-icon:hover {
  background: linear-gradient(145deg, #5c52e3, #8670ff);
  box-shadow: 0 5px 12px rgba(108, 99, 255, 0.35);
}

/* Стилі обводки */
.btn-purple-outline-icon {
  border: 2px solid #6C63FF;
  background-color: transparent;
  color: #6C63FF;
}

.btn-purple-outline-icon:hover {
  background-color: #6C63FF;
  color: #fff;
  box-shadow: 0 4px 10px rgba(108, 99, 255, 0.3);
}

@media (max-width: 991px) {
  .mobile-auth {
    gap: 6px !important;
  }
}

@media (max-width: 767px) {
  .ls-minus-2px {
    letter-spacing: -0.5px !important;
  }
}

@media (max-width: 767px) {
  .ls-minus-5px {
    letter-spacing: -1px !important; /* або 0px, якщо хочеш зовсім без зменшення */
  }
}

@media (max-width: 767px) {
  section#task img.img-fluid {
    max-width: 80% !important;
    height: auto;
  }
}

/* Адаптивний letter-spacing */
.ls-adaptive {
  letter-spacing: 0;
}

@media (max-width: 992px) {
  .ls-adaptive {
    letter-spacing: -1px;
  }
}

@media (max-width: 768px) {
  .ls-adaptive {
    letter-spacing: -2px;
  }
}

@media (max-width: 480px) {
  .ls-adaptive {
    letter-spacing: -3px;
  }
}