/* =========================================================
   PERMESSO UI (L1 + L2 + L3 additions)
   Extracted from inline <style>
   ========================================================= */

/* ---------- BACKGROUND (L1/L2) ---------- */
.slide[data-name="index"] .background,
.slide[data-name="indexpermesso"] .background,
.slide[data-name="bussiness"] .background{
  background:#dcd6c8 !important;
  background-image:none !important;
}

/* ---------- HEADER ---------- */
.indexHeader{
  max-width:980px;
  margin:0 auto;
  text-align:center;
}

/* ---------- BREADCRUMBS ---------- */
.crumbs{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  margin-top:10px;
  margin-bottom:36px; /* L3 spacing */
  font-size:14px;
  opacity:.8;
}
.crumbs a{
  text-decoration:none;
  color:inherit;
  display:inline-flex;
  align-items:center;
  gap:8px;
}
.crumbs i{ font-size:16px; }

/* ---------- GRID ---------- */
.l1cards{
  list-style:none;
  margin:38px 0 0;
  padding:0;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:24px;
}
@media (max-width:1024px){
  .l1cards{ grid-template-columns:repeat(2,1fr); }
}
@media (max-width:640px){
  .l1cards{ grid-template-columns:1fr; }
}

/* ---------- CARD ---------- */
.l1card{
  min-height:640px; /* min, not fixed */
  height:auto;
  border-radius:24px;
  overflow:hidden;
  background:rgba(226,220,210,.85);
  box-shadow:0 18px 40px rgba(0,0,0,.08);
  display:flex;
  flex-direction:column;
  padding:24px;
}

/* ---------- TITLE (2 lines + IT subtitle) ---------- */
.l1card__title{
  margin:0 0 8px;
  font-size:30px;
  line-height:1.05;
  letter-spacing:-.7px;
  font-weight:500; /* Medium */
  color:#2f2a25;
  text-align:left;

  /* always 2 lines */
  min-height:64px;
}
.l1card__title span,
.l1card__title strong{
  display:block;
}
.l1card__title strong{
  font-weight:300; /* Light */
  color:#2f2a25;
}
.l1card__subtitle{
  text-align:left;
  margin:0 0 12px;
  font-size:13px;
  line-height:1.2;
  letter-spacing:.2px;
  opacity:.65;
  color:#2f2a25;
}

/* ---------- YOUTUBE BAR ---------- */
.l1yt{
  width:100%;
  height:54px;
  border:none !important;
  outline:none !important;
  border-radius:14px;
  background:rgba(255,255,255,.28);
  display:flex;
  align-items:center;
  gap:12px;
  padding:10px 14px;
  text-align:left;
  margin-bottom:14px;
}
.l1yt i{
  font-size:30px;
  color:#c93a3a;
}
.l1yt span{
  font-size:13px;
  line-height:1.15;
  color:#3a342e;
  opacity:.95;
}
.l1yt span b{
  display:block;
  font-size:14px;
  font-weight:600;
}
button.l1yt{ cursor:pointer; }
button.l1yt:hover{ background:rgba(255,255,255,.38); }

/* Disabled YouTube */
.l1yt--disabled{
  background:rgba(255,255,255,.18);
  pointer-events:none;
}
.l1yt--disabled i{ color:rgba(58,52,46,.45); }
.l1yt--disabled span{ opacity:.7; }

/* ---------- IMAGE (bigger area) ---------- */
.l1media{
  width:100%;
  aspect-ratio:3/4;
  background:transparent;
  display:flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  border-radius:18px;
  overflow:hidden;
}
.l1media img{
  width:100%;
  height:100%;
  object-fit:contain;
  filter:drop-shadow(0 14px 14px rgba(0,0,0,.12));
}

/* ---------- DESCRIPTION ---------- */
.l1text{
  margin:14px 2px 0;
  font-size:13px;
  line-height:1.45;
  color:#4a433c;
  opacity:.9;
  text-align:left;

  display:-webkit-box;
  -webkit-line-clamp:4;
  -webkit-box-orient:vertical;
  overflow:hidden;
  min-height:calc(1.45em * 4);
}

/* ---------- PRIMARY CTA ---------- */
.l1cta,
.l1cta_light{
  margin-top:16px;
  height:54px;
  border-radius:14px;
  background:linear-gradient(70deg,#1f8fc5 0%,#27a63e 100%);
  color:#fff;
  text-decoration:none;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  font-weight:300;
  letter-spacing:-0.2px;
  box-shadow:0 10px 22px rgba(0,0,0,.10);
  transition:transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.l1cta:hover,
.l1cta_light:hover{
  transform:translateY(-2px);
  box-shadow:0 16px 28px rgba(0,0,0,.14);
  filter:brightness(1.04);
}
.l1cta i,
.l1cta_light i{ font-size:18px; }

/* ---------- FOOTER ---------- */
.l1footer{
  margin-top:auto;
  display:flex;
  align-items:center;
  gap:28px;
  padding-top:16px;
}

/* Social icons — soft color, no plaque */
.l1icon{
  background:transparent !important;
  box-shadow:none !important;
  width:auto;
  height:auto;
  border-radius:0;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:#55504a;
  text-decoration:none;
  transition:transform .15s ease, opacity .15s ease;
}
.l1icon i{ font-size:28px; }
.l1icon:hover{
  transform:translateY(-2px);
  opacity:.78;
}

/* Three dots — soft plaque */
.l1icon--more{
  margin-left:auto;
  width:52px;
  height:52px;
  border-radius:50%;
  background:rgba(255,255,255,.25);
  color:#77716a;
  display:flex;
  align-items:center;
  justify-content:center;
}
.l1icon--more i{ font-size:24px; }

/* =========================================================
   L3 additions
   ========================================================= */

/* HR: fading edges */
.service-divider{
  border:0;
  height:1px;
  margin:26px 0 32px;
  background:linear-gradient(
    90deg,
    rgba(0,0,0,0) 0%,
    rgba(0,0,0,.35) 50%,
    rgba(0,0,0,0) 100%
  );
}

/* CTA buttons inside L3 */
.service-cta{
  display:flex;
  gap:18px;
  margin-top:28px;
  flex-wrap:wrap;
}
.service-cta__btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:14px 22px;
  border-radius:14px;
  font-size:16px;
  font-weight:600;
  text-decoration:none;
  transition:all .25s ease;
}
.service-cta__btn i{ font-size:20px; }

.service-cta__btn--tg{
  background:linear-gradient(70deg,#229ED9,#1b7fb3);
  color:#fff;
  animation:tgPulse 3.2s ease-in-out infinite;
}
@keyframes tgPulse{
  0%, 100% { box-shadow:0 0 0 rgba(34,158,217,0); }
  50%      { box-shadow:0 0 0 10px rgba(34,158,217,.18); }
}
.service-cta__btn--wa{
  background:linear-gradient(70deg,#25D366,#1ea952);
  color:#fff;
}
.service-cta__btn--tr{
  background:#fff;
  color:#222;
  border:1px solid rgba(255,255,255,.35);
}
.service-cta__btn:hover{
  transform:translateY(-3px);
  box-shadow:0 14px 28px rgba(0,0,0,.25);
}
.service-cta__btn--tr:hover{
  background:#f5f5f5;
  box-shadow:0 12px 24px rgba(0,0,0,.18);
}

/* --- BRAND VARIANTS --- */

.service-cta__btn--yt{
  background:#FF0000;
  color:#fff;
}

.service-cta__btn--yt:hover{
  background:#cc0000;
}

.service-cta__btn--dzen{
  background:#000000;
  color:#fff;
}

.service-cta__btn--dzen:hover{
  background:#222;
}

.service-cta__btn--mail{
  background:#ffffff;
  color:#333333;
  border:1px solid #dddddd;
}

.service-cta__btn--mail:hover{
  background:#f5f5f5;
}

.service-cta__btn--fb{
  background:#1877F2;
  color:#fff;
}

.service-cta__btn--fb:hover{
  background:#166FE5;
}

.service-cta__btn--site{
  background:#333333;
  color:#ffffff;
}

.service-cta__btn--site:hover{
  background:#000000;
}


/* Video: kill Slides play overlay + our pure icon */
.videoThumbnail{
  position:relative;
}

/* убрать встроенную иконку Slides */
.videoThumbnail:before,
.videoThumbnail:after,
.videoThumbnail .play{
  display:none !important;
}

/* наша белая иконка + тень */
.video-play-icon{
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%, -50%);
  font-size:74px;
  color:#fff;
  pointer-events:none;
  text-shadow:
    0 4px 12px rgba(0,0,0,.55),
    0 2px 6px rgba(0,0,0,.45);
}

/* --- L3 micro adjustments --- */

h2 strong{ 
  font-size: 1.1em;
}

.service-cta{
  margin-top:32px;
}

.service-subtitle{
  opacity:.75;
}

.price-icon{
  font-size: 0.9em;
  vertical-align: middle;
  margin-right: 4px;
}

.price{
  margin-top:18px;
}

.price__row{
  display:flex;
  align-items:baseline;
  gap:14px;
  flex-wrap:wrap;
}

.price__eur{
  display:inline-flex;
  align-items:baseline;
  gap:6px;
  font-size:34px;
  line-height:1;
  color:#ffffff;
  text-shadow: 0 6px 18px rgba(0,0,0,.35);
}

.price__eur i{
  font-size:.9em;
  opacity:.95;
}

.price__rub{
  font-size:16px;
  opacity:.85;
  color:#ffffff;
  text-shadow: 0 6px 18px rgba(0,0,0,.28);
}

.price__note{
  margin-top:8px;
  font-size:12px;
  opacity:.7;
  color:#ffffff;
}

/* PRICE */
.price {
  margin: 14px 0 10px;
  color: #333333;
}

.price__rub {
  font-size: 44px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.5px;
  color: #333333 !important;
}

.price__rubSym {
  font-size: .7em;
  font-weight: 700;
  color: #333333 !important;
}

.price__eur {
  margin-top: 6px;
  font-size: 16px;
  opacity: .75;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #333333;
}

.price__note {
  margin-top: 6px;
  font-size: 12px;
  opacity: .7;
  color: #333333;
}

.price__rub {
  text-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.price {
  margin: 24px 0 18px;
}

.price__note {
  font-size: 11px;
  opacity: .5;
}

/* SERVICE META (договор + оплата) */
.service-meta {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: #333333;
}

.contract-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  color: #333333;
  transition: opacity .2s ease;
}

.contract-link i {
  font-size: 18px;
}

.contract-link:hover {
  opacity: .7;
}

.payment-split {
  margin-top: 14px;
  display: flex;
  gap: 18px;
}

.split-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 14px;

  border-radius: 10px;
  background: rgba(0, 0, 0, 0.04);
}

.split-percent {
  font-size: 20px;
  font-weight: 800;
  color: #333333;
}

.split-label {
  font-size: 12px;
  opacity: .7;
}


.contract-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  padding: 10px 16px;
  border-radius: 8px;

  background: rgba(0, 0, 0, 0.06);
  color: #333333;
  font-weight: 600;
  font-size: 14px;

  text-decoration: none;
  transition: all .2s ease;
}

.contract-btn i {
  font-size: 18px;
}

.contract-btn:hover {
  background: rgba(0, 0, 0, 0.10);
  transform: translateY(-1px);
}

.service-note{
  font-size:12px;
  opacity:.7;
  color:#333333;
}

/* Hide top navigation */
.navigation,
.topNavigation,
.panel.top{
  display: none !important;
}

/* Lift sections up */
.slide .wrap{
  padding-top: 80px !important; /* было 120px */
}

/* Fixed logo top-left */
.permesso-logo{
  position: fixed;
  top: 28px;
  left: 40px;
  z-index: 9999;

  display: inline-block;
  text-decoration: none;
}

.permesso-logo img{
  height: 38px;
  width: auto;
  display: block;
}

.price__prefix{
  font-weight: 700;
  margin-right: 6px;
}

.service-note{
  font-size: 12px;
  opacity: .7;
  color: #333333;
  margin-top: 2px;
}


/* ===============================
   SLIDE PROGRESS CONTROL
   =============================== */

.slide-progress{
  margin: 24px 0 40px;
  width: 100%;
}

.slide-progress__track{
  position: relative;
  height: 4px;
  background: rgba(0,0,0,.15);
  border-radius: 2px;
  cursor: pointer;
}

.slide-progress__fill{
  position: absolute;
  height: 100%;
  width: 0%;
  background: #1f8fc5;
  border-radius: 2px;
  transition: width .4s ease;
}

.slide-progress__thumb{
  position: absolute;
  top: 50%;
  left: 0%;
  width: 18px;
  height: 18px;
  background: #1f8fc5;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: left .4s ease;
  cursor: grab;
}

/* ==========================================================
   GLOBAL SLIDE SCRUBBER (single)
   ========================================================== */

.global-scrubber{
  position: fixed;
  left: 50%;
  top: 40px;                 /* под твоей верхней панелью */
  transform: translateX(-50%);
  width: min(980px, calc(100vw - 28px));
  z-index: 9999;
  pointer-events: auto;
}

.global-scrubber__track{
  position: relative;
  height: 10px;              /* зона клика */
  border-radius: 999px;
  background: rgba(0,0,0,.12);
  cursor: pointer;
}

.global-scrubber__fill{
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  border-radius: 999px;
  background: rgba(0,0,0,.35);
}

/*.global-scrubber__thumb{
  position: absolute;
  top: 50%;
  left: 0%;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,.8);
  box-shadow: 0 10px 18px rgba(0,0,0,.18);
  cursor: grab;
  touch-action: none;
} */

.global-scrubber__thumb{
  position: absolute;
  top: 50%;
  left: 0%;
  width: 70px;
  height: 70px;

  transform: translate(-50%, -50%);

  background-image: url("../assets/img/nav_small.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;

  /* сохраняем тень */
  box-shadow: 0 10px 18px rgba(0,0,0,.0);

  cursor: grab;
  touch-action: none;
}


.global-scrubber__thumb:active{ cursor: grabbing; }

/* на мобиле чуть компактнее */
@media (max-width: 640px){

  .global-scrubber{
    top: 36px;      /* регулируй по месту */
  }

  .global-scrubber__thumb{
    width: 26px;
    height: 26px;
    background-size: 40px 40px;
  }

}


.huge .bi-box-arrow-up-right {
  font-size: 0.8em;
  vertical-align: middle;
}
