/* RTUL визитка — неймспейс, чтобы не конфликтовать с темой */
.rtul-wrap{
  max-width: 560px;
  margin: 0 auto;
  padding: 14px;
}

.rtul-card{
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 10px 24px rgba(0,0,0,.08);
}

.rtul-h1{
  font-size: 22px;
  line-height: 1.15;
  margin: 0 0 8px 0;
  letter-spacing: -0.2px;
  font-weight: 900;
}

.rtul-sub{
  margin: 0 0 14px 0;
  font-size: 14.5px;
  line-height: 1.35;
  opacity: .88;
}

.rtul-actions{
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 0;
}

.rtul-btn{
  display:flex;
  align-items:center;
  gap: 12px;
  padding: 12px 12px;
  border-radius: 16px;
  text-decoration: none !important;
  color: #fff !important;
  border: 1px solid rgba(0,0,0,.10);
  box-shadow: 0 10px 22px rgba(0,0,0,.10);
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
  box-sizing: border-box;
}

@media (hover:hover){
  .rtul-btn:hover{
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(0,0,0,.14);
    filter: brightness(1.02);
  }
}

.rtul-btn:active{ transform: translateY(0); }

.rtul-ic{
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display:flex;
  align-items:center;
  justify-content:center;
  flex: 0 0 54px;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.20);
}

.rtul-txt{
  min-width: 0;
  display:flex;
  flex-direction: column;
  gap: 4px;
}

.rtul-title{
  font-weight: 900;
  font-size: 16px;
  line-height: 1.1;
}

.rtul-sub2{
  font-size: 12.8px;
  line-height: 1.25;
  opacity: .92;
}

.rtul-btn--call{
  background: linear-gradient(135deg,#22c55e,#16a34a);
}

.rtul-btn--tg{
  background: linear-gradient(135deg,#2aabee,#1b88ca);
}

.rtul-btn--max{
  background: linear-gradient(135deg,#111827,#0b1220);
}

.rtul-divider{
  height: 1px;
  background: rgba(0,0,0,.08);
  margin: 14px 0;
}

.rtul-biglink{
  display:block;
  text-decoration:none !important;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,.12);
  padding: 14px;
  background: rgba(0,0,0,.02);
  color:#111 !important;
  box-shadow: 0 10px 22px rgba(0,0,0,.06);
}

.rtul-biglink-top{
  font-weight: 900;
  font-size: 15.5px;
  margin: 0 0 6px 0;
}

.rtul-biglink-bottom{
  font-size: 13.5px;
  line-height: 1.35;
  opacity: .86;
  margin: 0 0 10px 0;
}

.rtul-biglink-go{
  font-weight: 900;
  opacity: .7;
}

.rtul-note{
  margin: 12px 0 0 0;
  font-size: 12.5px;
  opacity: .65;
}

@media (max-width: 360px){
  .rtul-h1{ font-size: 20px; }
  .rtul-ic{ width: 50px; height: 50px; flex-basis: 50px; }
}
@media (max-width: 520px){

  /* стремимся к ~3px от верхней границы экрана до текста RTUL.RU */
  .rtul-wrap{
    padding-top: 2px; /* с учётом рамки карточки ~1px получится около 3px */
    padding-left: 10px;
    padding-right: 10px;
  }

  /* убираем верхний внутренний отступ карточки, чтобы не раздувалось "лого-поле" */
  .rtul-card{
    padding-top: 0;
  }

  .rtul-brand{
    margin: 0 0 5px 0;     /* 5px до "Визитка..." */
    padding-top: 0;
    font-size: 18px;       /* компактно */
    line-height: 1;
    font-weight: 900;
    letter-spacing: 0.3px;
  }

  .rtul-h1{
    margin: 0 0 8px 0;
    font-size: 15px;       /* чтобы влезало в 2 строки */
    line-height: 1.15;
    letter-spacing: -0.2px;
  }

  .rtul-sub{
    margin: 0 0 12px 0;
    font-size: 13px;
    line-height: 1.25;
  }
}
/* Мобильная версия: компактная шапка + отступы под ТЗ */
@media (max-width: 768px){

  /* 3px от верхней границы экрана до текста RTUL.RU в шапке */
  .site-header{
    padding-top: 3px !important;
    padding-bottom: 0 !important;
  }

  /* убрать стандартные "воздушные" паддинги внутри шапки */
  .inside-header{
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    min-height: 0 !important;
  }

  /* поджать сам текст логотипа */
  .site-branding .main-title{
    margin: 0 !important;
    line-height: 1 !important;
  }
  .site-branding .main-title a{
    font-size: 18px !important;     /* при желании 16-18 */
    line-height: 1 !important;
    display: inline-block;
  }

  /* скрыть бургер/навигацию если она не нужна на визитке
     (если нужна — закомментируйте этот блок) */
  #mobile-menu-control-wrapper,
  #site-navigation{
    display: none !important;
  }

  /* 5px от нижней границы шапки до H1 страницы */
  .entry-header{
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 5px !important;
    margin-bottom: 0 !important;
  }

  /* уменьшить H1 и сделать 2 строки */
  .entry-header .entry-title{
    margin: 0 !important;
    font-size: 16px !important;   /* обычно даёт 2 строки на телефоне */
    line-height: 1.2 !important;
    letter-spacing: -0.2px;
  }
}
