/* Современный первый экран главной страницы АДА СПОРТ. */
body[data-nav="home"] .hero-wrap{
  padding:30px 28px 34px;
  background:
    radial-gradient(circle at 10% 5%,rgba(247,201,72,.22),transparent 26%),
    radial-gradient(circle at 92% 18%,rgba(81,179,242,.23),transparent 30%),
    linear-gradient(180deg,#eef9ff 0%,#dff2fc 100%);
}
body[data-nav="home"] .hero-wrap::before{
  width:12px;height:12px;right:8%;top:12%;opacity:.28;
  animation:homeDotsFloat 7s ease-in-out infinite;
}
.hero-intro{
  width:min(1300px,100%);
  margin:0 auto 22px;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:28px;
  align-items:end;
}
.hero-intro__eyebrow{
  display:block;
  margin-bottom:8px;
  color:#2478c8;
  font-size:.78rem;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.hero-intro h1{
  max-width:880px;
  margin:0;
  color:#153b5f;
  font-size:clamp(2rem,4.2vw,4.25rem);
  font-weight:900;
  line-height:1.02;
  letter-spacing:0;
  text-wrap:balance;
}
.hero-intro p{
  max-width:760px;
  margin:15px 0 0;
  color:#56748b;
  font-size:clamp(.95rem,1.35vw,1.12rem);
  font-weight:700;
  line-height:1.58;
}
.hero-intro__actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:18px;
}
.hero-intro__action{
  min-height:46px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 17px;
  border:1px solid #b8d9ef;
  border-radius:12px;
  background:rgba(255,255,255,.84);
  color:#1a5ea0;
  font-size:.86rem;
  font-weight:900;
  text-decoration:none;
  box-shadow:0 7px 18px rgba(28,92,145,.08);
  transition:transform .2s ease,box-shadow .2s ease,background .2s ease;
}
.hero-intro__action--primary{
  border-color:#f7c948;
  background:#f7c948;
  color:#17324d;
}
@media(hover:hover){
  .hero-intro__action:hover{transform:translateY(-2px);box-shadow:0 11px 22px rgba(28,92,145,.17);}
}
.hero-intro__proof{
  display:grid;
  grid-template-columns:repeat(3,auto);
  gap:8px;
  padding-bottom:4px;
}
.hero-intro__proof span{
  min-width:88px;
  padding:10px 13px;
  border:1px solid rgba(36,120,200,.17);
  border-radius:14px;
  background:rgba(255,255,255,.78);
  color:#607d94;
  font-size:.7rem;
  font-weight:800;
  text-align:center;
  box-shadow:0 7px 20px rgba(28,92,145,.07);
  backdrop-filter:blur(8px);
}
.hero-intro__proof strong{
  display:block;
  margin-bottom:2px;
  color:#1a5ea0;
  font-size:1.08rem;
  line-height:1;
}
body[data-nav="home"] .hero-grid{
  position:relative;
  z-index:1;
  grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);
  grid-template-rows:auto;
  gap:14px;
  align-items:stretch;
}
/* Правый блок: 2×2 карточек, растягивается по высоте карусели.
   minmax вместо 1fr: в WebKit строка грида получает высоту от .hero-main
   с aspect-ratio уже после раскладки карточек, и на чистом 1fr они
   схлопываются в полоски. */
body[data-nav="home"] .hero-cards{
  display:grid;
  grid-template-columns:1fr 1fr;
  grid-template-rows:repeat(2,minmax(150px,1fr));
  gap:14px;
  min-height:0;
}
body[data-nav="home"] .hero-main,
body[data-nav="home"] .hero-card{
  border:1px solid rgba(255,255,255,.82);
  border-radius:22px;
  box-shadow:0 16px 38px rgba(28,92,145,.14);
}
body[data-nav="home"] .hero-main{
  grid-row:auto;
  /* высота плитки задаётся под горизонтальные баннеры сторис (830×474).
     align-self:start делает плитку self-sized — иначе растянутый по строке
     элемент в WebKit не отдаёт свою пропорцию в высоту строки. */
  align-self:start;
  aspect-ratio:830/474;
  min-height:330px;
  background:linear-gradient(145deg,#123d65,#2478c8);
  contain:layout paint;
}
body[data-nav="home"] .hero-main::before{
  z-index:3;
  width:180px;height:180px;
  background:radial-gradient(circle,rgba(255,255,255,.2),transparent 67%);
  pointer-events:none;
}
.hero-media-caption{
  position:absolute;
  left:24px;right:88px;bottom:22px;
  z-index:3;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:5px;
  color:#fff;
  text-shadow:0 2px 16px rgba(0,0,0,.58);
  pointer-events:none;
}
.hero-media-caption span{
  padding:5px 9px;
  border:1px solid rgba(255,255,255,.32);
  border-radius:999px;
  background:rgba(10,44,74,.28);
  font-size:.7rem;
  font-weight:900;
  letter-spacing:.08em;
  backdrop-filter:blur(8px);
}
.hero-media-caption strong{
  max-width:470px;
  font-size:clamp(1.2rem,2.25vw,2rem);
  line-height:1.12;
}
body[data-nav="home"] .hs-slide--video::after{
  content:'';
  position:absolute;inset:0;z-index:2;
  background:linear-gradient(180deg,rgba(6,29,49,.04) 38%,rgba(6,29,49,.72) 100%);
  pointer-events:none;
}
body[data-nav="home"] .hero-video{
  border-radius:21px;
  object-position:center center;
}
body[data-nav="home"] .hs-slide--banner{
  overflow:hidden;
  padding:0;
  background:#143f66;
}
body[data-nav="home"] .hs-banner-bg{
  display:none;
}
/* Горизонтальные баннеры (830×474) совпадают с плиткой — заполняют её без полос */
body[data-nav="home"] .hs-banner-fg{
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
}
/* Вертикальные баннеры (карта/корпоративы, 706×557) показываем целиком:
   текст свёрстан до краёв, обрезать нельзя — лёгкая размытая рамка по бокам */
body[data-nav="home"] .hs-slide.active .hs-banner-fg{
  animation:homeMediaReveal .72s cubic-bezier(.16,1,.3,1) both;
}
.hs-slide--feature{overflow:hidden;color:#fff;text-decoration:none;background:#123d65;}
.hs-slide--feature::after{
  content:'';position:absolute;inset:0;z-index:1;
  background:linear-gradient(90deg,rgba(7,36,62,.9) 0%,rgba(7,36,62,.62) 42%,rgba(7,36,62,.12) 72%,rgba(7,36,62,.04) 100%);
  pointer-events:none;
}
.hs-feature-media{
  position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;
  transition:transform 4.2s ease-out;
}
.hs-feature--routes .hs-feature-media{object-position:center 58%;}
.hs-feature--corporate .hs-feature-media{object-position:center 55%;}
.hs-slide.active .hs-feature-media{transform:scale(1.035);}
.hs-feature-copy{
  position:absolute;left:clamp(22px,4vw,48px);top:44%;z-index:2;width:min(48%,430px);
  display:flex;flex-direction:column;align-items:flex-start;gap:10px;
  transform:translateY(-47%);text-shadow:0 2px 16px rgba(3,24,42,.45);
}
.hs-feature-kicker{
  padding:6px 10px;border:1px solid rgba(255,255,255,.34);border-radius:999px;
  background:rgba(20,78,122,.46);font-size:.72rem;font-weight:900;letter-spacing:.06em;text-transform:uppercase;
}
.hs-feature-copy strong{max-width:12ch;font-size:clamp(1.55rem,3.2vw,2.75rem);line-height:1.02;}
.hs-feature-copy>span:not(.hs-feature-kicker){
  max-width:36ch;color:rgba(255,255,255,.88);font-size:clamp(.78rem,1.25vw,1rem);font-weight:800;line-height:1.42;
}
.hs-feature-copy b{
  display:inline-flex;align-items:center;gap:8px;margin-top:4px;padding:10px 15px;border-radius:999px;
  background:#f7c948;color:#17324d;font-size:.8rem;font-weight:900;text-shadow:none;
}
.hs-feature--seabike{
  isolation:isolate;
  background:linear-gradient(130deg,#0a3559 0%,#145f91 46%,#dff4ff 46%,#eaf9ff 100%);
}
.hs-feature--seabike::after{
  background:linear-gradient(90deg,rgba(5,35,59,.96) 0%,rgba(7,51,83,.92) 43%,rgba(7,51,83,.08) 67%,transparent 100%);
}
.hs-feature--seabike::before{
  content:'';
  position:absolute;
  right:3%;
  bottom:-36%;
  z-index:1;
  width:52%;
  aspect-ratio:1;
  border:1px solid rgba(36,120,200,.2);
  border-radius:50%;
  box-shadow:0 0 0 34px rgba(36,120,200,.07),0 0 0 72px rgba(36,120,200,.045);
  animation:seabikeStoryPulse 4.8s ease-in-out infinite;
  pointer-events:none;
}
.hs-feature--seabike .hs-seabike-media{
  left:36%;
  width:64%;
  object-fit:contain;
  object-position:center;
  filter:drop-shadow(0 18px 22px rgba(8,48,78,.2));
}
.hs-seabike-copy strong{max-width:none;}
@keyframes seabikeStoryPulse{
  0%,100%{transform:scale(.92);opacity:.55;}
  50%{transform:scale(1.04);opacity:1;}
}
body[data-nav="home"] .hs-progress{top:12px;left:18px;right:54px;gap:5px;}
body[data-nav="home"] .hs-seg{height:4px;background:rgba(255,255,255,.35);}
body[data-nav="home"] .hs-seg i{background:#f7c948;}
body[data-nav="home"] .hs-pause{top:24px;right:14px;}
body[data-nav="home"] .hero-card{
  isolation:isolate;
  display:flex;
  color:#fff;
  text-decoration:none;
  transition:transform .35s cubic-bezier(.16,1,.3,1),box-shadow .35s ease,filter .35s ease;
}
body[data-nav="home"] .hero-card:focus-visible,
.hero-intro__action:focus-visible{
  outline:3px solid #f7c948;
  outline-offset:3px;
}
body[data-nav="home"] .hero-card::before{
  content:'';
  position:absolute;
  inset:-35% -65%;
  z-index:2;
  background:linear-gradient(105deg,transparent 42%,rgba(255,255,255,.22) 50%,transparent 58%);
  transform:translateX(-48%) rotate(4deg);
  transition:transform .85s cubic-bezier(.16,1,.3,1);
  pointer-events:none;
}
body[data-nav="home"] .hero-card__shade{
  position:absolute;inset:0;z-index:1;
  border-radius:inherit;
  background:linear-gradient(180deg,rgba(6,29,49,.66) 0%,rgba(6,29,49,.12) 58%,rgba(6,29,49,.38) 100%);
  pointer-events:none;
}
body[data-nav="home"] .hero-card__tag{
  position:absolute;left:18px;bottom:17px;z-index:3;
  padding:5px 9px;
  border:1px solid rgba(255,255,255,.28);
  border-radius:999px;
  background:rgba(10,44,74,.32);
  color:#fff;
  font-size:.68rem;
  font-weight:900;
  letter-spacing:.04em;
  backdrop-filter:blur(7px);
}
body[data-nav="home"] .hc-route .hc-title,
body[data-nav="home"] .hc-camping-map .hc-title{
  top:18px;
  font-size:1.3rem;
}
/* Цена под заголовком плитки. Живёт внутри .hc-title, поэтому одинаково
   ложится и под однострочный, и под двухстрочный заголовок. */
body[data-nav="home"] .hc-price{
  display:block;
  width:fit-content;
  margin-top:9px;
  padding:5px 12px;
  border:1px solid rgba(255,255,255,.26);
  border-radius:999px;
  background:rgba(9,38,64,.5);
  backdrop-filter:blur(7px);
  color:#f7c948;
  font-size:.86rem;
  font-weight:900;
  letter-spacing:.01em;
  text-shadow:none;
}
@media(hover:hover){
  body[data-nav="home"] .hero-card:hover{
    transform:translateY(-6px) scale(1.015);
    box-shadow:0 24px 48px rgba(19,67,106,.24);
    filter:saturate(1.06);
  }
  body[data-nav="home"] .hero-card:hover::before{transform:translateX(48%) rotate(4deg);}
}
@keyframes homeMediaReveal{
  from{opacity:0;transform:scale(.96);clip-path:inset(4% 3% 4% 3% round 22px);}
  to{opacity:1;transform:none;clip-path:inset(0 round 18px);}
}
@keyframes homeDotsFloat{
  0%,100%{transform:translate3d(0,0,0);}
  50%{transform:translate3d(-8px,12px,0);}
}
@media(max-width:1040px){
  .hero-intro{grid-template-columns:1fr;gap:16px;align-items:start;}
  .hero-intro__proof{justify-content:start;}
  body[data-nav="home"] .hero-grid{
    grid-template-columns:1fr;
    grid-template-rows:auto;
  }
  body[data-nav="home"] .hero-main{grid-column:auto;grid-row:auto;aspect-ratio:830/474;}
  body[data-nav="home"] .hero-cards{grid-template-columns:1fr 1fr;grid-template-rows:auto;}
  body[data-nav="home"] .hero-card{min-height:170px;}
}
@media(max-width:600px){
  body[data-nav="home"] .hero-wrap{padding:18px 10px 24px!important;}
  .hero-intro{margin-bottom:16px;padding:0 6px;}
  .hero-intro h1{font-size:clamp(1.72rem,8.2vw,2.35rem);line-height:1.04;}
  .hero-intro p{margin-top:11px;font-size:.9rem;line-height:1.48;}
  .hero-intro__actions{margin-top:15px;gap:8px;}
  .hero-intro__action{flex:1 1 150px;min-height:43px;padding:9px 12px;font-size:.8rem;}
  .hero-intro__eyebrow{font-size:.67rem;}
  .hero-intro__proof{width:100%;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;}
  .hero-intro__proof span{min-width:0;padding:8px 5px;font-size:.62rem;border-radius:12px;}
  .hero-intro__proof strong{font-size:.98rem;}
  body[data-nav="home"] .hero-grid{display:grid!important;grid-template-columns:1fr!important;gap:9px!important;padding:0!important;}
  body[data-nav="home"] .hero-main{grid-column:auto!important;aspect-ratio:830/474!important;border-radius:18px!important;}
  body[data-nav="home"] .hero-cards{grid-template-columns:1fr 1fr!important;grid-template-rows:auto!important;gap:9px!important;}
  body[data-nav="home"] .hero-video{border-radius:17px;}
  body[data-nav="home"] .hero-card{min-height:130px!important;aspect-ratio:auto!important;border-radius:17px!important;background-size:cover!important;}
  body[data-nav="home"] .hero-card .hc-title{left:13px;right:10px;top:13px;font-size:.93rem!important;line-height:1.16;}
  body[data-nav="home"] .hc-price{margin-top:6px;padding:3px 8px;font-size:.7rem;}
  body[data-nav="home"] .hero-card__tag{left:12px;bottom:11px;padding:4px 7px;font-size:.58rem;}
  body[data-nav="home"] .hc-walk .hc-title{right:46px;}
  body[data-nav="home"] .hc-corp-tag{top:10px;right:10px;font-size:.55rem;padding:4px 6px;}
  body[data-nav="home"] .hs-slide--banner{padding:0;}
  body[data-nav="home"] .hs-banner-fg{inset:0!important;width:100%!important;height:100%!important;}
  .hs-slide--feature::after{background:linear-gradient(90deg,rgba(7,36,62,.9) 0%,rgba(7,36,62,.55) 58%,rgba(7,36,62,.08) 100%);}
  .hs-feature-copy{left:16px;top:50%;width:64%;gap:6px;transform:translateY(-43%);}
  .hs-feature-kicker{padding:4px 7px;font-size:.55rem;}
  .hs-feature-copy strong{font-size:clamp(1.05rem,5.8vw,1.45rem);}
  .hs-feature-copy>span:not(.hs-feature-kicker){display:none;}
  .hs-feature-copy b{padding:7px 10px;font-size:.65rem;}
  .hs-feature--seabike .hs-seabike-media{left:30%;width:75%;object-position:76% center;}
  .hs-feature--seabike::before{right:-8%;bottom:-48%;width:65%;}
  .hs-seabike-copy{width:58%;}
  body[data-nav="home"] .hero-media-caption{left:16px;right:60px;bottom:14px;gap:4px;}
  body[data-nav="home"] .hero-media-caption span{font-size:.56rem;padding:4px 7px;}
  body[data-nav="home"] .hero-media-caption strong{font-size:1.03rem;line-height:1.1;}
  body[data-nav="home"] .hs-nav{width:32px;height:32px;}
  body[data-nav="home"] .hs-nav--prev{left:8px;}
  body[data-nav="home"] .hs-nav--next{right:8px;}
}
@media (min-width:601px) and (max-width:768px){
  body[data-nav="home"] .hero-grid{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:11px!important;
    max-width:none!important;
  }
  body[data-nav="home"] .hero-cards{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    grid-template-rows:auto!important;
    gap:11px!important;
  }
  body[data-nav="home"] .hero-card{
    width:auto!important;
    min-height:152px!important;
    aspect-ratio:auto!important;
  }
}
@media(prefers-reduced-motion:reduce){
  body[data-nav="home"] .hero-wrap::before,
  body[data-nav="home"] .hs-slide.active .hs-banner-fg,
  body[data-nav="home"] .hs-slide.active .hs-banner-bg{animation:none!important;}
  .hs-slide.active .hs-feature-media{transform:none!important;}
  .hs-feature--seabike::before{animation:none!important;}
  body[data-nav="home"] .hero-card::before{display:none;}
}
