/* ===============================
   ONE LINE PREMIUM CATALOG
=============================== */

.one-line-catalog{
  max-width: 100%;
  padding: 0 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  position: relative;
}

.one-line-catalog h2{
  text-align: center;
  font-size: 34px;
  font-weight: 700;
  margin-bottom: 6px;
}

.one-line-catalog .subtitle{
  text-align: center;
  color: #6b7280;
  font-size: 15px;
  margin-bottom: 36px;
}

/* ===============================
   CATALOG
=============================== */

.catalog-wrapper{ position: relative; }

/* ARROWS */
.catalog-arrow{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 10px 22px rgba(0,0,0,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  font-size: 28px;
  line-height: 1;
  color: #111827;
}
.catalog-arrow.left{ left: 6px; }
.catalog-arrow.right{ right: 6px; }
.catalog-arrow:hover{ transform: translateY(-50%) scale(1.04); }

.catalog-row{
  display: flex;
  gap: 28px;
  overflow-x: auto;
  padding: 10px 10px 20px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}
.catalog-row::-webkit-scrollbar{ display:none; }

.catalog-card{
  flex: 0 0 280px;
  background: #ffffff;
  border-radius: 22px;
  padding: 26px 22px 22px;
  text-decoration: none;
  color: #0f172a;
  scroll-snap-align: start;
  box-shadow:
    0 10px 25px rgba(0,0,0,.06),
    0 1px 2px rgba(0,0,0,.04);
  transition: transform .3s ease, box-shadow .3s ease;
}
.catalog-card:hover{
  transform: translateY(-6px);
  box-shadow:
    0 22px 40px rgba(0,0,0,.12),
    0 3px 10px rgba(0,0,0,.06);
}
.catalog-card img{
  width: 100%;
  max-height: 260px;
  object-fit: contain;
  margin-bottom: 16px;
  display:block;
}
.catalog-title{ font-size: 17px; font-weight: 600; margin-bottom: 2px; }
.catalog-desc{ font-size: 14px; color: #6b7280; }

.catalog-badge{
  position: absolute;
  top: 18px;
  left: 18px;
  background: linear-gradient(135deg,#111827,#334155);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
  z-index: 2;
}

/* ===============================
   BEFORE / AFTER (АНИМАЦИЮ НЕ ЛОМАЕМ)
=============================== */

.ba-row{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto 100px;
}
.ba-wrapper{ width:100%; }

.ba-container{
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  height: auto;              /* важно */
  overflow: hidden;
  border-radius: 24px;
  background: #000;
  user-select: none;
  isolation: isolate;         /* стабилизирует слои */
  transform: translateZ(0);   /* фикс клипа на мобилке */
  -webkit-mask-image: -webkit-radial-gradient(white, black); /* iOS фикс скругления */
}

.ba-after,
.ba-before{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;     /* ✅ углы точно круглятся */
}

.ba-before{
  z-index: 2;
  clip-path: inset(0 50% 0 0);
}
.ba-after{ z-index: 1; }

.ba-slider{
  position: absolute;
  inset: 0;
  z-index: 3;
  cursor: ew-resize;
}
.ba-line{
  position: absolute;
  left: 50%;
  width: 2px;
  height: 100%;
  background: rgba(255,255,255,.95);
  transform: translateX(-50%);
}
.ba-handle{
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  background: #fff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
}

/* =====================================================
   BLU PRODUCT — STABLE VERSION
===================================================== */

.blu-product{
  max-width: 420px;
  margin: 40px auto;
  padding: 16px;
  background: #eaf4ff;
  border-radius: 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.blu-title{ font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.blu-rating{ display:flex; gap:6px; align-items:center; font-size:14px; margin-bottom:14px; }
.blu-stars{ color:#fbbf24; }
.blu-reviews{ color:#2563eb; }

.blu-image-gallery{ display:flex; gap:14px; margin-bottom:16px; }
.blu-main-img{ flex:1; border-radius:22px; overflow:hidden; background:#fff; }
.blu-main-img img{ width:100%; max-height:320px; object-fit:contain; display:block; }
.blu-thumbs{ display:flex; flex-direction:column; gap:10px; }
.blu-thumbs img{ width:64px; height:64px; object-fit:contain; border-radius:14px; border:2px solid #e5e7eb; background:#fff; cursor:pointer; }
.blu-thumbs img.active{ border-color:#22c55e; }

.blu-price{ font-size:26px; font-weight:800; margin:12px 0 6px; }
.blu-payments{ display:flex; gap:10px; align-items:center; margin-bottom:6px; }
.blu-tabby{ background:#22c55e; color:#fff; padding:4px 8px; border-radius:6px; font-size:12px; }
.blu-delivery{ font-size:13px; color:#374151; margin-bottom:14px; }

.blu-switch{ display:flex; gap:16px; flex-wrap:nowrap; }
.blu-switch button{ width:96px; height:96px; border-radius:18px; background:transparent; border:2px solid #e5e7eb; display:flex; align-items:center; justify-content:center; }
.blu-switch button.active{ border-color:#22c55e; }
.blu-switch button img{ width:56px; height:56px; object-fit:contain; background:transparent; }

/* ===============================
   MOBILE
=============================== */

@media (max-width: 768px){

  /* catalog cards */
  .catalog-card{ flex: 0 0 82%; }

  /* arrows slightly smaller */
  .catalog-arrow{
    width: 42px;
    height: 42px;
    border-radius: 12px;
    font-size: 26px;
  }
  .catalog-arrow.left{ left: 4px; }
  .catalog-arrow.right{ right: 4px; }

  /* BEFORE/AFTER — 2 IN ONE ROW */
  .ba-row{
    display:flex;
    flex-wrap: nowrap;
    gap:12px;
    padding:0 16px;
    margin: 0 auto 70px;
    max-width:100%;
  }
  .ba-wrapper{
    flex: 0 0 calc(50% - 6px);
  }

  /* ✅ главное: не режем снизу и скругляем */
  .ba-container{
    aspect-ratio: 4 / 3;      /* выше чем 3/2, и не “полоской” */
    height: auto !important;  /* убивает любые старые height */
    border-radius: 18px;
  }

  .ba-handle{ width: 36px; height: 36px; }
}
/* ===============================
   CLEAN PREMIUM HEADER
=============================== */

/* общий контейнер */
.ec-header {
  padding: 10px 0 !important;
}

/* логотип / название */
.ec-header__logo {
  font-size: 18px !important;
  font-weight: 600 !important;
  letter-spacing: 0.3px;
  text-transform: none;
  color: #0b1e31;
}

/* центрирование названия */
.ec-header__cell--center {
  justify-content: center !important;
}

/* поиск — компактнее */
.ec-search {
  max-width: 260px !important;
}

.ec-search__input {
  height: 36px !important;
  border-radius: 999px !important;
  font-size: 14px;
  background: #f5f7fa;
  border: 1px solid #e5e7eb;
}

/* иконки справа */
.ec-header__icons {
  gap: 14px !important;
}

.ec-header__icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f5f7fa;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* счётчики */
.ec-header__icon-counter {
  background: #2563eb !important;
  color: #fff !important;
  font-size: 11px;
}
/* ===============================
   FINAL CTA — FIX CONTRAST
=============================== */

.about-cta {
  position: relative;
  background: linear-gradient(180deg, #0b3a31 0%, #06251f 100%);
  overflow: hidden;
}

/* overlay */
.about-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at center,
    rgba(0,0,0,0.25) 0%,
    rgba(0,0,0,0.6) 70%
  );
  z-index: 1;
}

/* контент поверх */
.about-cta * {
  position: relative;
  z-index: 2;
}

/* заголовок */
.about-cta h2 {
  color: #ffffff !important;
  font-size: 44px !important;
  font-weight: 800 !important;
  letter-spacing: -0.4px;
  text-shadow: 0 6px 30px rgba(0,0,0,.45);
  margin-bottom: 18px;
}

/* текст */
.about-cta p {
  color: #e5f7f1 !important;
  font-size: 18px !important;
  line-height: 1.7;
  max-width: 760px;
  margin: 0 auto 40px;
}

/* кнопка */
.about-cta a {
  background: #ffffff !important;
  color: #0b3a31 !important;
  font-weight: 700;
  padding: 18px 40px;
  border-radius: 999px;
  box-shadow: 0 10px 40px rgba(0,0,0,.25);
  transition: all .3s ease;
}

.about-cta a:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 50px rgba(0,0,0,.35);
}

/* мобильная версия */
@media (max-width: 768px) {
  .about-cta h2 {
    font-size: 32px !important;
  }
}
/* ===============================
   ABOUT HERO — FIX CONTRAST
=============================== */

.about-hero {
  position: relative;
  background: linear-gradient(180deg, #0b3a31 0%, #06251f 100%);
  overflow: hidden;
}

/* затемняющий overlay */
.about-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at center,
    rgba(0,0,0,0.25) 0%,
    rgba(0,0,0,0.65) 70%
  );
  z-index: 1;
}

/* контент поверх */
.about-hero * {
  position: relative;
  z-index: 2;
}

/* заголовок */
.about-hero h1 {
  color: #ffffff !important;
  font-size: 56px !important;
  font-weight: 800 !important;
  letter-spacing: -0.5px;
  text-shadow: 0 6px 30px rgba(0,0,0,.45);
  margin-bottom: 24px;
}

/* подзаголовок */
.about-hero p {
  color: #e5f7f1 !important;
  font-size: 20px !important;
  line-height: 1.8;
  max-width: 760px;
  margin: 0 auto;
}

/* мобильная адаптация */
@media (max-width: 768px) {
  .about-hero h1 {
    font-size: 38px !important;
  }

  .about-hero p {
    font-size: 17px !important;
  }
}
