/* MetalinkPro — компактная мобильная шапка и раскрывающиеся разделы.
   Эти правила применяются ТОЛЬКО к главной странице (/ и /ru/).
   Не меняют Telegram формы, навигацию и конструктор. */

/* В отличие от fixed, sticky занимает место в потоке и не закрывает H1. */
body.mlp-home .mp-header-pro{
  position:sticky;
  top:0;
  left:auto;
  right:auto;
  width:100%;
  pointer-events:auto;
  z-index:1000;
  background:rgba(6,11,27,.97);
  backdrop-filter:blur(14px);
}
body.mlp-home .mp-header-pro__inner{
  min-height:66px;
  padding:5px 14px;
  border-radius:0 0 16px 16px;
  box-shadow:0 8px 22px rgba(0,0,0,.16);
  gap:12px;
}
body.mlp-home .mp-header-pro__brand{flex:0 0 auto;min-width:0}
body.mlp-home .mp-header-pro__brand .mlp-brand-logo{
  height:52px;
  max-width:150px;
  width:auto;
  object-fit:contain;
}
body.mlp-home .mp-header-pro__actions{flex:0 0 auto}
body.mlp-home .mp-header-pro__burger{
  width:42px;height:42px;border-radius:12px;padding:10px;
}
body.mlp-home .lang-switcher{margin-left:auto;flex:0 0 auto}
body.mlp-home [id]{scroll-margin-top:80px}

/* HTML5 <details> works with keyboard and without JavaScript */
body.mlp-home .mlp-home-collapse .cards,
body.mlp-home .mlp-home-collapse .advantages{align-items:start}
body.mlp-home .mlp-home-collapse .mlp-accordion{
  display:block;
  min-width:0;
  min-height:0;
  height:auto;
  margin:0;
  padding:0;
  overflow:hidden;
  border:1px solid #dde4ef;
  border-radius:14px;
  background:#fff;
  box-shadow:0 6px 20px rgba(15,23,42,.04);
}
body.mlp-home .mlp-accordion__summary{
  display:flex;
  align-items:center;
  gap:12px;
  padding:15px 16px;
  min-height:64px;
  cursor:pointer;
  list-style:none;
  user-select:none;
  color:#111827;
  transition:background .18s ease;
}
body.mlp-home .mlp-accordion__summary::-webkit-details-marker{display:none}
body.mlp-home .mlp-accordion__summary::marker{content:''}
body.mlp-home .mlp-accordion__summary:hover{background:#fff8ea}
body.mlp-home .mlp-accordion__summary:focus-visible{
  outline:3px solid #f59e0b;outline-offset:-3px;
}
body.mlp-home .mlp-accordion__summary h3{
  font-size:17px;
  line-height:1.25;
  margin:0;
  flex:1;
  overflow-wrap:anywhere;
}
body.mlp-home .mlp-accordion__summary .card__icon{
  margin:0;
  width:32px;
  height:32px;
  font-size:24px;
  flex:0 0 32px;
}
body.mlp-home .mlp-accordion__chevron{
  flex:0 0 26px;
  width:26px;
  height:26px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:#fff2d1;
  color:#a65a00;
  font-size:24px;
  line-height:1;
  transition:transform .2s ease;
}
body.mlp-home details[open] .mlp-accordion__chevron{transform:rotate(180deg)}
body.mlp-home .mlp-accordion__content{
  border-top:1px solid #edf0f5;
  padding:15px 18px 19px;
}
body.mlp-home .mlp-accordion__content p{
  font-size:15px;
  line-height:1.6;
  color:#475569;
  margin:0;
}
body.mlp-home .mlp-accordion__content a.btn{margin-top:14px}

@media (max-width:760px){
  body.mlp-home .mp-header-pro{top:0}
  body.mlp-home .mp-header-pro__inner{
    min-height:59px;
    padding:5px 10px;
    gap:8px;
    flex-wrap:nowrap;
    border-radius:0 0 13px 13px;
  }
  body.mlp-home .mp-header-pro__brand .mlp-brand-logo{
    height:43px;
    max-width:110px;
  }
  body.mlp-home .mp-header-pro__burger{
    width:37px;height:37px;min-width:37px;border-radius:11px;padding:9px;
  }
  body.mlp-home .lang-switcher{
    gap:1px;
    padding:3px;
    margin-left:auto;
  }
  body.mlp-home .lang-switcher a{
    min-width:27px;
    height:27px;
    padding:0 5px;
    font-size:11px;
  }
  body.mlp-home .mp-header-pro__actions{gap:0}
  body.mlp-home .mp-header-pro__store{
    display:inline-flex;align-items:center;justify-content:center;
    min-height:34px;padding:0 10px;border-radius:999px;
    background:#ffb000;color:#111827;text-decoration:none;
    font:800 12px/1 Arial,Helvetica,sans-serif;white-space:nowrap;
    margin-right:7px;
  }
  body.mlp-home .hero__content{
    padding-top:25px !important;
  }
  body.mlp-home [id]{scroll-margin-top:68px}
  body.mlp-home .mlp-home-collapse.section{padding:28px 0}
  body.mlp-home .mlp-home-collapse .section__subtitle{margin-bottom:18px}
  body.mlp-home .mlp-home-collapse .cards,
  body.mlp-home .mlp-home-collapse .advantages{gap:10px}
  body.mlp-home .mlp-accordion__summary{min-height:58px;padding:11px 14px}
  body.mlp-home .mlp-accordion__summary h3{font-size:16px}
}
@media (max-width:360px){
  body.mlp-home .mp-header-pro__inner{gap:5px;padding:4px 7px}
  body.mlp-home .mp-header-pro__brand .mlp-brand-logo{height:37px;max-width:94px}
  body.mlp-home .lang-switcher a{min-width:25px;height:25px;padding:0 3px}
}
.mp-header-pro__store{display:none}
@media(prefers-reduced-motion:reduce){
  body.mlp-home .mlp-accordion__chevron{transition:none}
}
