/* Hero bento (ONE_heroblok.html) — видео/фото слева, форма Bitrix справа */

/* ---------- desktop: мозаика-плитки ---------- */
@media (min-width:1025px){
  .hero.hero-one .hero__card{
    display:grid;
    grid-template-columns:minmax(0,1fr) 340px;
    grid-template-rows:1fr;
    gap:14px;
    align-items:stretch;
    height:min(78vh,720px);
    min-height:520px;
    max-height:720px;
    background:transparent;
    overflow:visible;
  }

  .hero.hero-one .hero__media{
    position:relative;
    inset:auto;
    grid-column:1;
    grid-row:1;
    z-index:0;
    border-radius:var(--r-xl);
    overflow:hidden;
    min-height:520px;
    height:100%;
  }
  .hero.hero-one .hero__media video,
  .hero.hero-one .hero__media img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
  }
  .hero.hero-one .hero__media::after{
    background:linear-gradient(180deg,rgba(19,34,69,.62) 0%,rgba(19,34,69,.12) 42%,rgba(19,34,69,.55) 100%);
  }

  .hero.hero-one .hero__in{
    position:relative;
    left:auto;
    right:auto;
    bottom:auto;
    grid-column:1;
    grid-row:1;
    align-self:end;
    width:auto;
    z-index:1;
    padding:34px 36px;
    justify-content:flex-end;
    min-height:0;
    min-width:0;
  }

  .hero.hero-one .hero__action{
    grid-column:2;
    grid-row:1;
    align-self:stretch;
    width:auto;
    margin:0;
    padding:30px 24px 26px;
    border-radius:var(--r-xl);
    color:var(--navy);
    background:linear-gradient(150deg,#fbf3ec 0%,#f2eae4 100%);
    backdrop-filter:none;
    -webkit-backdrop-filter:none;
    position:relative;
    overflow:hidden;
    isolation:isolate;
  }
  .hero.hero-one .hero__action::before{
    content:"";
    position:absolute;
    z-index:-1;
    width:300px;
    height:300px;
    border-radius:50%;
    left:-90px;
    bottom:-120px;
    background:radial-gradient(circle at 32% 28%,rgba(232,160,107,.92),rgba(232,160,107,.34) 52%,rgba(19,34,69,.16) 100%);
    filter:blur(6px);
  }
  .hero.hero-one .hero__action::after{
    content:"";
    position:absolute;
    z-index:-1;
    width:150px;
    height:150px;
    border-radius:50%;
    right:-42px;
    top:-38px;
    background:rgba(19,34,69,.14);
    filter:blur(24px);
  }
}

/* ---------- типографика и текстовая плитка ---------- */
.hero.hero-one .eyebrow{
  display:block;
  font-size:11px;
  letter-spacing:.09em;
  text-transform:uppercase;
  color:rgba(255,255,255,.8);
  margin-bottom:12px;
  text-shadow:0 1px 10px rgba(19,34,69,.5);
}
.hero.hero-one h1{
  font-size:clamp(24px,2.5vw,38px);
  font-weight:300;
  line-height:1.2;
  margin:0;
  max-width:none;
  letter-spacing:0;
  text-shadow:0 2px 18px rgba(19,34,69,.55);
}
.hero.hero-one h1 b{font-weight:600}
.hero.hero-one .hero__lead{
  margin-top:14px;
  font-size:15px;
  line-height:1.6;
  color:rgba(255,255,255,.9);
  max-width:46ch;
  text-shadow:0 1px 12px rgba(19,34,69,.5);
}
.hero.hero-one .hero__alt{
  margin-top:18px;
  color:rgba(255,255,255,.92);
  border-bottom-color:rgba(255,255,255,.45);
}

/* ---------- форма (tile-f) ---------- */
.hero.hero-one .hero__action-top{
  flex-direction:column;
  align-items:flex-start;
  gap:0;
  margin-bottom:0;
}
.hero.hero-one .hero__action-ttl{
  margin:0 0 5px;
  font-size:19px;
  font-weight:600;
  line-height:1.25;
  letter-spacing:-.01em;
  text-transform:none;
  color:var(--navy);
}
.hero.hero-one .hero__action-note{
  display:none !important;
  margin:0;
}
.hero.hero-one .hero__micro{
  margin-top:14px;
  font-size:11.5px;
  line-height:1.55;
  color:rgba(19,34,69,.6);
}
.hero.hero-one .hero__micro b{color:var(--navy);font-weight:500}
.hero.hero-one .hero__dot{background:var(--orange)}
.hero.hero-one .hero__sep{
  margin:16px 0 10px;
  font-size:11px;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:rgba(19,34,69,.45);
}
.hero.hero-one .hero__sep::before,
.hero.hero-one .hero__sep::after{background:rgba(19,34,69,.16)}
.hero.hero-one .btn--call{
  min-height:46px;
  height:46px;
  background:transparent;
  border:1px solid rgba(19,34,69,.28);
  color:var(--navy);
  border-radius:var(--pill);
  gap:9px;
}
.hero.hero-one .btn--call:hover{
  background:transparent;
  border-color:var(--orange);
  color:var(--navy);
  opacity:1;
}
.hero.hero-one .btn--call svg{display:none}
.hero.hero-one .btn--call .num{
  font-size:16px;
  font-weight:400;
  color:var(--navy);
}
.hero.hero-one .btn--call .lbl{display:none}
.hero.hero-one .hero__callnote{
  margin-top:8px;
  font-size:11px;
  color:rgba(19,34,69,.5);
  text-align:center;
}
.hero.hero-one .hero__callnote b{color:var(--navy);font-weight:500}
.hero.hero-one .hero__ok{
  background:rgba(255,255,255,.55);
  color:var(--navy);
  border:1px solid rgba(19,34,69,.12);
}

/* Bitrix24 в hero-one */
.hero.hero-one #heroAction .b24-inline .b24-form-field{
  margin:0 0 10px !important;
}
.hero.hero-one #heroAction .b24-inline .b24-form-field-string .b24-form-control-container,
.hero.hero-one #heroAction .b24-inline .b24-form-field-phone .b24-form-control-container{
  height:50px !important;
}
.hero.hero-one #heroAction .b24-inline .b24-form-style-modern input.b24-form-control{
  height:50px !important;
  padding:16px 20px 0 !important;
  border-color:rgba(19,34,69,.28) !important;
  border-radius:var(--pill) !important;
  background:rgba(255,255,255,.5) !important;
  color:var(--navy) !important;
  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
}
.hero.hero-one #heroAction .b24-inline .b24-form-style-modern input.b24-form-control:focus{
  border-color:var(--orange) !important;
  background:rgba(255,255,255,.78) !important;
}
.hero.hero-one #heroAction .b24-inline .b24-form-control-label{
  padding:0 20px !important;
  color:rgba(19,34,69,.45) !important;
}
.hero.hero-one #heroAction .b24-inline .b24-form-btn{
  height:50px !important;
  margin-top:2px !important;
  background:var(--navy) !important;
  border-color:var(--navy) !important;
  color:#fff !important;
  font-size:12px !important;
  letter-spacing:.08em !important;
  text-transform:uppercase !important;
}
.hero.hero-one #heroAction .b24-inline .b24-form-btn:hover{
  background:#0d192f !important;
  border-color:#0d192f !important;
}
.hero.hero-one #heroAction .b24-inline .b24-form-field-agreement .b24-form-control-desc,
.hero.hero-one #heroAction .b24-inline .b24-form-field-agreement-link{
  color:rgba(19,34,69,.55) !important;
}

/* ---------- tablet / mobile ---------- */
@media (max-width:1024px){
  .hero.hero-one .hero__card{
    display:grid;
    grid-template-columns:1fr;
    grid-template-rows:auto auto;
    gap:12px;
    height:auto;
    max-height:none;
    min-height:0;
    background:transparent;
    border-radius:0;
    overflow:visible;
  }
  .hero.hero-one .hero__media{
    position:relative;
    inset:auto;
    grid-row:1;
    grid-column:1;
    min-height:340px;
    border-radius:var(--r-xl);
    overflow:hidden;
  }
  .hero.hero-one .hero__media::after{
    background:linear-gradient(180deg,rgba(19,34,69,.55) 0%,rgba(19,34,69,.68) 100%);
  }
  .hero.hero-one .hero__in{
    grid-row:1;
    grid-column:1;
    position:relative;
    padding:40px 30px;
    justify-content:center;
    min-height:340px;
  }
  .hero.hero-one h1{max-width:none}
  .hero.hero-one .hero__lead{max-width:none}
  .hero.hero-one .hero__action{
    grid-row:2;
    grid-column:1;
    margin:0;
    align-self:stretch;
    padding:26px 22px 22px;
    border-radius:var(--r-xl);
    background:linear-gradient(150deg,#fbf3ec 0%,#f2eae4 100%);
    backdrop-filter:none;
    -webkit-backdrop-filter:none;
    position:relative;
    overflow:hidden;
    isolation:isolate;
  }
  .hero.hero-one .hero__action::before{
    content:"";
    position:absolute;
    z-index:-1;
    width:240px;
    height:240px;
    border-radius:50%;
    left:-70px;
    bottom:-90px;
    background:radial-gradient(circle at 32% 28%,rgba(232,160,107,.92),rgba(232,160,107,.34) 52%,rgba(19,34,69,.16) 100%);
    filter:blur(6px);
  }
  .hero.hero-one .hero__action::after{
    content:"";
    position:absolute;
    z-index:-1;
    width:120px;
    height:120px;
    border-radius:50%;
    right:-30px;
    top:-28px;
    background:rgba(19,34,69,.14);
    filter:blur(20px);
  }
}

@media (max-width:768px){
  .hero.hero-one .hero__media{
    min-height:min(560px,68svh);
  }
  .hero.hero-one .hero__media::after{
    background:linear-gradient(
      180deg,
      rgba(19,34,69,.72) 0%,
      rgba(19,34,69,.2) 36%,
      rgba(19,34,69,.2) 58%,
      rgba(19,34,69,.78) 100%
    );
  }
  .hero.hero-one .hero__in{
    align-self:stretch;
    padding:16px 16px 30px;
    min-height:min(560px,68svh);
    justify-content:flex-end;
  }
  .hero.hero-one .eyebrow{
    margin-bottom:auto;
    align-self:stretch;
    padding:14px 16px;
    border-radius:16px;
    background:rgba(255,255,255,.08);
    border:1px solid rgba(255,255,255,.16);
    backdrop-filter:blur(8px);
    -webkit-backdrop-filter:blur(8px);
    color:rgba(255,255,255,.85);
    line-height:1.55;
    text-shadow:none;
  }
  .hero.hero-one h1{
    font-size:22px;
    line-height:1.36;
    max-width:none;
    margin:0 6px 0;
  }
  .hero.hero-one .hero__lead,
  .hero.hero-one .hero__alt{display:none}
}

@media (max-width:640px){
  .hero.hero-one .hero__in{padding:22px 18px 28px}
  .hero.hero-one .hero__action{padding:22px 18px 20px}
  .hero.hero-one .hero__action-ttl{font-size:17px}
}

@media (max-width:480px){
  .hero.hero-one .hero__media,
  .hero.hero-one .hero__in{min-height:min(540px,66svh)}
  .hero.hero-one .hero__in{padding:14px 14px 26px}
  .hero.hero-one h1{font-size:21px}
}
