/* EnergyBike v4 layout fix - new homepage only */
/* Container: the slider must never stretch edge-to-edge */
#eb-home .eb-v4-hero.eb-home-hero {
  width: min(1280px, calc(100% - 48px));
  max-width: 1280px;
  margin: 30px auto 0;
}
#eb-home .eb-v4-service-strip{
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));
  margin-top:26px;margin-bottom:0;
  border:1px solid #e1e7f2;border-radius:20px;overflow:hidden;background:#fff;
}
#eb-home .eb-v4-service-item{
  min-width:0;display:flex;align-items:flex-start;gap:15px;
  padding:16px 18px;min-height:110px;
}
#eb-home .eb-v4-service-item:not(:last-child){border-right:1px solid #e5eaf4}
#eb-home .eb-v4-service-icon{width:37px;height:37px;display:grid;place-items:center;flex:0 0 37px;color:#2850dc}
#eb-home .eb-v4-service-icon svg{width:26px;height:26px;stroke:currentColor;fill:none;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}
#eb-home .eb-v4-service-item h3{margin:0 0 4px;font-size:15px;font-weight:800;line-height:1.3;color:#15213c;letter-spacing:-.02em}
#eb-home .eb-v4-service-item p{margin:0 0 4px;color:#71819e;font-size:12px;line-height:1.55}
#eb-home .eb-v4-service-item a{color:#2850dc;font-size:12px;font-weight:800}
#eb-home .eb-v4-service-item a:hover{text-decoration:underline}
#eb-home .eb-v4-categories-section{padding-top:62px}
#eb-home .eb-v4-categories-heading{display:flex;justify-content:space-between;align-items:end;gap:30px;margin-bottom:22px}
#eb-home .eb-v4-categories-heading h2{font-size:clamp(29px,3vw,40px);margin:7px 0 9px;line-height:1.15}
#eb-home .eb-v4-categories-heading p{font-size:14px;color:#657592}
#eb-home .eb-v4-catalog-link{font-size:14px;color:#2850dc;font-weight:800;white-space:nowrap;padding-bottom:5px}
#eb-home .eb-v4-category-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
#eb-home .eb-v4-category-card{position:relative;display:flex;overflow:hidden;min-width:0;min-height:205px;border:1px solid #e0e7f5;border-radius:19px;padding:24px 23px;color:#15213c;transition:box-shadow .2s,transform .2s,border-color .2s;isolation:isolate}
#eb-home .eb-v4-category-card:hover{border-color:#b6c8ed;box-shadow:0 12px 30px rgba(37,76,151,.1);transform:translateY(-2px);color:#15213c}
#eb-home .eb-v4-category-card--lilac{background:#f3f5ff}
#eb-home .eb-v4-category-card--pale{background:#f8f9ff}
#eb-home .eb-v4-category-card--mint{background:#f4faf8}
#eb-home .eb-v4-category-card--sand{background:#fffaf0}
#eb-home .eb-v4-category-copy{position:relative;z-index:2;display:flex;flex-direction:column;align-items:flex-start;max-width:67%;min-height:156px}
#eb-home .eb-v4-category-title{font-size:clamp(19px,1.9vw,24px);font-weight:850;line-height:1.25;letter-spacing:-.04em;hyphens:none;overflow-wrap:normal;word-break:normal}
#eb-home .eb-v4-category-desc{font-size:13px;color:#536581;line-height:1.5;margin-top:12px;hyphens:none;overflow-wrap:normal;word-break:normal}
#eb-home .eb-v4-category-more{font-size:13px;color:#2850dc;font-weight:800;margin-top:auto;padding-top:20px}
#eb-home .eb-v4-category-image{position:absolute;right:-5%;bottom:0;width:54%;height:86%;object-fit:contain;object-position:bottom right;mix-blend-mode:multiply;pointer-events:none;z-index:1}
#eb-home .eb-v4-category-illustration{position:absolute;right:2%;bottom:-1%;width:48%;max-height:160px;z-index:1}
@media (max-width:1050px){
  #eb-home .eb-v4-service-strip{grid-template-columns:repeat(2,minmax(0,1fr))}
  #eb-home .eb-v4-service-item:nth-child(2){border-right:0}
  #eb-home .eb-v4-service-item:nth-child(-n+2){border-bottom:1px solid #e5eaf4}
  #eb-home .eb-v4-category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:720px){
  #eb-home .eb-v4-hero.eb-home-hero{width:calc(100% - 28px);margin-top:14px}
  #eb-home .eb-v4-service-strip{margin-top:17px}
  #eb-home .eb-v4-service-item{padding:13px 13px;gap:9px;min-height:105px}
  #eb-home .eb-v4-service-icon{flex-basis:28px;width:28px;height:28px}
  #eb-home .eb-v4-service-icon svg{width:23px;height:23px}
  #eb-home .eb-v4-service-item h3{font-size:12px}
  #eb-home .eb-v4-service-item p,#eb-home .eb-v4-service-item a{font-size:11px}
  #eb-home .eb-v4-categories-section{padding-top:42px}
  #eb-home .eb-v4-categories-heading{align-items:flex-start;gap:12px}
  #eb-home .eb-v4-categories-heading h2{font-size:29px}
  #eb-home .eb-v4-categories-heading p{font-size:12px}
  #eb-home .eb-v4-catalog-link{font-size:11px;margin-top:25px}
  #eb-home .eb-v4-category-grid{gap:10px}
  #eb-home .eb-v4-category-card{padding:15px 13px;min-height:185px;border-radius:15px}
  #eb-home .eb-v4-category-copy{max-width:94%;min-height:155px}
  #eb-home .eb-v4-category-title{font-size:16px;max-width:100%}
  #eb-home .eb-v4-category-desc{font-size:11px;max-width:90%;margin-top:7px}
  #eb-home .eb-v4-category-more{font-size:11px}
  #eb-home .eb-v4-category-image{width:65%;height:50%;opacity:.75}
}
@media (max-width:430px){
  #eb-home .eb-v4-service-strip{grid-template-columns:1fr}
  #eb-home .eb-v4-service-item{min-height:0;padding:14px 16px;align-items:center}
  #eb-home .eb-v4-service-item:not(:last-child){border-right:0;border-bottom:1px solid #e5eaf4}
  #eb-home .eb-v4-category-grid{grid-template-columns:1fr 1fr}
  #eb-home .eb-v4-category-card{min-height:176px}
  #eb-home .eb-v4-category-copy{min-height:146px}
  #eb-home .eb-v4-category-title{font-size:15px}
  #eb-home .eb-v4-category-desc{font-size:10px}
}

/* EB CATEGORY BACKGROUNDS 2026 */
#eb-home .eb-v4-category-card { background-size: cover; background-position: center; background-repeat: no-repeat; }
#eb-home .eb-v4-category-card::before { content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: linear-gradient(90deg,rgba(247,250,255,.98) 0%,rgba(247,250,255,.91) 40%,rgba(247,250,255,.45) 65%,rgba(247,250,255,.04) 100%); }
#eb-home .eb-v4-category-card .eb-v4-category-image, #eb-home .eb-v4-category-card .eb-v4-category-illustration { display: none; }
#eb-home .eb-v4-category-card:nth-child(1) { background-image: url('assets/category-kit.png'); }
#eb-home .eb-v4-category-card:nth-child(2) { background-image: url('assets/category-generators.png'); }
#eb-home .eb-v4-category-card:nth-child(3) { background-image: url('assets/category-station.png'); }
#eb-home .eb-v4-category-card:nth-child(4) { background-image: url('assets/category-battery.png'); }
#eb-home .eb-v4-category-card:nth-child(5) { background-image: url('assets/category-bike.png'); }
#eb-home .eb-v4-category-card:nth-child(6) { background-image: url('assets/category-parts.png'); }
#eb-home .eb-v4-category-title { font-size: clamp(20px, 2vw, 26px); }
#eb-home .eb-v4-category-desc, #eb-home .eb-v4-category-more { font-size: 14px; }
@media(max-width:720px) {
 #eb-home .eb-v4-category-card::before { background: linear-gradient(90deg,rgba(247,250,255,.97),rgba(247,250,255,.82) 55%,rgba(247,250,255,.38)); }
 #eb-home .eb-v4-category-title { font-size: 17px; overflow-wrap: anywhere; }
 #eb-home .eb-v4-category-desc, #eb-home .eb-v4-category-more { font-size: 12px; }
}


/* EB CATEGORY PREMIUM START */

#eb-home .eb-v4-category-tags {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 6px;
    margin-top: 12px;
}

#eb-home .eb-v4-category-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 10px;
    background: linear-gradient(
        135deg,
        rgba(255,255,255,.96),
        rgba(239,246,255,.85)
    );
    border: 1px solid rgba(164,188,234,.45);
    border-radius: 30px;
    color: #35527c;
    font-size: 11px;
    font-weight: 650;
    line-height: 1.3;
    white-space: nowrap;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 3px 8px rgba(37,71,130,.05);
    transition: background .3s, box-shadow .3s,
                border-color .3s;
}

#eb-home .eb-v4-category-tag svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
    color: #2850dc;
}

/* Кнопка Выбрать */
#eb-home .eb-v4-category-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 9px 20px;
    margin-top: auto;
    border-radius: 9px;
    background: #2850dc;
    color: #fff;
    font-size: 12px;
    font-weight: 750;
    box-shadow: 0 4px 12px rgba(40,80,220,.12);
    transition: background .3s, box-shadow .3s;
}

/* Плавное движение карточки */
#eb-home .eb-v4-category-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    transition: transform .35s ease,
                box-shadow .35s ease,
                border-color .35s ease;
}

/* Световой блик */
#eb-home .eb-v4-category-card::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -85%;
    width: 40%;
    height: 200%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,.38),
        transparent
    );
    transform: rotate(20deg);
    pointer-events: none;
    z-index: 1;
    transition: left .85s ease;
}

#eb-home .eb-v4-category-image {
    transition: transform .65s cubic-bezier(.2,.7,.2,1);
}

@media (hover: hover) and (pointer: fine) {

    #eb-home .eb-v4-category-card:hover {
        transform: translateY(-4px);
        border-color: #b7cdf6;
        box-shadow: 0 16px 32px rgba(36,65,125,.13);
    }

    #eb-home .eb-v4-category-card:hover::after {
        left: 140%;
    }

    #eb-home .eb-v4-category-card:hover
    .eb-v4-category-image {
        transform: scale(1.04);
    }

    #eb-home .eb-v4-category-card:hover
    .eb-v4-category-tag {
        background: #fff;
        border-color: #bed0f4;
        box-shadow: 0 4px 12px rgba(40,80,220,.08);
    }

    #eb-home .eb-v4-category-card:hover
    .eb-v4-category-more {
        background: #1d40bc;
        box-shadow: 0 6px 18px rgba(40,80,220,.22);
    }
}

@media (max-width: 720px) {

    #eb-home .eb-v4-category-tags {
        gap: 5px;
        margin-top: 9px;
    }

    #eb-home .eb-v4-category-tag {
        font-size: 10px;
        padding: 4px 7px;
    }

    #eb-home .eb-v4-category-tag svg {
        width: 11px;
        height: 11px;
    }

    #eb-home .eb-v4-category-more {
        min-height: 32px;
        padding: 7px 15px;
        font-size: 11px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #eb-home .eb-v4-category-card,
    #eb-home .eb-v4-category-card::after,
    #eb-home .eb-v4-category-image,
    #eb-home .eb-v4-category-tag,
    #eb-home .eb-v4-category-more {
        transition: none;
    }

    #eb-home .eb-v4-category-card:hover,
    #eb-home .eb-v4-category-card:hover
    .eb-v4-category-image {
        transform: none;
    }
}

/* EB CATEGORY PREMIUM END */

/* === EB HOME BENEFITS REDESIGN V2 === */
@keyframes ebV4BenefitsAppear {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* контейнер блока преимуществ под первым баннером */
#eb-home .eb-v4-benefits,
#eb-home .eb-v4-advantages,
#eb-home .eb-v4-top-features,
#eb-home .eb-v4-usp {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 18px !important;
  margin: 24px 0 40px !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* сами карточки */
#eb-home .eb-v4-benefits > *,
#eb-home .eb-v4-advantages > *,
#eb-home .eb-v4-top-features > *,
#eb-home .eb-v4-usp > * {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  min-width: 0 !important;
  min-height: 150px !important;
  padding: 24px 24px 22px !important;
  border-radius: 24px !important;
  border: 1px solid #dbe6fb !important;
  background: linear-gradient(180deg, #ffffff 0%, #f6f9ff 100%) !important;
  box-shadow: 0 10px 28px rgba(24, 56, 120, 0.08) !important;
  overflow: hidden !important;
  opacity: 0;
  transform: translateY(18px);
  animation: ebV4BenefitsAppear .55s ease forwards !important;
  transition: none !important;
}

/* небольшая задержка появления */
#eb-home .eb-v4-benefits > *:nth-child(1),
#eb-home .eb-v4-advantages > *:nth-child(1),
#eb-home .eb-v4-top-features > *:nth-child(1),
#eb-home .eb-v4-usp > *:nth-child(1) { animation-delay: .04s !important; }

#eb-home .eb-v4-benefits > *:nth-child(2),
#eb-home .eb-v4-advantages > *:nth-child(2),
#eb-home .eb-v4-top-features > *:nth-child(2),
#eb-home .eb-v4-usp > *:nth-child(2) { animation-delay: .10s !important; }

#eb-home .eb-v4-benefits > *:nth-child(3),
#eb-home .eb-v4-advantages > *:nth-child(3),
#eb-home .eb-v4-top-features > *:nth-child(3),
#eb-home .eb-v4-usp > *:nth-child(3) { animation-delay: .16s !important; }

#eb-home .eb-v4-benefits > *:nth-child(4),
#eb-home .eb-v4-advantages > *:nth-child(4),
#eb-home .eb-v4-top-features > *:nth-child(4),
#eb-home .eb-v4-usp > *:nth-child(4) { animation-delay: .22s !important; }

/* убираем hover-эффекты */
#eb-home .eb-v4-benefits > *:hover,
#eb-home .eb-v4-advantages > *:hover,
#eb-home .eb-v4-top-features > *:hover,
#eb-home .eb-v4-usp > *:hover {
  transform: none !important;
  box-shadow: 0 10px 28px rgba(24, 56, 120, 0.08) !important;
  background: linear-gradient(180deg, #ffffff 0%, #f6f9ff 100%) !important;
}

/* иконка */
#eb-home .eb-v4-benefits svg,
#eb-home .eb-v4-benefits i,
#eb-home .eb-v4-benefits .icon,
#eb-home .eb-v4-advantages svg,
#eb-home .eb-v4-advantages i,
#eb-home .eb-v4-advantages .icon,
#eb-home .eb-v4-top-features svg,
#eb-home .eb-v4-top-features i,
#eb-home .eb-v4-top-features .icon,
#eb-home .eb-v4-usp svg,
#eb-home .eb-v4-usp i,
#eb-home .eb-v4-usp .icon {
  flex: 0 0 auto !important;
  width: 22px !important;
  height: 22px !important;
  color: #2f57e5 !important;
}

/* если иконка обёрнута в кружок */
#eb-home .eb-v4-benefits .icon-wrap,
#eb-home .eb-v4-benefits .eb-v4-icon,
#eb-home .eb-v4-advantages .icon-wrap,
#eb-home .eb-v4-advantages .eb-v4-icon,
#eb-home .eb-v4-top-features .icon-wrap,
#eb-home .eb-v4-top-features .eb-v4-icon,
#eb-home .eb-v4-usp .icon-wrap,
#eb-home .eb-v4-usp .eb-v4-icon {
  width: 46px !important;
  height: 46px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 14px !important;
  background: #f3f7ff !important;
  border: 1px solid #dbe6fb !important;
  margin-bottom: 6px !important;
}

/* заголовки */
#eb-home .eb-v4-benefits h3,
#eb-home .eb-v4-benefits h4,
#eb-home .eb-v4-advantages h3,
#eb-home .eb-v4-advantages h4,
#eb-home .eb-v4-top-features h3,
#eb-home .eb-v4-top-features h4,
#eb-home .eb-v4-usp h3,
#eb-home .eb-v4-usp h4 {
  margin: 0 !important;
  font-size: 18px !important;
  line-height: 1.25 !important;
  font-weight: 800 !important;
  color: #1d2b53 !important;
}

/* подзаголовки */
#eb-home .eb-v4-benefits p,
#eb-home .eb-v4-benefits .text,
#eb-home .eb-v4-advantages p,
#eb-home .eb-v4-advantages .text,
#eb-home .eb-v4-top-features p,
#eb-home .eb-v4-top-features .text,
#eb-home .eb-v4-usp p,
#eb-home .eb-v4-usp .text {
  margin: 0 !important;
  color: #6f7f9e !important;
  font-size: 15px !important;
  line-height: 1.45 !important;
}

/* ссылки */
#eb-home .eb-v4-benefits a,
#eb-home .eb-v4-advantages a,
#eb-home .eb-v4-top-features a,
#eb-home .eb-v4-usp a {
  margin-top: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  color: #2f57e5 !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}

/* адаптив */
@media (max-width: 1100px) {
  #eb-home .eb-v4-benefits,
  #eb-home .eb-v4-advantages,
  #eb-home .eb-v4-top-features,
  #eb-home .eb-v4-usp {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 700px) {
  #eb-home .eb-v4-benefits,
  #eb-home .eb-v4-advantages,
  #eb-home .eb-v4-top-features,
  #eb-home .eb-v4-usp {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    margin: 18px 0 28px !important;
  }

  #eb-home .eb-v4-benefits > *,
  #eb-home .eb-v4-advantages > *,
  #eb-home .eb-v4-top-features > *,
  #eb-home .eb-v4-usp > * {
    min-height: 132px !important;
    padding: 20px 18px !important;
    border-radius: 20px !important;
  }
}

/* EB COMPACT SERVICE STRIP */
#eb-home .eb-v4-service-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  border: 0;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  box-shadow: none;
}

#eb-home .eb-v4-service-strip .eb-v4-service-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 76px;
  padding: 13px 15px;
  border: 1px solid #e0e8f6;
  border-radius: 16px;
  background: #fff;
  box-shadow: none;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

#eb-home .eb-v4-service-strip .eb-v4-service-item:hover,
#eb-home .eb-v4-service-strip .eb-v4-service-item:focus-within {
  transform: translateY(-3px);
  border-color: #bdcef4;
  box-shadow: 0 8px 22px rgba(40, 80, 180, .10);
}

#eb-home .eb-v4-service-strip .eb-v4-service-icon {
  display: grid;
  place-items: center;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  color: #2850dc;
}

#eb-home .eb-v4-service-strip .eb-v4-service-icon svg {
  width: 23px;
  height: 23px;
  transition: transform .25s ease;
}

#eb-home .eb-v4-service-strip .eb-v4-service-item:hover svg {
  transform: scale(1.08);
}

#eb-home .eb-v4-service-strip .eb-v4-service-item > div {
  min-width: 0;
}

#eb-home .eb-v4-service-strip .eb-v4-service-item h3 {
  margin: 0 0 4px;
  color: #17213a;
  font-size: 15px;
  line-height: 1.25;
  hyphens: none;
}

#eb-home .eb-v4-service-strip .eb-v4-service-item p {
  display: none;
}

#eb-home .eb-v4-service-strip .eb-v4-service-item a {
  color: #2850dc;
  font-size: 12px;
  line-height: 1.3;
  font-weight: 800;
}

@media (max-width: 1050px) {
  #eb-home .eb-v4-service-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  #eb-home .eb-v4-service-strip {
    gap: 8px;
  }

  #eb-home .eb-v4-service-strip .eb-v4-service-item {
    min-height: 72px;
    padding: 10px;
    gap: 7px;
  }

  #eb-home .eb-v4-service-strip .eb-v4-service-item h3 {
    font-size: 13px;
  }

  #eb-home .eb-v4-service-strip .eb-v4-service-item a {
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #eb-home .eb-v4-service-strip .eb-v4-service-item,
  #eb-home .eb-v4-service-strip .eb-v4-service-icon svg {
    transition: none;
  }

  #eb-home .eb-v4-service-strip .eb-v4-service-item:hover,
  #eb-home .eb-v4-service-strip .eb-v4-service-item:focus-within,
  #eb-home .eb-v4-service-strip .eb-v4-service-item:hover svg {
    transform: none;
  }
}
