/* ==================== CLIENTS PAGE STYLES ==================== */
*, *::before, *::after {
  box-sizing: border-box;
}

.clients-page {
  width: 100%;
  margin-top: clamp(90px, 15vw, 120px);
  min-height: 100vh;
  background-color: var(--background);
  padding: clamp(30px, 6vw, 60px) clamp(15px, 3vw, 30px);
}

.bottom-nav-icon {
    font-size: 24px;
    margin-bottom: 2px;
}
.clients-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: clamp(30px, 6vw, 60px);
  align-items: start;
}

/* ==================== SIDEBAR ==================== */
.clients-sidebar {
  position: sticky;
  top: clamp(110px, 18vw, 140px);
  background: white;
  border-radius: 20px;
  padding: clamp(25px, 5vw, 35px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.sidebar-title {
  font-size: clamp(22px, 4vw, 28px);
  color: var(--text-dark);
  margin-bottom: clamp(20px, 4vw, 30px);
  font-weight: 700;
  padding-bottom: 15px;
  border-bottom: 3px solid var(--accent-pink);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-link {
  display: block;
  padding: clamp(12px, 2.5vw, 16px) clamp(15px, 3vw, 20px);
  color: var(--text-medium);
  text-decoration: none;
  border-radius: 12px;
  font-size: clamp(14px, 2vw, 16px);
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.sidebar-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary-color), var(--primary-light));
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.sidebar-link:hover {
  background-color: rgba(244, 218, 238, 0.3);
  color: var(--text-dark);
  transform: translateX(5px);
}

.sidebar-link.active {
  background: linear-gradient(135deg, rgba(96, 132, 59, 0.15), rgba(122, 165, 77, 0.1));
  color: var(--primary-color);
  font-weight: 600;
}

.sidebar-link.active::before {
  transform: scaleY(1);
}

/* ==================== MAIN CONTENT ==================== */
.clients-content {
  background: white;
  border-radius: 20px;
  padding: clamp(30px, 6vw, 50px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  min-height: 500px;
}

.content-section {
  display: none;
  animation: fadeIn 0.4s ease;
}

.content-section.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-title {
  font-size: clamp(28px, 5vw, 38px);
  color: var(--text-dark);
  margin-bottom: clamp(25px, 5vw, 40px);
  font-weight: 700;
  line-height: 1.2;
  position: relative;
  padding-bottom: 20px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
  border-radius: 2px;
}

.content-block {
  margin-bottom: clamp(30px, 6vw, 45px);
  padding: clamp(20px, 4vw, 30px);
  background: linear-gradient(135deg, rgba(244, 218, 238, 0.08), rgba(246, 226, 225, 0.12));
  border-radius: 16px;
  border-left: 4px solid var(--accent-pink);
}

.content-block h3 {
  font-size: clamp(18px, 3vw, 22px);
  color: var(--primary-color);
  margin-bottom: clamp(15px, 3vw, 20px);
  font-weight: 600;
}

.info-list {
  list-style: none;
  padding: 0;
  margin: clamp(15px, 3vw, 20px) 0;
}

.info-list li {
  padding-left: 30px;
  margin-bottom: 12px;
  line-height: 1.6;
  font-size: clamp(15px, 2.5vw, 17px);
  color: var(--text-medium);
  position: relative;
}

.info-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
  font-size: 18px;
}

.info-note {
  font-size: clamp(13px, 2vw, 15px);
  color: var(--text-light);
  font-style: italic;
  margin-top: 15px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 8px;
}

.info-highlight {
  font-size: clamp(15px, 2.5vw, 17px);
  color: var(--primary-color);
  font-weight: 600;
  margin-top: 20px;
  padding: clamp(15px, 3vw, 20px);
  background: rgba(96, 132, 59, 0.1);
  border-radius: 12px;
  text-align: center;
}

/* ==================== PRICE TABLE ==================== */
.price-table {
  margin-top: 25px;
}

.price-table h4 {
  font-size: clamp(16px, 2.5vw, 18px);
  color: var(--text-dark);
  margin-bottom: 15px;
  font-weight: 600;
}

.price-table table {
  width: 100%;
  border-collapse: collapse;
  margin: 15px 0;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.price-table table tr {
  border-bottom: 1px solid #f0f0f0;
}

.price-table table tr:last-child {
  border-bottom: none;
}

.price-table table td {
  padding: 15px 20px;
  font-size: clamp(14px, 2vw, 16px);
}

.price-table table td:first-child {
  color: var(--text-medium);
  font-weight: 500;
}

.price-table table td:last-child {
  color: var(--primary-color);
  font-weight: 700;
  text-align: right;
}

/* ==================== CARE TIPS ==================== */
.care-tips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 25px 0;
}

.care-tip {
  display: flex;
  gap: 15px;
  padding: clamp(18px, 3vw, 22px);
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.care-tip:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.care-icon {
  font-size: clamp(28px, 5vw, 36px);
  flex-shrink: 0;
}

.care-tip p {
  font-size: clamp(14px, 2vw, 15px);
  line-height: 1.6;
  color: var(--text-medium);
  margin: 0;
}

/* ==================== FAQ ==================== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.faq-item {
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(244, 218, 238, 0.08), rgba(246, 226, 225, 0.12));
  transition: all 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: clamp(18px, 3vw, 22px) clamp(20px, 4vw, 25px);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: clamp(15px, 2.5vw, 17px);
  font-weight: 600;
  color: var(--text-dark);
  transition: all 0.3s ease;
}

.faq-question:hover {
  color: var(--primary-color);
}

.faq-arrow {
  font-size: 14px;
  color: var(--primary-color);
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
}

.faq-item.active .faq-arrow {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0 clamp(20px, 4vw, 25px);
}

.faq-answer.active {
  max-height: 500px;
  padding: 0 clamp(20px, 4vw, 25px) clamp(18px, 3vw, 22px);
}

.faq-answer p {
  font-size: clamp(14px, 2vw, 16px);
  line-height: 1.7;
  color: var(--text-medium);
  margin: 0;
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 1024px) {
  .clients-container {
    grid-template-columns: 240px 1fr;
    gap: 30px;
  }

  .clients-sidebar {
    padding: 20px;
  }

  .clients-content {
    padding: 30px;
  }
}

@media (max-width: 768px) {
  * {
  box-sizing: border-box;
}

body {
  overflow-x: hidden;
}

.clients-page {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

.clients-container {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.clients-content {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  word-break: break-word;
  overflow-wrap: break-word;
}

.section-title {
  font-size: clamp(20px, 5vw, 28px);
  word-break: break-word;
}

.content-block {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.price-table table {
  width: 100%;
  table-layout: fixed;
}

.price-table table td {
  word-break: break-word;
  font-size: 14px;
}

  .clients-container {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .clients-sidebar {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    top: 0;
    left: 0;
  }

  .sidebar-title {
    font-size: 18px;
    margin-bottom: 12px;
    padding-bottom: 10px;
  }

  .sidebar-nav {
  flex-direction: row;
  overflow-x: scroll;
  flex-wrap: nowrap;
  gap: 6px;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-pink) transparent;
  -webkit-overflow-scrolling: touch;
  display: flex;
  width: 100%;
}

  .sidebar-nav::-webkit-scrollbar {
  display: block;
  height: 4px;
}
.sidebar-nav::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb {
  background: var(--accent-pink);
  border-radius: 10px;
}

  .sidebar-link {
  white-space: nowrap;
  flex-shrink: 0;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  min-width: unset;
  max-width: unset;
}

  .sidebar-link::before {
    /* замість лівої смужки — нижня підкреслена лінія для горизонтальних табів */
    width: 100%;
    height: 3px;
    top: auto;
    bottom: 0;
    left: 0;
    transform: scaleX(0);
  }

  .sidebar-link.active::before {
    transform: scaleX(1);
  }

  .sidebar-link:hover {
    transform: translateX(0) translateY(-2px);
  }

  .clients-content {
    padding: 20px 16px;
    border-radius: 16px;
  }

  .care-tips {
    grid-template-columns: 1fr;
  }

  .price-table table td {
    padding: 12px 15px;
  }
}

@media (max-width: 480px) {
  .clients-sidebar {
    padding: 12px 10px;
  }

  .sidebar-title {
    font-size: 18px;
    margin-bottom: 12px;
  }

  .sidebar-nav {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  .sidebar-link {
    font-size: 12px;
    padding: 8px 12px;
  }

  .clients-content {
    padding: 16px 12px;
  }

  .section-title {
    font-size: 22px;
  }

  .content-block {
    padding: 15px;
  }

  .care-tip {
    flex-direction: column;
    text-align: center;
  }

  .care-icon {
    margin: 0 auto;
  }

  .faq-question {
    font-size: 15px;
    padding: 15px;
  }
}

/* ==================== SCROLL BEHAVIOR ==================== */
html {
  scroll-behavior: smooth;
}

/* Prevent content jump when switching sections */
.clients-content {
  position: relative;
}

.content-section {
  position: relative;
}

.content-section:not(.active) {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  visibility: hidden;
}

/* ==================== BOTTOM NAV (MOBILE) ==================== */
.bottom-nav {
  display: none;
  justify-content: space-around;
  align-items: center;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: rgba(246, 226, 225, 0.98);
  backdrop-filter: blur(15px);
  box-shadow: 0 -2px 15px rgba(0,0,0,0.1);
  z-index: 999;
  padding: 8px 0 max(8px, env(safe-area-inset-bottom));
}
.bottom-nav-item {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-decoration: none; color: #333;
  padding: 6px 8px; transition: all 0.3s ease; position: relative;
}
.bottom-nav-item:active { transform: scale(0.95); }
.bottom-nav-item::before {
  content: ''; position: absolute; top: 0;
  left: 50%; transform: translateX(-50%);
  width: 0; height: 3px;
  background: linear-gradient(90deg, #f4a5ec, #c23eff);
  transition: width 0.3s ease; border-radius: 0 0 3px 3px;
}
.bottom-nav-item:hover::before,
.bottom-nav-item:active::before,
.bottom-nav-item.active::before { width: 60%; }
.bottom-nav-item.active { color: #c23eff; }
.bottom-nav-icon { font-size: 24px; margin-bottom: 2px; }
.bottom-nav-item span { font-size: 11px; font-weight: 600; text-align: center; }
.bottom-nav-lang {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  margin: 0 10px 0 10px;
  padding: 10px;
}

.bottom-nav-lang select {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    font-size: 16px;
}
.bottom-nav-lang select:focus { pointer-events: auto; }
.bottom-nav-icon { font-size: 24px; margin-bottom: 2px; }

@media (max-width: 1024px) {
  .bottom-nav { display: flex; }
  body { padding-bottom: 70px; }
}
@media (min-width: 1025px) {
  .bottom-nav { display: none !important; }
  body { padding-bottom: 0; }
}
