/* ===============================================================
   Главная — вариант «F / Цвет»
   =============================================================== */

.hf{ --ease:cubic-bezier(.22,1,.36,1); }

/* ------------------------------------------------------------- герой */
.hf-hero{ padding:clamp(26px,4.5vw,56px) 0 clamp(16px,2.5vw,26px); }
.hf-h1{
  font-family:'Manrope',sans-serif; font-weight:800;
  font-size:clamp(29px,5vw,58px); line-height:1; letter-spacing:-.05em;
  color:var(--t-ink); margin:0;
}
.hf-sw{
  display:inline-block; position:relative; padding:0 .14em;
  border-radius:.16em; color:#fff; overflow:hidden; vertical-align:baseline;
}
.hf-sw i{ font-style:normal; display:block; }
.hf-sw::before{
  content:""; position:absolute; inset:0; border-radius:.16em; z-index:-1;
  background:#4F46E5; animation:hfHue 16s infinite;
}
@keyframes hfHue{
  0%,24%{background:#4F46E5} 25%,49%{background:#0F9D74}
  50%,74%{background:#E2643B} 75%,100%{background:#2563EB}
}
.hf-sub{
  color:var(--t-ink-2); font-size:clamp(15px,1.5vw,18.5px);
  max-width:56ch; margin:18px 0 0;
}

/* -------------------------------------------------- бегущая строка услуг */
.hf-marq{
  margin:clamp(18px,2.6vw,30px) 0 clamp(22px,3vw,34px);
  border-block:1px solid var(--t-line); padding:12px 0; overflow:hidden;
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent);
          mask-image:linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent);
}
.hf-track{ display:flex; width:max-content; animation:hfSlide 42s linear infinite; }
.hf-track a{
  display:inline-flex; align-items:center; padding:0 22px;
  font-size:14.5px; font-weight:600; letter-spacing:-.015em;
  color:var(--t-ink-2); white-space:nowrap; text-decoration:none; transition:color .2s;
}
.hf-track a:hover{ color:var(--t-accent); }
.hf-track a::after{
  content:""; width:5px; height:5px; border-radius:50%;
  background:var(--t-line-2); margin-left:22px;
}
@keyframes hfSlide{ to{ transform:translateX(-50%); } }
.hf-marq:hover .hf-track{ animation-play-state:paused; }

/* ------------------------------------------------------------ каталог */
.hf-grid{
  display:grid; grid-template-columns:repeat(4,1fr); gap:16px;
  padding-bottom:clamp(30px,4.5vw,58px);
}
.hf-card{
  position:relative; display:flex; flex-direction:column; overflow:hidden;
  background:var(--t-card); border:1px solid var(--t-line); border-radius:22px;
  text-decoration:none; color:inherit;
  opacity:0; transform:translateY(24px) scale(.985);
  transition:transform .55s var(--ease), box-shadow .45s var(--ease),
             opacity .55s var(--ease), border-color .3s;
}
.hf-card.hf-in{ opacity:1; transform:none; }
.hf-card:hover{
  transform:translateY(-7px);
  box-shadow:0 20px 46px rgba(13,15,20,.13);
  border-color:transparent;
}
.hf-card:active{ transform:scale(.985); }

.hf-field{ position:relative; padding:18px 18px 14px; }
.hf-field::after{
  content:""; position:absolute; inset:0; background:var(--c,#4F46E5);
  opacity:.09; transition:opacity .45s var(--ease);
}
.hf-card:hover .hf-field::after{ opacity:.2; }

.hf-well{
  position:relative; z-index:1; background:var(--t-well);
  border-radius:16px; padding:11px; overflow:hidden;
}
.hf-well img{
  display:block; width:100%; height:auto; aspect-ratio:1/1;
  object-fit:cover; border-radius:11px;
  transition:transform .7s var(--ease);
}
.hf-card:hover .hf-well img{ transform:scale(1.08); }

.hf-body{ padding:15px 19px 19px; display:flex; flex-direction:column; gap:6px; flex:1; }
.hf-body h3{ font-size:17.5px; font-weight:700; letter-spacing:-.03em; margin:0; color:var(--t-ink); }
.hf-body p{ font-size:13.5px; color:var(--t-ink-2); line-height:1.45; margin:0; }

.hf-meta{ margin-top:auto; padding-top:14px; display:flex; align-items:center; justify-content:space-between; gap:8px; }
.hf-note{ font-family:'JetBrains Mono',monospace; font-size:11.5px; color:var(--t-ink-3); }
.hf-go{
  width:32px; height:32px; border-radius:50%; flex-shrink:0;
  background:var(--t-soft); color:var(--t-ink);
  display:grid; place-items:center;
  transition:transform .35s var(--ease), background .3s, color .3s;
}
.hf-card:hover .hf-go{ background:var(--c,#4F46E5); color:#fff; transform:translateX(3px); }

.hf-wide{ grid-column:span 2; flex-direction:row; align-items:stretch; }
.hf-wide .hf-field{ width:42%; flex-shrink:0; display:grid; padding:18px; }
.hf-wide .hf-well{ display:grid; }
.hf-wide .hf-well img{ aspect-ratio:auto; height:100%; min-height:178px; }
.hf-wide .hf-body{ padding:22px; }
.hf-wide h3{ font-size:21px; }

/* -------------------------------------------------------------- полоса */
.hf-band{
  background:var(--t-soft); border-radius:26px;
  padding:clamp(22px,3.2vw,42px);
  display:flex; align-items:center; justify-content:space-between;
  gap:26px; flex-wrap:wrap; margin-bottom:clamp(26px,4vw,46px);
}
.hf-band h2{ font-size:clamp(19px,2.5vw,30px); font-weight:800; letter-spacing:-.04em; max-width:24ch; line-height:1.18; margin:0; }
.hf-band p{ color:var(--t-ink-2); margin:10px 0 0; max-width:48ch; font-size:14.5px; }
.hf-nums{ display:flex; gap:36px; flex-wrap:wrap; }
.hf-num b{ display:block; font-size:clamp(25px,2.9vw,38px); font-weight:800; letter-spacing:-.05em; line-height:1; }
.hf-num span{ display:block; font-size:12.5px; color:var(--t-ink-3); margin-top:7px; }

/* =============================================================
   МОБАЙЛ
   ============================================================= */
@media(max-width:1100px){
  .hf-grid{ grid-template-columns:repeat(3,1fr); }
  .hf-wide{ grid-column:span 3; }
}

@media(max-width:860px){
  .hf-hero{ padding:22px 0 4px; }
  .hf-h1{ font-size:clamp(28px,8.2vw,40px); line-height:1.05; }
  .hf-sub{ font-size:15.5px; margin-top:14px; }

  .hf-grid{ grid-template-columns:1fr 1fr; gap:11px; }
  .hf-card{ border-radius:18px; }
  .hf-field{ padding:11px 11px 8px; }
  .hf-well{ border-radius:13px; padding:8px; }
  .hf-well img{ border-radius:9px; }
  .hf-body{ padding:11px 13px 14px; gap:4px; }
  .hf-body h3{ font-size:15px; }
  .hf-body p{ display:none; }
  .hf-meta{ padding-top:10px; }
  .hf-note{ font-size:10.5px; }
  .hf-go{ width:28px; height:28px; }

  .hf-wide{ grid-column:span 2; flex-direction:row; }
  .hf-wide .hf-field{ width:132px; padding:11px; }
  .hf-wide .hf-well img{ aspect-ratio:1/1; min-height:0; }
  .hf-wide .hf-body{ padding:13px 14px; }
  .hf-wide h3{ font-size:16px; }
  .hf-wide p{ display:block; font-size:12.5px; }

  .hf-band{ border-radius:22px; padding:22px 18px; }
  .hf-nums{
    display:grid; grid-template-columns:1fr 1fr; gap:0; width:100%;
    margin-top:20px; border-top:1px solid var(--t-line-2);
  }
  .hf-num{ padding:15px 0; }
  .hf-num:nth-child(odd){ border-right:1px solid var(--t-line-2); padding-right:16px; }
  .hf-num:nth-child(even){ padding-left:20px; }
  .hf-num b{ font-size:26px; }
}

@media(max-width:400px){
  .hf-grid{ grid-template-columns:1fr; }
  .hf-card{ flex-direction:row; }
  .hf-field{ width:118px; flex-shrink:0; display:grid; }
  .hf-well{ display:grid; }
  .hf-well img{ aspect-ratio:1/1; }
  .hf-body{ padding:13px 15px; }
  .hf-body p{ display:block; font-size:12.5px; }
}

@media(prefers-reduced-motion:reduce){
  .hf-card{ opacity:1; transform:none; }
  .hf-track{ animation:none; }
  .hf-sw::before{ animation:none; background:#4F46E5; }
}

/* ===============================================================
   v6 — ВЛЁТ КАРТОЧЕК С РАЗНЫХ СТОРОН
   =============================================================== */
.hf-card{
  /* стартовое положение задаётся классом ниже, а не общим transform */
  opacity:0;
  will-change:transform, opacity;
  transition:transform .78s cubic-bezier(.16,1,.3,1),
             opacity   .58s cubic-bezier(.16,1,.3,1),
             box-shadow .45s var(--ease),
             border-color .3s;
}
.hf-fly-l{ transform:translate3d(-90px,26px,0) rotate(-3.5deg) scale(.94); }
.hf-fly-r{ transform:translate3d( 90px,26px,0) rotate( 3.5deg) scale(.94); }
.hf-fly-u{ transform:translate3d(0,-70px,0)  scale(.94); }
.hf-fly-d{ transform:translate3d(0, 70px,0)  scale(.94); }

.hf-card.hf-in{
  opacity:1;
  transform:translate3d(0,0,0) rotate(0) scale(1);
}
/* ховер не должен спорить с влётом */
.hf-card.hf-in:hover{ transform:translate3d(0,-7px,0); }

@media(prefers-reduced-motion:reduce){
  .hf-card{ opacity:1 !important; transform:none !important; transition:none !important; }
}

/* ===============================================================
   БЛОК «О ПЛАТФОРМЕ» — всегда раскрыт, премиум-подача
   =============================================================== */
.about-block{
  position:relative;
  margin:clamp(30px,4.5vw,60px) 0 clamp(24px,4vw,52px);
  padding:clamp(28px,4vw,52px) clamp(22px,3.4vw,46px);
  border:1px solid var(--t-line);
  border-radius:28px;
  background:
    radial-gradient(560px 300px at 8% 0%, rgba(79,70,229,.05), transparent 62%),
    radial-gradient(520px 280px at 96% 8%, rgba(14,155,168,.045), transparent 60%),
    #FFFFFF;
  overflow:hidden;
}
/* тонкая цветная нить сверху — акцент, который читается как «дорого» */
.about-block::before{
  content:""; position:absolute; top:0; left:0; right:0; height:2px;
  background:linear-gradient(90deg,#4F46E5,#0E9BA8 32%,#E2643B 66%,#8B5CF6);
  opacity:.85;
}

.about-head{ margin-bottom:18px; }
.about-kicker{
  display:inline-block; padding:6px 14px; border-radius:100px;
  background:var(--t-accent-soft); color:var(--t-accent);
  font-size:11.5px; font-weight:700; letter-spacing:.09em; text-transform:uppercase;
}

.about-block .seo-text h2,
.about-block h2{
  font-size:clamp(21px,2.7vw,32px); font-weight:800;
  letter-spacing:-.04em; line-height:1.18; margin:0 0 12px; color:var(--t-ink);
}
.about-block .seo-lead{
  color:var(--t-ink-2); font-size:15.5px; line-height:1.6;
  max-width:74ch; margin:0 0 clamp(22px,3vw,34px);
}

.about-block .seo-grid{
  display:grid; grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
  gap:14px;
}
.about-block .seo-card{
  background:var(--t-bg);
  border:1px solid var(--t-line);
  border-radius:18px;
  padding:20px 22px 22px;
  transition:transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s;
}
.about-block .seo-card:hover{
  transform:translateY(-4px);
  box-shadow:0 14px 34px rgba(13,15,20,.09);
  border-color:var(--t-line-2);
}
.about-block .seo-card h3{
  font-size:15.5px; font-weight:700; letter-spacing:-.02em;
  margin:0 0 9px; color:var(--t-ink);
}
/* цветная точка перед заголовком карточки */
.about-block .seo-card h3::before{
  content:""; display:inline-block; width:7px; height:7px; border-radius:50%;
  background:var(--t-accent); margin-right:9px; vertical-align:2px;
}
.about-block .seo-card:nth-child(2) h3::before{ background:#0F9D74; }
.about-block .seo-card:nth-child(3) h3::before{ background:#E2643B; }
.about-block .seo-card:nth-child(4) h3::before{ background:#8B5CF6; }
.about-block .seo-card:nth-child(5) h3::before{ background:#2563EB; }
.about-block .seo-card:nth-child(6) h3::before{ background:#0E9BA8; }
.about-block .seo-card:nth-child(7) h3::before{ background:#111827; }

.about-block .seo-card p{
  font-size:13.5px; line-height:1.6; color:var(--t-ink-2); margin:0;
}

@media(max-width:600px){
  .about-block{ padding:22px 16px; border-radius:22px; }
  .about-block .seo-grid{ grid-template-columns:1fr; gap:10px; }
  .about-block .seo-card{ padding:16px 17px 18px; }
}
