/* ===== Preloader ===== */
#app-preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bs-body-bg, #fff);
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

#app-preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-inner {
  text-align: center;
  width: 240px;
}

.preloader-logo {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
  color: var(--bs-body-color);
}

.preloader-bar-wrap {
  height: 4px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

[data-bs-theme="dark"] .preloader-bar-wrap {
  background: rgba(255, 255, 255, 0.12);
}

.preloader-bar {
  height: 100%;
  width: 0%;
  background: var(--bs-primary, #0d6efd);
  transition: width 0.25s ease;
}

.preloader-percent {
  font-size: 0.875rem;
  color: var(--bs-secondary-color, #6c757d);
}

/* ===== Базовые ===== */
#app {
  min-height: 100vh;
}

body {
  overflow-x: hidden;
}

/* ===== Full-height секции ===== */
.section-full {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.section-title {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.1rem;
  max-width: 36rem;
}

/* ===== Header ===== */
.site-header {
  z-index: 1030;
}

.theme-toggle {
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ===== SLIDER ===== */
.slider-section {
  position: relative;
  height: 100vh;
  min-height: 480px;
  overflow: hidden;
  background: #111;
}

.slider-viewport {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.slider-track {
  display: flex;
  height: 100%;
  width: 100%;
  transition: transform 0.7s cubic-bezier(0.25, 0.1, 0.25, 1);
  will-change: transform;
}

.slider-slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.slider-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.35) 0%,
    rgba(0, 0, 0, 0.45) 50%,
    rgba(0, 0, 0, 0.55) 100%
  );
  pointer-events: none;
}

.slider-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 2;
}

.slider-title {
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
  margin-bottom: 0.75rem;
  max-width: 90%;
}

.slider-subtitle {
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4);
  opacity: 0.92;
  max-width: 32rem;
  margin-bottom: 0;
}

/* Стрелки */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 3rem;
  height: 3rem;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.slider-arrow:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(-50%) scale(1.05);
}

.slider-arrow:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.slider-arrow-prev {
  left: 1.25rem;
}

.slider-arrow-next {
  right: 1.25rem;
}

/* Точки */
.slider-dots {
  position: absolute;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 0.55rem;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.7);
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.slider-dot:hover {
  background: rgba(255, 255, 255, 0.45);
}

.slider-dot.is-active {
  background: #fff;
  border-color: #fff;
  transform: scale(1.15);
}

.slider-dot:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* ===== Logo ===== */
.site-logo {
  height: 36px;
  width: auto;
  object-fit: contain;
}

/* ===== Showcase (система здоровья / витрина) ===== */
.showcase-section {
  /* высота в пределах экрана, padding внутри box */
  box-sizing: border-box;
  min-height: 100vh;
  min-height: 100dvh;
  max-height: none;
  display: flex;
  flex-direction: column;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
  overflow: hidden; /* badges не вылезают за секцию */
  background: linear-gradient(
    180deg,
    var(--vipoza-cream, #F8F5F0) 0%,
    var(--vipoza-milk, #FFFcf8) 50%,
    var(--vipoza-cream, #F8F5F0) 100%
  );
}

/* Колонка на всю высоту секции */
.showcase-layout {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  width: 100%;
}

/* Верх: доля высоты, контент прижат к верху (не раздувает секцию) */
.showcase-head {
  flex: 0 1 38%;
  max-height: 38%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 0.25rem;
  padding-bottom: 0.5rem;
  min-height: 0;
  overflow: hidden;
}

.showcase-logo {
  height: 110px;
  width: auto;
  max-width: min(420px, 85vw);
  max-height: 18vh;
  object-fit: contain;
  background: transparent;
  margin-bottom: 0.85rem;
}

.showcase-title {
  letter-spacing: -0.02em;
  /*text-transform: uppercase;*/
  font-size: clamp(1.35rem, 3.5vw, 1.85rem);
  color: var(--vipoza-logo-navy, #27364B);
  margin-bottom: 0.4rem;
}

[data-bs-theme="dark"] .showcase-title {
  color: var(--vipoza-text, #F0EBE3);
}

.showcase-subtitle {
  max-width: 32rem;
  font-size: 1.05rem;
}

.showcase-text {
  max-width: 36rem;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--vipoza-text-muted, #6B6560);
  margin-top: 0.75rem;
}

.showcase-tagline {
  max-width: 36rem;
  margin-top: 0.75rem;
  font-size: 1.05rem;
  font-weight: 600;
  /* font-style: italic; */
  color: var(--vipoza-logo-navy, #27364B);
}

[data-bs-theme="dark"] .showcase-tagline {
  color: var(--vipoza-mint, #B5CDBA);
}

/* Середина: карточки в оставшемся пространстве */
.showcase-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  min-height: 0;
  padding: 0.25rem 0 0.5rem;
  overflow: hidden;
}

.showcase-body .showcase-items {
  width: 100%;
}

.showcase-card {
  padding: 0.35rem 0.5rem 0.5rem;
}

.showcase-card-image-wrap {
  background: #fff;
  border-radius: 1rem;
  padding: 0.75rem;
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  max-width: 200px;
  max-height: min(200px, 28vh);
  margin-left: auto;
  margin-right: auto;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.showcase-card:hover .showcase-card-image-wrap {
  transform: translateY(-4px);
  box-shadow: 0 0.75rem 1.75rem rgba(0, 0, 0, 0.1);
}

.showcase-card-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.showcase-card-title {
  font-weight: 700;
  color: var(--vipoza-text, #2C2A26);
  font-size: 1rem;
}

.showcase-card-desc {
  font-size: 0.875rem;
  line-height: 1.4;
  max-width: 16rem;
  margin-left: auto;
  margin-right: auto;
}

/* Низ: badges внутри секции, не за её пределами */
.showcase-badges {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  margin-top: auto;
  padding-top: 0.75rem;
  padding-bottom: 4rem;
  position: relative;
  z-index: 2;
}

.showcase-badges-inner {
  background: var(--vipoza-milk, #FFFcf8);
  border: 1px solid var(--vipoza-sand, #D9CFC0);
  border-radius: 999px;
  padding: 1rem 1.75rem;
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.04);
  gap: 1.25rem !important;
}

.showcase-badge {
  color: var(--vipoza-text, #2C2A26);
  font-size: 1rem;
  font-weight: 500;
  white-space: nowrap;
}

.showcase-badge .bi {
  font-size: 1.35rem;
  color: var(--vipoza-logo-navy, #27364B);
}

.showcase-badge-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}

[data-bs-theme="dark"] .showcase-section {
  background: linear-gradient(
    180deg,
    var(--vipoza-cream) 0%,
    var(--vipoza-beige) 50%,
    var(--vipoza-cream) 100%
  );
}

[data-bs-theme="dark"] .showcase-card-image-wrap {
  background: var(--vipoza-milk);
}

[data-bs-theme="dark"] .showcase-badges-inner {
  background: var(--vipoza-milk);
  border-color: var(--vipoza-sand);
}

@media (max-width: 575.98px) {
  .showcase-badges-inner {
    border-radius: 1rem;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.25rem;
    width: 100%;
    max-width: 20rem;
  }

  .showcase-badge {
    white-space: normal;
  }
}

/* ===== Portfolio / Products ===== */
.portfolio-filters .btn {
  margin-right: 0.4rem;
  margin-bottom: 0.4rem;
}

.portfolio-card,
.product-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--vipoza-sand, #D9CFC0);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.portfolio-card:hover,
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.1) !important;
}

.product-image-wrap {
  background: #fff;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1rem;
}

.product-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
  background: var(--brushed-cta, #E07A5F);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.25rem 0.55rem;
  border-radius: 0.25rem;
}

.product-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.product-short {
  line-height: 1.45;
}

.product-price-current {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--vipoza-text, #2C2A26);
}

.product-price-old {
  font-size: 0.9rem;
  text-decoration: line-through;
  color: var(--vipoza-text-muted, #6B6560);
  margin-right: 0.35rem;
}

.product-actions .btn {
  flex: 1 1 auto;
  min-width: 0;
}

/* Модалка товара */
.product-modal-image-wrap {
  background: #fff;
  border-radius: 0.5rem;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
}

.product-modal-image {
  max-height: 320px;
  object-fit: contain;
}

.product-specs li {
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
}

.product-modal-desc {
  font-size: 0.95rem;
  line-height: 1.6;
}

[data-bs-theme="dark"] .product-image-wrap,
[data-bs-theme="dark"] .product-modal-image-wrap {
  background: var(--vipoza-milk, #252320);
}

/* ===== Team / принципы / partners ===== */
.team-photo,
.team-photo-placeholder {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.team-photo-placeholder {
  width: 100%;
}

.team-card {
  transition: transform 0.25s ease;
}

.team-card:hover {
  transform: translateY(-3px);
}

.team-feature-card {
  background: var(--vipoza-milk, #FFFcf8);
  border: 1px solid var(--vipoza-sand, #D9CFC0);
  border-radius: 0.75rem;
  padding: 1.35rem 1.25rem;
  height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.team-feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.06);
}

.team-feature-icon {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--vipoza-sage, #7A8F6E);
  font-size: 1.5rem;
}

.team-feature-icon-img {
  object-fit: contain;
}

.team-feature-title {
  font-weight: 700;
  color: var(--vipoza-logo-navy, #27364B);
  margin-bottom: 0.5rem;
}

[data-bs-theme="dark"] .team-feature-title {
  color: var(--vipoza-text, #F0EBE3);
}

.team-feature-desc {
  font-size: 0.95rem;
  line-height: 1.5;
}

[data-bs-theme="dark"] .team-feature-card {
  background: var(--vipoza-milk);
  border-color: var(--vipoza-sand);
}

/* ===== Contacts ===== */
.contact-info a {
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

.contact-social-btn {
  display: inline-flex;
  align-items: center;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--bs-body-bg);
}

/* ===== Адаптив слайдера ===== */
@media (max-width: 767.98px) {
  .slider-title {
    font-size: 2.25rem;
  }

  .slider-arrow {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.15rem;
  }

  .slider-arrow-prev {
    left: 0.75rem;
  }

  .slider-arrow-next {
    right: 0.75rem;
  }

  .slider-dots {
    bottom: 1.25rem;
  }
}
